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
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Help with netbeans and java

  • 08-12-2014 12: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, Registered Users 2 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