Results 1 to 3 of 3
  1. #1
    lavender88 is offline Member
    Join Date
    Mar 2011
    Rep Power

    Default need help in merging GUI and logic main program

    hi..i got a problem in using netbeans. here i have a main program namely MainApp which consists of array list and all the logic program. Instead of using JOptionPane asking for user input, i want to use GUI.i already design a gui interface but, i have no idea how to call the MainApp main program to be insert into GUI class so that they could run together..

    please..can anyone here help me..?i am really stuck.

  2. #2
    mine0926 is offline Senior Member
    Join Date
    Apr 2010
    Rep Power


    Are you trying to show another window from MainApp?

  3. #3
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Blog Entries
    Rep Power


    Your question is very general and vague, has no simple answer. I think that you'll want to provide the important details. Please read the link below in my signature on how to write smart questions as it will tell you many of the bits of information that we need in order to be able to help you.

    For instance, how is your MainApp structured? Does it consist of several classes that interact in decent OOP fashion? If so, then your chances of using this code successfully in a separate GUI class is good. Or does the MainApp class mainly consist of a single main method perhaps with a few other static methods, in which case, forget creating a GUI until you first OOP-ify your code.
    Last edited by Fubarable; 04-02-2011 at 03:03 PM.

Similar Threads

  1. merging arrays
    By ehca87 in forum New To Java
    Replies: 5
    Last Post: 11-12-2009, 04:47 PM
  2. Merging XML
    By KEVINR in forum XML
    Replies: 5
    Last Post: 01-21-2009, 09:09 PM
  3. Separating program logic and GUI
    By loopingman in forum AWT / Swing
    Replies: 0
    Last Post: 12-08-2008, 03:46 PM
  4. merging selected table cells using javascript
    By Renjini in forum JavaServer Pages (JSP) and JSTL
    Replies: 2
    Last Post: 06-17-2008, 02:04 AM
  5. Merging Ideas
    By CompleteBeginner in forum New To Java
    Replies: 1
    Last Post: 05-19-2008, 03:15 PM

Posting Permissions

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