File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes gui problems Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "gui problems" Watch "gui problems" New topic
Author

gui problems

jonathan childs
Greenhorn

Joined: Jul 23, 2007
Posts: 4
hello all i have a problem with a gui program i have created.



at the moment a gui is displaying but changes have been made since then.

the main things i want to do are

my joption panes show up when i change options on my jcombobox but i want them to show up only when i press the submit button. the command i have wrote to try and do this is in my actionperformed method.

i have created strings called arrival and leave from which i wish to get the text entered into the input joption panes timearrive and timeleave but i am unsure of the command needed to be written to do this

also i have this other class ( i would use a scanner but have been told to use a filweriter and been given example code to help me create the class) which i want to write the strings etc into a document i have created called cdetails.txt but currently has problems. i plan to put this class into my program as shown as above later on when correct

Suleman zia
Ranch Hand

Joined: Apr 19, 2007
Posts: 70
What are you trying to accomplish? its better if you make another class which have getter and setter methods for the flight. Once a user clicks on submit button i am assuming you would like to save it in a txt file. this can be done using the toString() method in your flight class.


SCJP 1.5
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: gui problems