Results 1 to 3 of 3
  1. #1
    MaHa is offline Member
    Join Date
    Aug 2008
    Posts
    2
    Rep Power
    0

    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

  2. #2
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    17,816
    Rep Power
    25

    Default

    Check the API doc for that class. What version of java is it in?
    What version of java are you using?

  3. #3
    MaHa is offline Member
    Join Date
    Aug 2008
    Posts
    2
    Rep Power
    0

    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

Similar Threads

  1. [SOLVED] Alignment in GroupLayout
    By nanou in forum AWT / Swing
    Replies: 8
    Last Post: 09-03-2008, 04:14 AM
  2. Replies: 6
    Last Post: 07-10-2008, 08:28 PM
  3. "Problem With GroupLayout", Please Help !
    By adeeb in forum AWT / Swing
    Replies: 1
    Last Post: 06-04-2008, 11:29 AM
  4. Replies: 0
    Last Post: 05-13-2008, 07:16 AM
  5. Replies: 0
    Last Post: 04-02-2008, 08:04 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •