Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-30-2008, 04:07 PM
Member
 
Join Date: Aug 2008
Posts: 2
Rep Power: 0
MaHa is on a distinguished road
Unhappy help 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

outPut :

deps-jar:
compile:
run:
java.lang.NoClassDefFoundError: javax/swing/GroupLayout$Group
Exception in thread "main"
Java Result: 1
BUILD SUCCESSFUL (total time: 5 seconds)

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

please, please help me
I appreciate Any reply
Bookmark Post in Technorati
Reply With Quote
  #2 (permalink)  
Old 08-30-2008, 04:20 PM
Norm's Avatar
Senior Member
 
Join Date: Jun 2008
Location: Heredia, Costa Rica
Posts: 2,225
Rep Power: 4
Norm is on a distinguished road
Default
Check the API doc for that class. What version of java is it in?
What version of java are you using?
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 09-07-2008, 11:25 PM
Member
 
Join Date: Aug 2008
Posts: 2
Rep Power: 0
MaHa is on a distinguished road
Default
Dear Norm ,

I am grateful to you .

I appreciate your cooperation with me .

Thank you very much for help me .

I solved my problem. the problem in java version.
javax.swing.GroupLayout works only with JDK 1.6.



Thanks again ,

MaHa
Bookmark Post in Technorati
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Alignment in GroupLayout nanou AWT / Swing 8 09-03-2008 03:14 AM
java.lang.NoClassDefFoundError: javax/swing/GroupLayout$Group scotter59 NetBeans 6 07-10-2008 07:28 PM
"Problem With GroupLayout", Please Help ! adeeb AWT / Swing 1 06-04-2008 10:29 AM
Able to find class file in WEB-INF/classes but not after add sub folders in class dir vitalstrike82 Web Frameworks 0 05-13-2008 06:16 AM
what is the Priority for execution of Interface class and a Abstract class Santoshbk Advanced Java 0 04-02-2008 07:04 AM


All times are GMT +2. The time now is 01:04 AM.



VBulletin, Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2009, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org