• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Handling event In Jframe

 
nabi bux
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1780
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
nabi bux
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1780
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic