NetBeans Forums
| View previous topic :: View next topic |
| Author |
Message |
angelo.moreschini@medi... Posted via mailing list.
|
Posted: Sun Jun 29, 2008 4:51 pm Post subject: Matisse: how to change property of Jpanel |
|
|
hello,
with matisse I prepared a screen where I need to change the
title of border of a titled panel when a checkBox change
status.
If I write the statement inside the constructor of the class
(that extends JFrame) it work (the title change).
But if I write the same statement inside the function called
when the event raised (as well BetBeans not sign any error
about the scope of the variables), then it don't work.
This is the code:
---------------------
private void
jCheckBoxReverseAddressOnTransportTypePanelActionPerformed(java.awt.event.ActionEvent
evt) {
if
(jCheckBoxReverseAddressOnTransportTypePanel.isSelected()) {
reverseAddressee = true;
JOptionPane.showMessageDialog(this, "Selected = " +
reverseAddressee);
((javax.swing.border.TitledBorder)
jPanelOrdersBasic_Client.getBorder()).setTitle("Sender");
((javax.swing.border.TitledBorder)
jPanelOrdersBasic_Partner.getBorder()).setTitle("Addressee");
} else {
reverseAddressee = false;
JOptionPane.showMessageDialog(this, "Selected = " +
reverseAddressee);
((javax.swing.border.TitledBorder)
jPanelOrdersBasic_Client.getBorder()).setTitle("Addressee");
((javax.swing.border.TitledBorder)
jPanelOrdersBasic_Partner.getBorder()).setTitle("Sender");
}
}
---------------------
I haven't experience to modify the code Matisse wrote, so I
should like to have some suggestion how have changement in
the border title panels when the event is raissed.
thank you
regards |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|