File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes having help menuitem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "having help menuitem" Watch "having help menuitem" New topic

having help menuitem

Maha Hassan
Ranch Hand

Joined: Aug 02, 2005
Posts: 133
i need to have a help menu item which open text editor ..reads from it and then print the output in a jdialog ..but how can i do that..
do i add a text pane to the dialog and read line by line and print it on the text pane on the dialog..or there is a smarter way
Maha Hassan
Ranch Hand

Joined: Aug 02, 2005
Posts: 133
i found a solution :
i opened that text read line by line and printed the output on a textpane that is added to a scrollpane(for resizing depending on the size of the text) and i added all this to a dialog

i also set the textpane editable to false so that no user can change my help
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: having help menuitem
Similar Threads
Printing from an applet..
Child Window(JDialog) hide when using with fixed screen resolution
Print a dialog box
How To Make JLabel automatically wrap to next line
help dialog