OK...if we're talking about segmented textured toggle buttons, I'll throw out a couple more nit picks (just submitted bug report 6193458):
1) Text should have feint white shadow when "at rest".
2) Pressed button should have white text, with feint dark shadow
3) Pressed button's current background paint is darker than native button 4) When pressing a previously pressed toggle button, the button should draw an even darker state (currently drawing this as the pressed-rest state).
Buttons created in Xcode (at rest, toggled, toggled pressed):

Buttons created in Java (at rest, toggled, toggled pressed):

On Sep 3, 2008, at 1:26 PM, Mike Swingler wrote:
On Sep 3, 2008, at 9:02 AM, Steve McLeod wrote:
Hi there
I've tried to use some Apple's client properties to get toggle
buttons on a toolbar, just like iCal's "Day", "Week", and "Month"
buttons. When unselected, the buttons look great. When selected,
however, the text colour is black instead of white. Does anyone know
how I can easily rectify this?
I'm using Java 5 on Leopard, if that's important.
Many thanks,
Steve
---
Repro code follows:
import javax.swing.*;
import java.awt.*;
public class ToggleButtonTest extends JFrame {
public static void main(String[] args) {
JFrame frame = new JFrame();
final Container contentPane = frame.getContentPane();
contentPane.setLayout(new FlowLayout());
final JToggleButton button = new JToggleButton("Toggle
Button");
button.setFocusable(false);
button.putClientProperty("JButton.buttonType",
"segmentedTextured");
button.putClientProperty("JButton.segmentPosition", "only");
contentPane.add(button);
frame.pack();
frame.setVisible(true);
}
}
You have to change it to white, or if you would like us to do it,
please file a bug report at
http://bugreporter.apple.com.
Thanks,
Mike Swingler
Java Runtime Engineer
Apple Inc.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list (
email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hiddenThis email sent to
email@hidden