• Post Reply Bookmark Topic Watch Topic
  • New Topic

event to detect Jframe change

 
david luis
Ranch Hand
Posts: 53
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I would like to detect when the user change de JFrame.
I make:

I put componentResized but when I change JFrame I cant see the string that I put in the method.
Could you help me please?
Many thanks and sorry for my English!
 
Maneesh Godbole
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am not sure what you are trying to achieve here. What are the JFrame changes you are referring to? When the user moves or resizes the frame?

Your question will be more suited on the UI forum. Moving...
 
david luis
Ranch Hand
Posts: 53
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Maneesh Godbole wrote:I am not sure what you are trying to achieve here. What are the JFrame changes you are referring to? When the user moves or resizes the frame?

Your question will be more suited on the UI forum. Moving...


Yes. Sorry for the explication. Yes is when the user resize the root frame.
 
Maneesh Godbole
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In that case the component listener provides you with all the required methods already
 
david luis
Ranch Hand
Posts: 53
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Maneesh Godbole wrote:In that case the component listener provides you with all the required methods already


I have the method: componentResized but by some reason, doesn't goes into the method
 
Maneesh Godbole
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you forget invoking addComponent() listener on something? ;)
 
david luis
Ranch Hand
Posts: 53
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Maneesh Godbole wrote:Did you forget invoking addComponent() listener on something? ;)


Thanks.
I put :


But doesn't works :-(

EDIT
=======

I change to


like says here: ORACLE HELP

But also doesn't works
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!