Results 1 to 5 of 5
  1. #1
    MW130 is offline Senior Member
    Join Date
    Jan 2013
    Posts
    317
    Rep Power
    2

    Default How do I use graphics (GUI) in Java? Which API is the best?

    Hey guys, I'm new to the site and also fairly new to Java. I just had a few questions and hoped you guys could help me out. I've been programming with Java for a bit and I am tired of making text-based programs. I want to move on to graphics and buttons, to games that have actual video and actions. I would like to know what I should use for this and what professionals use. I know games such as Runescape are made with Java, but what do they use for graphics. I have heard of Swing, but do not know if it is good and/or too simple. Which one is simply the most common, professional, and best? Which would allow me to make games and good applications? Which is the native GUI packages that Java already includes? I know im throwing a really big number of questions at you guys, but hopefully you'll be kind enough to enlighten me. Thank you so, so much in advance. Regards, Michael W

  2. #2
    MW130 is offline Senior Member
    Join Date
    Jan 2013
    Posts
    317
    Rep Power
    2

    Default Re: How do I use graphics (GUI) in Java? Which API is the best?

    Any help? :P

  3. #3
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,188
    Rep Power
    19

    Default Re: How do I use graphics (GUI) in Java? Which API is the best?

    If you want fancy effects, try JavaFX 2.

    If you go with Swing, go through these tutorials:
    Trail: Creating a GUI With JFC/Swing (The Java™ Tutorials) (except the second part)
    Trail: 2D Graphics (The Java™ Tutorials)

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  4. #4
    MW130 is offline Senior Member
    Join Date
    Jan 2013
    Posts
    317
    Rep Power
    2

    Default Re: How do I use graphics (GUI) in Java? Which API is the best?

    But is swing native? Is it the most popular? Can I make games with Swing? Could you please answer a few more of my questions?

  5. #5
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,188
    Rep Power
    19

    Default Re: How do I use graphics (GUI) in Java? Which API is the best?

    Quote Originally Posted by MW130 View Post
    But is swing native?
    Native to what?

    Quote Originally Posted by MW130 View Post
    Is it the most popular?
    What makes that significant?

    Quote Originally Posted by MW130 View Post
    Can I make games with Swing?
    I can, and have. What you can do with Swing depends on more than just knowledge of Swing.

    Quote Originally Posted by MW130 View Post
    Could you please answer a few more of my questions?
    Start learning and coding and you'll find the answers.

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

Similar Threads

  1. Replies: 1
    Last Post: 10-27-2012, 03:22 PM
  2. Replies: 1
    Last Post: 07-12-2011, 10:33 AM
  3. Java graphics
    By AtomicPoop in forum Java Gaming
    Replies: 13
    Last Post: 04-18-2011, 06:40 PM
  4. Java Graphics
    By keaton1ao in forum New To Java
    Replies: 12
    Last Post: 11-16-2010, 08:19 PM
  5. Java Graphics
    By svaidya in forum New To Java
    Replies: 8
    Last Post: 12-07-2009, 05:11 PM

Tags for this Thread

Posting Permissions

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