Jump to content

  • Log In with Google      Sign In   
  • Create Account

Banner advertising on our site currently available from just $5!


1. Learn about the promo. 2. Sign up for GDNet+. 3. Set up your advert!


Creating buttons and TextFields in Java AWT


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
4 replies to this topic

#1 Hankenstien   Members   -  Reputation: 134

Like
0Likes
Like

Posted 07 August 2014 - 08:38 AM

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, 07 August 2014 - 05:06 PM.


Sponsor:

#2 Hankenstien   Members   -  Reputation: 134

Like
0Likes
Like

Posted 07 August 2014 - 05:06 PM

Never mind I'm an idiot, sorry for bothering you all.


Edited by Hankenstien, 07 August 2014 - 05:23 PM.


#3 Glass_Knife   Moderators   -  Reputation: 6165

Like
0Likes
Like

Posted 08 August 2014 - 04:01 PM

What are you going that has you using an AWT class?


I think, therefore I am. I think? - "George Carlin"
My Website: Indie Game Programming

My Twitter: https://twitter.com/indieprogram

My Book: http://amzn.com/1305076532


#4 Hankenstien   Members   -  Reputation: 134

Like
1Likes
Like

Posted 09 August 2014 - 06:37 AM

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/.  



#5 Glass_Knife   Moderators   -  Reputation: 6165

Like
0Likes
Like

Posted 12 August 2014 - 05:14 PM

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


I think, therefore I am. I think? - "George Carlin"
My Website: Indie Game Programming

My Twitter: https://twitter.com/indieprogram

My Book: http://amzn.com/1305076532





Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS