It's not a secret anymore!*
The moose likes Swing / AWT / SWT and the fly likes Menu Events Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Menu Events" Watch "Menu Events" New topic
Author

Menu Events

Balu Ramachandran
Greenhorn

Joined: Oct 16, 2000
Posts: 16
hi friends,
i have doubt on how to give a events to the menu driven applications.
Example:
in File MenuBar haveing New,Open,Save,SaveAs,Exit Menus.
suppose i want to save my typed informations which is available in a textarea .
hear how i can get that Save DialogBox and how to get a file name which is typed in the textfield.
After that what i want to do.(i think create a file using File class. using IO operation writie a informations
which is available in a textarea to File.)
How to Do This ???
can anybody please help me,
Balu Ramachandran
Bangalore


R.Balu
Madhav Lakkapragada
Ranch Hand

Joined: Jun 03, 2000
Posts: 5040
while most AWT tutorials are not online (avail as downloads
only), this tutorial from sun may give you some insight.
http://java.sun.com/docs/books/tutorial/uiswing/components/filechooser.html
http://java.sun.com/docs/books/tutorial/uiswing/components/menu.html
http://java.sun.com/docs/books/tutorial/uiswing/misc/action.html

regds.
- satya

[This message has been edited by Madhav Lakkapragada (edited March 28, 2001).]


Take a Minute, Donate an Hour, Change a Life
http://www.ashanet.org/workanhour/2006/?r=Javaranch_ML&a=81
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Menu Events