File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Updating problem...

 
Chuck Meduri
Ranch Hand
Posts: 48
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everyone,
I have two windows one of which is a class extending JPanel(let's call this PanelA) and the other which is opened(let's call it DialogB) by clicking a button on PanelA. BTW, DialogB extends JDialog. DialogB has a table where the user can select a row and click a button 'Add' which adds the selected row to a table in PanelA.
This was working pretty well when we are developing JDK1.1.7. When we migrated to JDK1.2.2, this update when selecting a row in DialogB and clicking a 'Add' button does not update the table in PanelA.
I am having to close DialogB and resize 'PanelA' to actually see the added row. Whereas I was able to see it immediately in the older version of JDK.
I have tried repaint and resizing on the parentPanel of DialogB which happens to be 'PanelA' and still this is doing the trick.
Can anyone help me with this problem?
Any suggestion would be appreciated.
Thank you in advance,
Chuck
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic