aspose file tools*
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
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: In JTabbedPane, updation of database values not working