• Post Reply Bookmark Topic Watch Topic
  • New Topic

Question about JFrame using Layered Panels with MigLayout  RSS feed

 
Charles Sexton
Ranch Hand
Posts: 273
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The question is when I hit the maximize button on the JFrame my panel instantly goes to the top left corner of the JFrame. Is it possible to center the panel inside the JFrame, when the maximize button is pushed? I am familiar with push and grow that MigLayout uses but this isn't exactly what I need. I don't want several textFields to span the screen. Instead I would rather have the panel centered.


This is just a sample project to test out the MigLayout API
 
Charles Sexton
Ranch Hand
Posts: 273
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
http://www.coderanch.com/t/329780/GUI/java/Customize-JFrame <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!