Win a copy of Head First Android this week in the Android forum!

Nick Meverden

Ranch Hand
+ Follow
since Jul 03, 2006
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Nick Meverden

15 years ago
javax.swing.text.JTextComponent.setCaretColor(java.awt.Color color)
[ August 14, 2006: Message edited by: Nick Meverden ]
15 years ago
java.io.FileReader
java.io.FileWriter

read up on those two API's for starters to read/write files.

You can build a StringBuilder or StringBuffer to setText() of the javax.swing.JTextArea

Those are some ideas to get you started...
15 years ago
I would suggest checking out javax.swing.JSplitPane with two javax.swing.JPanels.
[ July 21, 2006: Message edited by: Nick Meverden ]
15 years ago
new java.awt.GridLayout(4,1)
15 years ago
Releases all of the native screen resources used by this Window, its subcomponents, and all of its owned children. That is, the resources for these Components will be destroyed, any memory they consume will be returned to the OS, and they will be marked as undisplayable.

The Window and its subcomponents can be made displayable again by rebuilding the native resources with a subsequent call to pack or show. The states of the recreated Window and its subcomponents will be identical to the states of these objects at the point where the Window was disposed (not accounting for additional modifications between those actions).
15 years ago
if you want to hide the JFrame use setVisible(false) if you want to remove the JFrame and release its resources use dispose()
15 years ago
15 years ago
check out javax.swing.JMenu.addMenuListener()

and

javax.swing.event.MenuListener/MenuEvent API's
15 years ago
No an ActionListener isn't going to do anything for JMenu. It would be more helpful if you tell us what your are trying to do. You want to show a dialog message when JMenu is clicked?
15 years ago