• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JFrame resize dynamically in response to content pane size changes

 
Ranch Hand
Posts: 510
Google Web Toolkit Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Bartender
Posts: 1561
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Google Web Toolkit Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ?
 
Sheriff
Posts: 22783
131
Eclipse IDE Spring VI Editor Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It's not illegal, but please Be Forthright When Cross Posting To Other Sites.
 
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic