NetBeans Forums

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

Reverting change of jComboBox Master/Detail form

 
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Users
View previous topic :: View next topic  
Author Message
pee.tee



Joined: 05 Mar 2011
Posts: 1

PostPosted: Sat Mar 05, 2011 10:52 pm    Post subject: Reverting change of jComboBox Master/Detail form Reply with quote

Hello,

I've two problems with reverting changes of jComboBox in standard Master/Detail form.

1.
I have method:

private void jComboBox2ItemStateChanged(java.awt.event.ItemEvent evt) {
if (!<some testing>) {
this.jComboBox2.setSelectedItem(z.getIdMj());
}
}

which sets (if testings failed) value of jComboBox2 back to previous value from database.

Unfortunately both values (in master table and in combobox) remains with new value. How can I change value back to value from database?

2.
I have in Detail section of standard Master/Detail Form jComboBox and I need actualize content of jComboBox items by button which reads content from database. But every tries to refresh content failed. Have you any suggestions?

Thanks in advance
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