• Post Reply Bookmark Topic Watch Topic
  • New Topic

How can I create a number input field in a Java GUI panel?  RSS feed

 
Charlotte Benett
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am attempting to make a panel with a title that simply says 'Insert number', a field where this could be entered and then a submit button. As simple as this sounds, I have been struggling because I have been finding a lot of conflicting information online and have not been able to get it working, so I was hoping that someone could please give me some help and point me in the right direction? I have been finding the process of making buttons and titles okay, so it's mainly just this number field box that is causing me the issues.

Thank you in advance for any help.
 
Ashish Dutt
Ranch Hand
Posts: 172
Java MySQL Database Python
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
Do let us know what have you tried so far?
 
Maneesh Godbole
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use JSpinner or create a NumericTextField
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!