JideTabbedPane close button color - colors

I am using JideTabbedPane and i have the close button displayed using the following:
myTabbedPane.setShowCloseButtonOnTab(true);
The problem is my tabbedpane's theme is a dark color and the "X" close button is an "X" which is black in color. The color of my tabs are set using the "ColorProvider", but i don't see anything in the documentation mentioning changing the color of the close button.

That property set in BasicJideTabbedPaneUI :
protected Color _closeButtonSelectedColor;
protected Color _closeButtonColor;
If you want change color of this button you should set new Color via UIDefaults or modify existing code in https://www.javatips.net/api/jide-oss-master/src/com/jidesoft/swing/JideTabbedPane.java

Related

Prevent Kendo controls from highlighting required fields in red

I would like to know how avoid the kendo controls have a border in red color when lost focus because I want to show them in red when the user click on save button.
Examplecode

Change the Label's size and color in Excel

I would liek to change the label (right side), created in excel, into blue color with the same size as the data in C5.
Don't know how to do it in Excel. Tried to find a solution but i failed.
Thanks!
First, make sure you are using an ActiveX Control label and not a Form Control Label.
Then, right click your label and select properties. In the properties list, click the font property and it will reveal an ellipsis button (...) to the right. Click the ellipsis button and select you desired size.
To change the color, select your desired color in the Forecolor property below font. (options are limited for labels).
To change via VBA, you can lookup you desired color code by selecting the color in the forecolor property mentioned above. Then, do something like this in your code:
Label1.Font.Size = 36
Label1.ForeColor = &H80000001

Can the background color of Text Editor be changed in Tableau?

I do have a dark themed tableau dashboard where the fonts will be white in color. whenever I try to edit the text in textbox, the editor pops with white as its background color (font color is also white so I cant see the text). Is there any option that I can change the background color of the text editor ?
Can you post a screenshot? When I change the color I get the same matching color in the text boxes:

qt4 - change the color of text cursor in a qlineedit?

I've subclassed qlineedit and written a custom line edit which has a default text. The default text is grayed out until the user starts to write some text into it. also the line edit has a time mask input. it only accepts inputs in range of 23:59:59.
the problem is when the line edit is empty and the default text is displayed in gray color, the cursor is also gray. I'd like to know how i'm able to change the cursor color to black while the default text is in gray color.
I have tried to override the paintevent. i saw the source code of qlineedit and saw that the QLineControl::DrawCursor is responsible for drawing the cursor in paintevent. but i have no idea how to change the pen color so it can effect the cursor color. Any ideas on how to do that? tnx.
void QCustomLineEdit::paintEvent(QPaintEvent * pe)
{
QLineEdit::paintEvent(pe);
QPainter painter;
painter.begin(this);
painter.setPen(Qt::red);
painter.end();
}
QLineEdit has a property named placeholderText which you can use to set the grayed text to be displayed when there is no text in the edit box. The cursor color is not changed and when you start typing the placeholder text disappears.

Button border issue in LWUIT

I have created button without any border using LWUIT resource editor. I am able to see that button with all my properties set. However, when i am trying to add an image into this button using its image constructor, i am able to see a thick border around my image. I tried changing the button into Label, still image is coming. Please help.
Have you set the button border type as Empty on ResourceEdit? If not, set the button border type as Empty for selected and unselected style on ResourceEdit. It should work.

Resources