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





Reply With Quote



