Results 1 to 1 of 1
- 05-27-2009, 03:40 PM #1
[SOLVED] [newbie] java.awt.GridBagConstraints
I would like to know:
1. Is GBC in use? I couldn't find it the API.
2. Is B the same as A?
3. My understanding is that the code creates a label within a GridBagLayout and setting the GridBagConstraints such as position etc. Is this right?
:confused:
Java Code:... //A. This is the code that won't compile... add(faceLabel, new GridBagConstraints(0,0,0,0,0,0,0,0, new Insets(getDefaultCloseOperation(), getDefaultCloseOperation(), defaultCloseOperation),0,0).setAnchor(GBC.EAST)); ... //B. This is the code that I was tinkering with... GridBagConstraints gbc = new GridBagConstraints(0,0,0,0,0,0,0,0, new Insets(getDefaultCloseOperation(), getDefaultCloseOperation(), getDefaultCloseOperation(), getDefaultCloseOperation()), 0, 0); add(faceLabel, gbc);
Similar Threads
-
newbie facing java errors
By T2ml in forum New To JavaReplies: 2Last Post: 11-29-2008, 06:08 AM -
I'm a Java web dev newbie - where to start?
By hapax in forum New To JavaReplies: 2Last Post: 08-01-2008, 06:34 PM -
GridBagConstraints
By Aswq in forum New To JavaReplies: 2Last Post: 07-21-2008, 09:08 PM -
'm a newbie of java
By ilysony in forum IntroductionsReplies: 7Last Post: 07-21-2008, 03:54 AM -
Help, java newbie
By baltimore in forum New To JavaReplies: 1Last Post: 08-07-2007, 12:56 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks