Results 1 to 2 of 2
  1. #1
    hiyamandal is offline Member
    Join Date
    Apr 2012
    Rep Power

    Default Input from jspinner

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

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Madgaon, Goa, India
    Rep Power

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

    int height=Integer.parseInt(jSpinner1.getName());
    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.

    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

Similar Threads

  1. Help me! how to use JSpinner
    By ngankt2 in forum AWT / Swing
    Replies: 1
    Last Post: 11-05-2010, 07:07 PM
  2. JSpinner problem
    By damlui in forum AWT / Swing
    Replies: 0
    Last Post: 09-29-2010, 03:15 PM
  3. One Jspinner modifying the value of the other
    By cotarelo in forum AWT / Swing
    Replies: 1
    Last Post: 06-11-2010, 02:48 PM
  4. JSpinner resizes, I don't want that.
    By JosAH in forum AWT / Swing
    Replies: 4
    Last Post: 05-30-2010, 09:11 AM
  5. Jtable Jspinner help
    By chiragkini in forum AWT / Swing
    Replies: 5
    Last Post: 08-15-2009, 04:36 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts