This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Swing / AWT / SWT and the fly likes In JTabbedPane, updation of database values not working Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "In JTabbedPane, updation of database values not working" Watch "In JTabbedPane, updation of database values not working" New topic
Author

In JTabbedPane, updation of database values not working

Arun Martin
Ranch Hand

Joined: Dec 01, 2000
Posts: 64
Hi,
I have got a serious pblm. I have got a JFrame consisting of JTabbedPanes. Each JTabbedPane is used as a panel.
Eg.
JTabbedPane tp = new JTabbedPane();
tp.addTab("Add New Mgmt Rep QC Rep",new AddMgmtQC());
tp.addTab("Modify Mgmt Rep QC Rep",new ModifyMgmtQC());
class AddMgmtQC extends JPanel implements ActionListener
{
constructor()
{
// code
}
public void actionPerformed()
{
// code
}

}
class ModifyMgmtQC extends JPanel implements ActionListener
{

constructor()
{
// code
}
public void actionPerformed()
{
// code
}

}
The problem is that in "AddMgmtQC JTabbed Pane" some values are entered from the user and sent to the database. When I go to " ModifyMgmtQC JTabbed Pane" the values entered from "AddMgmtQC JTabbed Pane" should be displayed for further processing. But the values are not displayed.
I have to run the Java pgm once again to view the user values. Is there any method through which simultaneous updation can take place?
with warm regards,
Arun.
 
wood burning stoves
 
subject: In JTabbedPane, updation of database values not working