LabeledTextField

This is the forum for JIDE Common Layer which is open sourced at https://github.com/jidesoft/jide-oss. Please note, JIDE technical support doesn't monitor this forum as often as other forums. Please consider subscribe for technical support for JIDE Common Layer so that you can use customer only forum to get a timely response.

Moderator: JIDE Support

Forum rules
Community driven forum for open source JIDE Common Layer. JIDE technical support doesn't monitor this forum as often as other forums. If you only use JIDE Common Layer, please consider subscribing for technical support for JIDE Common Layer so that you can use customer only forum to get a timely response.

LabeledTextField

Postby Kalyani » Mon Dec 19, 2011 1:35 am

Hi I am making a LabeledTextField inside a JPanel.
I need to have the label have a different background color and the textField a different Background color. But it does not work.

labeledTextField1.setOpaque(true);
labeledTextField1.setLabelText("PortfolioName");
labeledTextField1.getLabel().setBackground(Color.RED);

The background color does not set to Red for the label.
However if i try changing the foreground color,that works.
labeledTextField1.getLabel().setForeground(Color.RED);

Could you please help me out. ?
Kalyani
 
Posts: 10
Joined: Fri Nov 11, 2011 12:59 am

Re: LabeledTextField

Postby JIDE Support » Mon Dec 19, 2011 8:06 am

Please give the following code a try.
Code: Select all
        _filterField.getLabel().setOpaque(true);
        _filterField.getLabel().setBackground(Color.red);

Thanks,
JIDE Software Technical Support Team
JIDE Support
Site Admin
 
Posts: 37219
Joined: Sun Sep 14, 2003 10:49 am


Return to JIDE Common Layer Open Source Project Discussion (Community Driven)

Who is online

Users browsing this forum: No registered users and 7 guests