 |
AppletTalk.com Java discussions newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
hogcia Guest
|
Posted: Fri Dec 12, 2008 11:07 am Post subject: Synth Look and Feel spinner problem |
|
|
Hello,
I have a problem setting up a spinner in the Synth Look and Feel. Here
is my code:
<style id="spinner">
<f o n t name="Dialog" size="10"/>
<insets top="2" left="4" bottom="2" right="4"/>
<state >
<color value="#E8F6EF" type="BACKGROUND"/>
<color value="#000000" type="FOREGROUND"/>
<imagePainter method="SpinnerBorder" path="images/mediumgreen.jpg"
sourceInsets="2 2 2 2" paintCenter="false"/>
</state>
</style>
<bind style="spinner" type="region" key="Spinner"/>
The problem is that when I select the digit in the spinner box, it
disappears! First I thought it changes to a particular color, but if I
change the background, the digit is still invisible (after selecting).
Spinner doesn't have any properties as described on this page:
http://java.sun.com/javase/6/docs/api/javax/swing/plaf/synth/doc-files/componentProperties.html
It also doesn't help if I add a description for a SELECTED state - the
background just changes to the SELECTED background (it's like that all
the time), and the digit is still invisible after selecting.
What does a Spinner consist of (like a ComboBox consists of e.g.
Label)? Maybe I should change some other component's properties? How
can I make my digit visible and change color when I select it?
Please, help.
Thanks in advance,
Agata Staniszewska |
|
| Back to top |
|
 |
John B. Matthews Guest
|
Posted: Fri Dec 12, 2008 9:19 pm Post subject: Re: Synth Look and Feel spinner problem |
|
|
In article
<2aec233e-63fb-4401-8583-e374ccdeb4a0 (AT) t26g2000prh (DOT) googlegroups.com>,
hogcia <hogcia (AT) gmail (DOT) com> wrote:
[...]
<http://java.sun.com/javase/6/docs/api/javax/swing/plaf/synth/doc-files/c
omponentProperties.html>
[...]
| Quote: |
What does a Spinner consist of (like a ComboBox consists of e.g.
Label)? Maybe I should change some other component's properties? How
can I make my digit visible and change color when I select it?
|
JSpinner is a composite that includes a JFormattedTextField and two
JButtons:
<http://mindprod.com/jgloss/jspinner.html>
--
John B. Matthews
trashgod at gmail dot com
http://home.roadrunner.com/~jbmatthews/ |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|