This week's book giveaway is in the OCAJP forum.
We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line!
See this thread for details.
Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Menu Events

 
Balu Ramachandran
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Madhav Lakkapragada
Ranch Hand
Posts: 5040
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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).]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic