Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

import cannot be resolved?

807603Feb 1 2007 — edited Feb 7 2008
Hi people, the following code has a problem, the
import org.jdesktop.layout.GroupLayout;
cannot be resolved, why? what does this mean? how can i fix the problem? thanks!
package gui;

import java.awt.Container;
import java.awt.EventQueue;
import javax.swing.JFrame;
import org.jdesktop.layout.GroupLayout;

public class Creditg extends JFrame
{

    public Creditg()
    {
        initComponents();
    }

    private void initComponents()
    {
        setDefaultCloseOperation(3);
        GroupLayout layout = new GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(layout.createParallelGroup(1).add(0, 400, 32767));
        layout.setVerticalGroup(layout.createParallelGroup(1).add(0, 300, 32767));
        pack();
    }

    public static void main(String args[])
    {
        EventQueue.invokeLater(new Runnable() {

            public void run()
            {
                (new Creditg()).setVisible(true);
            }

        });
    }
}
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 6 2008
Added on Feb 1 2007
16 comments
872 views