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

sample java program

Options
  • 27-02-2006 8:55pm
    #1
    Closed Accounts Posts: 478 ✭✭


    Hi guys
    im looking for a sample program with a gui
    something like an atm machine or anything along those lines
    i just need an exmple of a programme with a giu
    if anyone kood send me there sample program id b very greatful thanks lads
    xxx


Comments

  • Registered Users Posts: 19,396 ✭✭✭✭Karoma


    oO

    Swing or AWT?
    Look through the tutorials on java.sun.com
    (+ http://javaalmanac.com/egs/javax.swing/pkg.html )


  • Closed Accounts Posts: 17,208 ✭✭✭✭aidan_walsh


    Karoma wrote:
    oO

    Swing or AWT?
    Look through the tutorials on java.sun.com
    (+ http://javaalmanac.com/egs/javax.swing/pkg.html )
    Or SWT even? Or, if you wanted to be really anal, drawing the entire thing manually through JOGL?


  • Closed Accounts Posts: 478 ✭✭synchro


    Karoma wrote:
    oO

    Swing or AWT?
    Look through the tutorials on java.sun.com
    (+ http://javaalmanac.com/egs/javax.swing/pkg.html )
    awt is wat im using
    thanks for the post
    xx


  • Registered Users Posts: 20,994 ✭✭✭✭Stark


    Why are you using AWT as a matter of interest? It's obsolete for most things these days although there are a few niche uses.


  • Closed Accounts Posts: 478 ✭✭synchro


    Stark wrote:
    Why are you using AWT as a matter of interest? It's obsolete for most things these days although there are a few niche uses.
    well thas wat where doin in college so.. :o


  • Advertisement
  • Registered Users Posts: 21,264 ✭✭✭✭Hobbes


    Did they not teach you this stuff in class?


  • Closed Accounts Posts: 478 ✭✭synchro


    id just like to see an applicion of this GUI theory that's all
    id really appreciate a sample program from anyone who'd be nice enough to offer
    thanks again
    xxx


  • Registered Users Posts: 21,264 ✭✭✭✭Hobbes


    synchro wrote:
    id just like to see an applicion of this GUI theory that's all
    id really appreciate a sample program from anyone who'd be nice enough to offer
    thanks again
    xxx

    Ok first up when you say GUI what do you mean exactly? There are three main GUIs for java (tbh there are many more). AWT, SWT and Swing. Of those AWT is the least used as its old and SWT is rarely taught as it is not part of the JDK.

    Even so just giving you code isn't going to do anything for you unless your planning to just nick the code straight out, which is pointless because any teacher worth thier salt is going to pull you up on it. Not to mention most read this forum.

    So GUI coding have you done?

    ...

    Here is some sample Swing. Works fine.

    http://www.emmetcaulfield.com/ecaulfield/OOP/lectures/0223/files/src/var4/


  • Closed Accounts Posts: 324 ✭✭madramor


    synchro wrote:
    well thas wat where doin in college so.. :o

    if you are starting using java and they are teaching you awt, then you want to find a new course, as stated before awt is nearly dead.

    heres some demo code.

    http://java.sun.com/products/plugin/1.4/demos/plugin/jfc/SwingSet2/SwingSet2.html


Advertisement