• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JSPINNER - ABOUT TIME!

 
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all
Just thought that I would introduce you all to JSpinner, a new feature in J2SDK 1.4.
JSpinner provides the arrow interface to increment a value in a textfield. An example of this is in your windows date/time settings, you'll see that you can adjust the year by moving the little arrows to the right of the textbox.
I'm surprised that earlier versions of the J2SDK did not implement this, but at least they have now.
Well here is a bit of sample code, enjoy.
Al
 
Ranch Hand
Posts: 15304
6
Mac OS X IntelliJ IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Actually, you could implement this on earlier versions. Make a thin JTextArea with a Vertical Scroll Pane and append all your values to the list before drawing it.
There is always a work around. Don't ever become dependent on API's.
Just my two cents.

------------------
Happy Coding,
Gregg Bolinger
 
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I, personally, was more thrilled with the addition of regular expressions.
 
There are 10 kinds of people in this world. Those that understand binary get this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic