Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

Help with netbeans and java

Options
  • 08-12-2014 1:59pm
    #1
    Closed Accounts Posts: 431 ✭✭


    so i have a UI that i build and i have a main class my question is how do i run code from the main class in an event. example: on action event run if statement from main class?


Comments

  • Registered Users Posts: 8,324 ✭✭✭chrislad


    From that, it sounds like that functionality should be put into another class, and just create an instance of that class and use that in the action event. Personally, my main class is normally just the one line for a UI, just creating the main GUI class and starting it.


Advertisement