Hi !
Featured games (85)
games approved by the League of Dukes
Games in Showcase (636)
Games in Android Showcase (178)
games submitted by our members
Games in WIP (685)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
   Home   Help   Search   Login   Register   
  Show Posts
Pages: [1]
1  Game Development / Newbie & Debugging Questions / Re: Graphical User Interface - Buttons on: 2011-06-20 17:19:55
Yea. After replying I did some more research and found a better way than what I thought.

Thanks though.
2  Game Development / Newbie & Debugging Questions / Re: Graphical User Interface - Buttons on: 2011-06-20 16:55:42
Are you using Java2D or LWJGL?

I'm confused. Why wouldn't you just use a JButton?

Recommended reading:
Thanks, but I'm not that stupid. If I wanted a regular button I'd use one. You probably just didn't see the bolded and underlined word "custom" in my list? I could probably extend JButton and override paint or whatever, but that's what I edited into my post basically and I'm just asking people if that's the proper way to do it.
3  Game Development / Newbie & Debugging Questions / Graphical User Interface - Buttons on: 2011-06-20 06:36:03
I'm making a multiplayer RPG with a friend. I've basically finished writing the server skeleton (feel free to take a look and tell me what you think), but there isn't much more I can do until we work on the client and get some stuff sent to the server to interpret.

What I need help with right now is the best way to handle a graphical user interface. I need help with the entire thing in general, like:
  • When do you paint it?
  • How can you have intractable features, like custom buttons.
A good example would be the minecraft 'options' menu, how they have custom input fields:

Any help is appreciated.

EDIT - Ok I think I know how to do buttons, I can just create a custom component called CustomButton or something that has a backing image or something right? And use the mouse events to handle input?
Pages: [1]
Dwinin (58 views)
2015-11-07 13:29:08

Rems19 (72 views)
2015-10-31 01:36:56

Rems19 (63 views)
2015-10-31 01:32:37

williamwoles (101 views)
2015-10-23 10:42:59

williamwoles (87 views)
2015-10-23 10:42:45

Jervac_ (102 views)
2015-10-18 23:29:12

DarkCart (128 views)
2015-10-16 00:58:11

KaiHH (112 views)
2015-10-11 14:10:14

KaiHH (148 views)
2015-10-11 13:26:18

BurntPizza (162 views)
2015-10-08 03:11:46
Rendering resources
by Roquen
2015-11-13 14:37:59

Rendering resources
by Roquen
2015-11-13 14:36:58

Math: Resources
by Roquen
2015-10-22 07:46:10

Networking Resources
by Roquen
2015-10-16 07:12:30

Rendering resources
by Roquen
2015-10-15 07:40:48

Math: Inequality properties
by Roquen
2015-10-01 13:30:46

Math: Inequality properties
by Roquen
2015-09-30 16:06:05

HotSpot Options
by Roquen
2015-08-29 11:33:11 is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!