Results 1 to 4 of 4
  1. #1
    0026sd is offline Member
    Join Date
    Sep 2011
    Posts
    22
    Rep Power
    0

    Default Creating a stylized menu screen: Is this possible (img included)?

    Hello!

    I come bearing a question that, for the life of me, I can't figure out the answer to. Because I'm having trouble with the wording when asking both Google and forums I decided to just draw an image of what I want to do and hopefully someone can tell me if 1) it's possible and 2) can you point to some resources that will teach me.

    Below is an image for a simple fighting game. This is what I want the start screen to look like however I have no idea how to use both JComponents (like JButton and JTextField) as well as drawing images like the background or player. Perhaps I shouldn't even be using JComponents at all?

    Creating a stylized menu screen: Is this possible (img included)?-startmenu.png

    Thanks.

  2. #2
    KevinWorkman's Avatar
    KevinWorkman is online now Crazy Cat Lady
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    3,702
    Rep Power
    8

    Default Re: Creating a stylized menu screen: Is this possible (img included)?

    This is definitely possible using Swing. First, play with borders, background colors, fonts, etc. Much of what you're looking for can be accomplished that way. For anything else, you might have to do some of your own painting (which you're going to have to do if you're making a game anyway). Recommended reading: Lesson: Performing Custom Painting (The Java™ Tutorials > Creating a GUI With JFC/Swing)
    How to Ask Questions the Smart Way
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  3. #3
    0026sd is offline Member
    Join Date
    Sep 2011
    Posts
    22
    Rep Power
    0

    Default Re: Creating a stylized menu screen: Is this possible (img included)?

    Quote Originally Posted by KevinWorkman View Post
    This is definitely possible using Swing. First, play with borders, background colors, fonts, etc. Much of what you're looking for can be accomplished that way. For anything else, you might have to do some of your own painting (which you're going to have to do if you're making a game anyway). Recommended reading: Lesson: Performing Custom Painting (The Java™ Tutorials > Creating a GUI With JFC/Swing)
    Wonderful. I'll go through the tutorial now and get back to you if I have any other questions!

    Thanks!

  4. #4
    KevinWorkman's Avatar
    KevinWorkman is online now Crazy Cat Lady
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    3,702
    Rep Power
    8

    Default Re: Creating a stylized menu screen: Is this possible (img included)?

    Quote Originally Posted by 0026sd View Post
    Wonderful. I'll go through the tutorial now and get back to you if I have any other questions!

    Thanks!
    Cool. Let us know if you have any questions. Also, the Swing Tutorial in general is a great resource: Trail: Creating a GUI With JFC/Swing (The Java™ Tutorials)

    As well as the API: Java Platform SE 6

    If you're looking into programming a game, you should get used to having those pages open pretty much all the time.
    How to Ask Questions the Smart Way
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

Similar Threads

  1. Creating a Main Menu - Importing
    By l3eater in forum Java Applets
    Replies: 2
    Last Post: 12-28-2010, 05:41 AM
  2. Replies: 4
    Last Post: 12-11-2010, 05:08 PM
  3. Creating Start screen
    By mustachMan in forum New To Java
    Replies: 7
    Last Post: 07-16-2010, 08:56 PM
  4. Creating menu screen for games
    By sahildave1991 in forum AWT / Swing
    Replies: 1
    Last Post: 07-02-2010, 05:36 PM
  5. Creating a splash screen in SWT
    By Java Tip in forum SWT
    Replies: 0
    Last Post: 07-25-2008, 02:29 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
  •