Results 1 to 3 of 3
  1. #1
    wanw84 is offline Member
    Join Date
    Oct 2008
    Posts
    2
    Rep Power
    0

    Default is this possible?

    Hi, im still a newbie in Java programming. I want to ask something.

    I made a java class for example 'Train.java'.
    Now i want to make a gui. Is it possble when i click a button (already made) will execute the 'Train.java' file?

  2. #2
    zoomix is offline Member
    Join Date
    Oct 2008
    Location
    Sweden, Gothenburg
    Posts
    21
    Rep Power
    0

    Default

    Well, yes. Sure. But that's generally not the way you want to do things. It's sort of like buying a ferrari but only ever driving it in reverse gear.

    Anyway. Add a listener to your button and have it run Train.main(null);

  3. #3
    hazem.mohamed is offline Member
    Join Date
    Nov 2008
    Posts
    2
    Rep Power
    0

    Default

    can you attach the contents of your files to know how to help you? or just tell us what do you want to do?


    ---------------------------------------------------------------
    My First Post

Posting Permissions

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