Campbell Ritchie wrote:What happens if you use the addToolTip() method on your tabbed pane?
Paul Clapham wrote:It might be possible to create a Font object in Java which encapsulated two different fonts and did what fontforge does, only it would do that on the fly. For example you would write one of the methods like this:
That would be tedious but I'm sure it's not beyond your abilities. The only problem you would have would be when you had to load that "font" from a TTF file, but possibly that wouldn't happen.
Rob Camick wrote:Cross posted: https://stackoverflow.com/questions/58007721/jtextfieldui-painted-in-another-tab-of-the-jtabbedpane-with-my-personal-look-and
You already have an answer. So why have you not replied to this question stating the answer so people don't spend time answering a question that already has an answer?
syed fazal faheem wrote:Hi,
As a quick intro, i am developing look and feel implementation for my swing application. I am having a set of internal frames in my application.
When i try to set the button border in UIDefaults, even the minimize, maximize and close buttons of internal frames are getting affected. Can any one help me out with this.
This is the code i used to set the UIDefaults in a class derived from javax.swing.plaf.basic.BasicLookAndFeel
protected void initComponentDefaults(UIDefaults table) {
super.initComponentDefaults(table);
Object[] defaults = {
"Button.font", new FontUIResource("Arial", Font.BOLD, 12 ),
"Button.border",new BorderUIResource(new OvalBorder()),
"Button.margin", new InsetsUIResource(8, 8, 8, 8)
};
table.putDefaults( defaults );
}
OvalBorder class implements javax.swing.border.Border interface
Waiting for a solution,
fazal.