Only 48 hours left in the trailboss' kickstarter!

New rewards and stretch goals. CLICK HERE!



  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JFrame resize dynamically in response to content pane size changes  RSS feed

 
Yahya Elyasse
Ranch Hand
Posts: 510
Eclipse IDE Google Web Toolkit Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi -
I have a JFrame that uses CardLayout. The CardLayout panel content is of varied dimensions. it means the JComponents added to CardPanel will change size dynamically.
Is it possible to have the JFrame resize dynamically in response to the content of the CardLayout panel changing?
 
pete stein
Bartender
Posts: 1561
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This looks quite familiar and in fact very similar to a thread recently seen in the forums.sun.com Swing section? Is this a cross-posted question?
 
Yahya Elyasse
Ranch Hand
Posts: 510
Eclipse IDE Google Web Toolkit Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
pete stein wrote:This looks quite familiar and in fact very similar to a thread recently seen in the forums.sun.com Swing section? Is this a cross-posted question?


yes its me who posted this question in both two forums : javaranch.com and java.sun.com . is there any problem about this ? is it illegal to post my question in two different forums ? if yes, can you show me where is this law forbidding posting a same discussion in many different website forums ?
or Better : do you have a solution to suggest me for solving the problem i described in this post thread ?
 
Rob Spoor
Sheriff
Posts: 20893
81
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's not illegal, but please Be Forthright When Cross Posting To Other Sites.
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
> if yes, can you show me where is this law forbidding posting a same discussion in many different website forums ?
> or Better : do you have a solution to suggest me for solving the problem i described in this post thread ?

certainly not illegal, but what often happens when posting to multiple sites is someone sees your unanswered problem,
then spends some time testing/posting a response, but unbeknown to them, the problem was answered earlier at
one of the other sites, meaning their free time has been wasted. This apparently is unimportant to people like you.

as it turns out, I do have a solution to the stated problem, but you getting that solution is unimportant to me.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!