Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

getting a button(open) to trigger the file chooser

 
ugo okoye
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, i've designed a text editor but i can't seem to get my File Open, Save Buttons to function properly.can anyone tell me which classes i need to get them work. appreciate the help.
 
Michael Dunn
Ranch Hand
Posts: 4632
 
ugo okoye
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks man, but i need another favour. can you tell me how to effect a save because the books i have seem to talk about char and byte being written to my memory.i was wondering how i could get to save a document without having to pass the name of a file like ("file.txt").
 
Thorsten Klonk
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
First, you must implement the ActionListeners to call the methods for opening or saving the files.


(Already done? - For sure.)

The next step for opening a specific file is to implement the method for opening the file:



If you understood the way of opening files, you could implement methods for saving files easily

Greetings,
Thorsten
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic