Re: about class GroupLayout

Wade Chandler <[email protected]> Sun, 31 Aug 2008 06:26:46 -0700 (PDT)
Newsgroups gmane.comp.java.netbeans.user-interface
Message-ID <[email protected]>
--0-862143653-1220189206=:39368
Content-Type: text/plain; charset=us-ascii

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 <[email protected]>
To: [email protected]
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
--0-862143653-1220189206=:39368
Content-Type: text/html; charset=us-ascii

<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman,new york,times,serif;font-size:12pt">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.<br><br>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.<br><br>Wade<br><div>&nbsp;</div>==================<br>Wade Chandler, CCE<br>Software Engineer and Developer, Certified Forensic Computer Examiner, NetBeans Dream Team Member, and NetBeans Board Member<br>http://www.certified-computer-examiner.com<br>http://wiki.netbeans.org/wiki/view/NetBeansDreamTeam<br>http://www.netbeans.org<div><br></div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">----- Original Message ----<br>From: MaHa &lt;[email protected]&gt;<br>To: [email protected]<br>Sent: Saturday, August 30, 2008 3:54:31 PM<br>Subject: [nbui] about class GroupLayout<br><br>

<style>
.hmmessage P
{
margin:0px;padding:0px;}
body.hmmessage
{
FONT-SIZE:10pt;FONT-FAMILY:Tahoma;}
</style>

 
<style>
.ExternalClass .EC_hmmessage P
{padding:0px;}
.ExternalClass body.EC_hmmessage
{font-size:10pt;font-family:Tahoma;}
</style>
I get an error on compile .<br>I can't fix it :(<br><br><br>javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());<br>getContentPane().setLayout(layout);<br>layout.setHorizontalGroup(<br>layout.createParallelGroup(javax.swing.GroupLayout .Alignment.LEADING)<br>.addGap(0, 480, Short.MAX_VALUE)<br>);<br><br><br>cannot find symbol <br>symbol :class GroupLayout<br>location : package.javax.swing<br><br><br>-----------------------------------------<br>I ues NetBeans 6.0.1 and jdk1.5.0_16<br><br>java version "1.5.0_16"<br>Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_16-b02)<br>Java HotSpot(TM) Client VM (build 1.5.0_16-b02, mixed mode, sharing)<br>&nbsp;<br><br>please ..<br>&nbsp;please.. &nbsp;help me&nbsp;<br>&nbsp;<br><hr>Express yourself instantly wit
 h MSN Messenger! <a rel="nofollow" target="_blank" href="http://clk.atdmt.com/AVE/go/onm00200471ave/direct/01/">MSN Messenger</a></div></div></div></body></html>
--0-862143653-1220189206=:39368--