What's new

Need help in java

  • Thread starter TheChillerCraft
  • Start date
  • Views 516
TheChillerCraft

ChillerCraft

Enthusiast
Messages
540
Reaction score
74
Points
95
Sin$
7
I have been trying to make a menu screen as in minecraft and i am wondering how he has custom buttons... So please help me with adding custon buttons! Thanks, Chiller.
 
etownlax

etownlax

Getting There
Messages
1,604
Reaction score
192
Points
190
Sin$
0
I've never played minecraft, so I actually don't know what the buttons look like. With that said, you can create custom components by extending JComponent or depending on what the button looks like, you can just edit the JButton.

Are these the buttons you're talking about? This is simple. Simply setPreferredSize(new Dimension(width, height)) and you can change background color obviously, and there's a way to create a raised border to it too.

MinecraftFrontMenu.jpg
 
C

ComTrix

Newbie
Messages
50
Reaction score
0
Points
45
Sin$
0
I have been trying to make a menu screen as in minecraft and i am wondering how he has custom buttons... So please help me with adding custon buttons! Thanks, Chiller.

I can help you over teamviewer and teach you the basics for client modding. Insta mine, fast place, fly, or whatever you need
 
TheChillerCraft

ChillerCraft

Enthusiast
Messages
540
Reaction score
74
Points
95
Sin$
7
I can help you over teamviewer and teach you the basics for client modding. Insta mine, fast place, fly, or whatever you need
No i didnt mean like to change the buttons in minecaft... I wanted to know how to make a button like that in Java...
 
Top Bottom
Login
Register