|
|
|
Re: Extending Swing Class - View Properties [message #1846938 is a reply to message #1846933] |
Sat, 09 October 2021 14:09 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) |
David Garratt![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=davegarratt%40icloud.com) Messages: 42 Registered: July 2011 |
Member |
|
|
Sorry for my poor description - I should have said I was confused by the missing values for the properties.
Would the source for the button class help.
public class JButton4j extends JButton {
private static final long serialVersionUID = 1L;
public JButton4j() {
setFont(Common.font_btn);
}
public JButton4j(Icon icon) {
super(icon);
setFont(Common.font_btn);
}
public JButton4j(String text) {
super(text);
setToolTipText(text);
setFont(Common.font_btn);
}
public JButton4j(Action a) {
super(a);
setFont(Common.font_btn);
}
public JButton4j(String text, Icon icon) {
super(text, icon);
setToolTipText(text);
setFont(Common.font_btn);
}
@Override
public void setText(String text)
{
super.setText(text);
setToolTipText(text);
}
}
[Updated on: Sat, 09 October 2021 14:11] Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 0.08086 seconds