Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

GridBagLayout - components overlapping  RSS feed

 
Peter Miklosko
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I got components in layout as I wish to have them. Unfortunately 2nd row doesn't start as expected bellow first one, but directly under it (you can see portion of text draw on panel, should be visible whole).

I know that
  • toolbar should have height of 60
  • sidebar where thumbnails goes will be wide 185
  • rest of the parameters are relative

  • I tried to move two panels from second row to completely separate panel, but it sort of back-fired as they then did not show at all.


    GridBagLayout.png
    [Thumbnail for GridBagLayout.png]
     
    Peter Miklosko
    Ranch Hand
    Posts: 76
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    SOLVED ! ! !

    Removing gbc.gridheight = 60; did the job. I took it as method to set size in pixels
     
    • Post Reply Bookmark Topic Watch Topic
    • New Topic
    Boost this thread!