NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

Matisse: how to change property of Jpanel

 
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Users
View previous topic :: View next topic  
Author Message
angelo.moreschini@medi...
Posted via mailing list.





PostPosted: Sun Jun 29, 2008 4:51 pm    Post subject: Matisse: how to change property of Jpanel Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Users All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo