Jump to content

help about class GroupLayout

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
8 replies to this topic

#1
MaHa

MaHa

    Newbie

  • Members
  • Pip
  • 2 posts
I get an error on compile .
I can't fix it
:(

[highlight="java"]
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)
);

[/highlight]

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,help me
I appreciate Any reply

MaHa

Edited by Jaan, 07 September 2008 - 08:47 PM.
Please use tags when you're posting your codes!


#2
Xav

Xav

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 13,118 posts
What's the error message?
Jordan said:

Good members, like yourself, stick around and post for ages to come!
Mr. Xav | Blog | Forums

#3
chili5

chili5

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 7,247 posts
@xav - the error message is:

Quote

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

Java is telling you that GroupLayout doesn't exist in the javax.swing.*; So the class your trying to use doesn't exist.

#4
MaHa

MaHa

    Newbie

  • Members
  • Pip
  • 2 posts
message: java.lang.NoClassDefFoundError: javax/swing/GroupLayout$Group
Exception in thread "main"


I solved my problem. the problem in java version

javax.swing.GroupLayout works only with JDK 1.6

Thank you for your interest.. :)

MaHa

#5
chili5

chili5

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 7,247 posts
Your welcome :D Isn't netbeans so helpful? :)

#6
Xav

Xav

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 13,118 posts
@chil: Whoops, missed that.
Jordan said:

Good members, like yourself, stick around and post for ages to come!
Mr. Xav | Blog | Forums

#7
chili5

chili5

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 7,247 posts
Actually the full error is:

Quote

cannot find symbol
symbol :class GroupLayout
location : package.javax.swing
java.lang.NoClassDefFoundError: javax/swing/GroupLayout$Group
Exception in thread "main"

Quote

java.lang.NoClassDefFoundError: javax/swing/GroupLayout$Group

That being the most important line. :D

#8
Xav

Xav

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 13,118 posts
Sorry, I don't know Java.
Jordan said:

Good members, like yourself, stick around and post for ages to come!
Mr. Xav | Blog | Forums

#9
chili5

chili5

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 7,247 posts
Learn :) It's simple :D