• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Rob Spoor
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
  • Scott Selikoff
Bartenders:
  • Piet Souris
  • Jj Roberts
  • fred rosenberger

Menu Events

 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 5040
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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).]
 
pie. tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic