Discover Habbo's history
Treat yourself with a Secret Santa gift.... of a random Wiki page for you to start exploring Habbo's history!
Happy holidays!
Celebrate with us at Habbox on the hotel, on our Forum and right here!
Join Habbox!
One of us! One of us! Click here to see the roles you could take as part of the Habbox community!


Page 2 of 2 FirstFirst 12
Results 11 to 12 of 12
  1. #11
    Join Date
    May 2005
    Location
    Sunny England
    Posts
    66
    Tokens
    0

    Default

    Hi I'm currently making a GUI in java which is a car hier system, it has to have at least two screens so i decided to make life easier a welcome and then the booking page however i am having diffulctities with my JButton,

    in my variables i have stated
    // JButton to move to Customer screen
    private JButton showOrderJButton;

    and my code is
    // set up showOrderJButton
    showOrderJButton = new JButton();
    showOrderJButton.setText( "Order Form" );
    showOrderJButton.setBounds( 35, 250, 600, 24 );
    contentPaneW.add( showOrderJButton );
    showOrderJButton.addActionListener(

    new ActionListener() // anonymous inner class
    {
    // method called when JButton is pressed
    public void actionPerformed( ActionEvent event )
    {
    showOrderJButtonActionPerformed( event );
    }

    } // end anonymous inner class

    ); // end call to addActionListener

    However when i try to complie it i get an error stating can not find symbol.

    Any ideas?
    Thanks in advanced
    'There is no such thing as Real Life, there's only AFK'

    Hellscream EU Level 70 Mage named Untaken
    Hellscream EU Level 70 Priest named Ilux

  2. #12
    Join Date
    Aug 2004
    Location
    UK
    Posts
    11,283
    Tokens
    2,031

    Latest Awards:

    Default

    What symbol does it say it cannot find?
    It useually means your useing a varible that hasnt been defined? contentPaneW is definally correct? and showOrderJButtonActionPerformed is definally a method somewhere in the class?

Page 2 of 2 FirstFirst 12

Posting Permissions

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