Results 1 to 2 of 2
Thread: Input from jspinner
- 04-13-2012, 07:22 AM #1
Member
- Join Date
- Apr 2012
- Posts
- 1
- Rep Power
- 0
Input from jspinner
hello,
I am new to java and Netbeans IDE. I am using Netbeans 6.9 to design a GUI. I need to take an integer input from jspinner using mouse scroll. Can anyone please guide me through which event should I select and what class should I select to take the input? I tried to define the variable as:
int height=Integer.parseInt(jSpinner1.getName()); but its of no avail. please help..
- 04-13-2012, 07:52 AM #2
Re: Input from jspinner
Moved from New to Java.
Read the API for JSpinner and follow the link to the tutorial on How to Use Spinners.
Guessing doesn't get you anywhere in programming, and it's a very very bad idea to use a visual designer and code generator when you haven't reached a stage of your learning to even understand what the generated code does.int height=Integer.parseInt(jSpinner1.getName());
dbWhy do they call it rush hour when nothing moves? - Robin Williams
Similar Threads
-
Help me! how to use JSpinner
By ngankt2 in forum AWT / SwingReplies: 1Last Post: 11-05-2010, 07:07 PM -
JSpinner problem
By damlui in forum AWT / SwingReplies: 0Last Post: 09-29-2010, 03:15 PM -
One Jspinner modifying the value of the other
By cotarelo in forum AWT / SwingReplies: 1Last Post: 06-11-2010, 02:48 PM -
JSpinner resizes, I don't want that.
By JosAH in forum AWT / SwingReplies: 4Last Post: 05-30-2010, 09:11 AM -
Jtable Jspinner help
By chiragkini in forum AWT / SwingReplies: 5Last Post: 08-15-2009, 04:36 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks