aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes Handling event In Jframe Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Handling event In Jframe" Watch "Handling event In Jframe" New topic
Author

Handling event In Jframe

nabi bux
Ranch Hand

Joined: Mar 14, 2005
Posts: 73
high every body
i have get may help from
this forum
so i have problem occur during the programming of java
the problem is that I have main frame which extend from Jframe ihave manu
which belong to main frame and i have an other class which extends from iframe in which i made a table i want to copy table enreis from cut copy past menuitem which are in main frame class how could i do that event handling please help i am so upset about this
thanks in advance for all visitores
Jeff Albertson
Ranch Hand

Joined: Sep 16, 2005
Posts: 1780
Use JDesktopPane's getSelectedFrame method to find out which internal frame
you should be interacting with. Once you have its JTable, you need to
know which cell has focus: focus coincides with selection
[ November 09, 2005: Message edited by: Jeff Albrechtsen ]

There is no emoticon for what I am feeling!
nabi bux
Ranch Hand

Joined: Mar 14, 2005
Posts: 73
Thanks for that code but i want that when i select table row and then
i press copy menu item the data which is selected selected asing to variable
of object type
how could i do that
Jeff Albertson
Ranch Hand

Joined: Sep 16, 2005
Posts: 1780
I'm not sure where you are stuck. I believe I've sketched out the key
parts. perhaps you should post code showing where you are in the problem.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Handling event In Jframe
 
Similar Threads
Event Dispatch Thread question
Calling Iframe In Jframe
Question about splach screen + Jframe
Delete rows from Jtable when the checkbox is checked
understanding simple gui code