Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How can I fill up all the usable space in BorderLayout?  RSS feed

 
Jacky Luk
Ranch Hand
Posts: 634
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In this application, there are many border overruns and spaces-not-completely-fillled problem
Here is the code
topPanel.java

// comment, too hard to read, so cancel it, please see the next post

I know it's little bit messy, please bear with me. I have no time to clean it up.
Thanks
Jack
usable space.png
[Thumbnail for usable space.png]
 
Ranganathan Kaliyur Mannar
Bartender
Posts: 1103
10
Java Netbeans IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That is a lot of code for us to read and lot of files to try and reproduce the problem. You should provide us with a SSCCE for us to help with this issue.
 
Jacky Luk
Ranch Hand
Posts: 634
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ranganathan Kaliyur Mannar wrote:That is a lot of code for us to read and lot of files to try and reproduce the problem. You should provide us with a SSCCE for us to help with this issue.


I have last resorted it to redo.

Here is a smaller source code

Hope this is much more readable

The problem is I don't know why there is borders above the underneath the GradientPanels



border borderlayout.png
[Thumbnail for border borderlayout.png]
 
Ranganathan Kaliyur Mannar
Bartender
Posts: 1103
10
Java Netbeans IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Wait a minute...the subject seems to be a problem about BorderLayout, but I don't see BorderLayout used in the code anywhere...Does JLayeredPane have BorderLayout as the default?

And where is the main method? I have no idea of how you are using these classes.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!