about class GroupLayout

View: New views
2 Messages — Rating Filter:   Alert me  

about class GroupLayout

by MaHa Khalid :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
I get an error on compile .
I can't fix it :(


javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout .Alignment.LEADING)
.addGap(0, 480, Short.MAX_VALUE)
);


cannot find symbol
symbol :class GroupLayout
location : package.javax.swing


-----------------------------------------
I ues NetBeans 6.0.1 and jdk1.5.0_16

java version "1.5.0_16"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_16-b02)
Java HotSpot(TM) Client VM (build 1.5.0_16-b02, mixed mode, sharing)
 

please ..
 please..  help me 
 

Express yourself instantly with MSN Messenger! MSN Messenger

Parent Message unknown Re: about class GroupLayout

by Wade Chandler :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
Are you using Java 1.6 or Java 1.5? This is not a class in 1.5, and if using 1.5 you have to the swing layout library as a dependency, and you also have to make sure your form is using the correct type of generation, because the library does not use the same package name. With the UI open, highlight the top level element in the "Inspector" window. This will be the element for the form. In the properties window find the drop down for the generation style for the layout, and select the option for which ever way you are using the group/swing layout libraries.

Also, please read descriptions of lists/forums before posting. nbui is not a user help list. nbusers is for that. This list is for working on the user interface and usability of the IDE.

Wade
 
==================
Wade Chandler, CCE
Software Engineer and Developer, Certified Forensic Computer Examiner, NetBeans Dream Team Member, and NetBeans Board Member
http://www.certified-computer-examiner.com
http://wiki.netbeans.org/wiki/view/NetBeansDreamTeam
http://www.netbeans.org


----- Original Message ----
From: MaHa <mahakk102@...>
To: nbui@...
Sent: Saturday, August 30, 2008 3:54:31 PM
Subject: [nbui] about class GroupLayout

I get an error on compile .
I can't fix it :(


javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout .Alignment.LEADING)
.addGap(0, 480, Short.MAX_VALUE)
);


cannot find symbol
symbol :class GroupLayout
location : package.javax.swing


-----------------------------------------
I ues NetBeans 6.0.1 and jdk1.5.0_16

java version "1.5.0_16"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_16-b02)
Java HotSpot(TM) Client VM (build 1.5.0_16-b02, mixed mode, sharing)
 

please ..
 please..  help me 
 

Express yourself instantly with MSN Messenger! MSN Messenger