The Artima Developer Community
Sponsored Link

Java Answers Forum
GridBagConstraints

2 replies on 1 page. Most recent reply: Apr 5, 2002 3:16 PM by Elliott Wood

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 2 replies on 1 page
amanda briggs

Posts: 1
Nickname: mazz
Registered: Apr, 2002

GridBagConstraints Posted: Apr 5, 2002 2:43 PM
Reply to this message Reply
Advertisement
Hi i am still a bit new to programming and part of an assignment is to develop a drawing package in swing. I decided to use GridBag to set 12 buttons on panel south, but can i get the buttons underneath the 1st row of buttons. NO!!! any help would be most welcome
:-)


Matt Gerrans

Posts: 1153
Nickname: matt
Registered: Feb, 2002

Re: GridBagConstraints Posted: Apr 5, 2002 3:13 PM
Reply to this message Reply
Maybe you can post your code -- remember to use the java tags (see the "Formatting Your Post" note at the bottom of the page).

Elliott Wood

Posts: 15
Nickname: tooess
Registered: Mar, 2002

Re: GridBagConstraints Posted: Apr 5, 2002 3:16 PM
Reply to this message Reply
Hi amanda,
I wouldn't use gridbag but would instead use grid layout with 2 rows and 6 columns to hold the 12 buttons. Which would be declared like
new GridLayout(2,6)
That is unless of course you really want to use gridbag cause you want buttons of differnt sizes and in which case ignore me.

Hope this helps

Flat View: This topic has 2 replies on 1 page
Topic: How to limit  the size of a JTextField? Previous Topic   Next Topic Topic: A problem with swing text componet

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use