• Advertisement
Sign in to follow this  

Creating buttons and TextFields in Java AWT

This topic is 1260 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I'm pretty good at java swing gui's, but since I have been working with java's awt class I have found nothing of buttons or textfields.  So I have been creating them myself.  

 

So My question is "Am I being Stupid and just over looking something really easy"?  on a side not if on the slight chance that I am doing things correctly my thought is mimicking the swing buttons and making classes like them.

Edited by Hankenstien

Share this post


Link to post
Share on other sites
Advertisement

I have a game loop that has an update and render method and I need ui components that can be rendered to the screen.  I got it answered here http://www.gamedev.net/topic/659643-buttons-that-have-a-render-method/.  

 

Have you looked at these tutorials?

 

http://www.gamedev.net/page/resources/_/technical/general-programming/java-games-active-rendering-r2418

http://www.gamedev.net/page/resources/_/technical/general-programming/java-games-keyboard-and-mouse-r2439

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement