• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

having help menuitem

 
Maha Hassan
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 133
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic