wieseljonas / java-libpst

Automatically exported from code.google.com/p/java-libpst
1 stars 1 forks source link

TestGUI Clean emailText component when changing folder #17

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Select a folder with some emails
2. Select an email in emailTable
3. Email content is displayed in emailText component
4. Select another folder : email content is not reset

Just add "emailText.setText(null)" in valueChanged method of the JTree 
component:
[...]
      public void valueChanged(TreeSelectionEvent e) {
        DefaultMutableTreeNode node = (DefaultMutableTreeNode) folderTree.getLastSelectedPathComponent();
        if (node == null) {
          return;
        }
        if (node.getUserObject() instanceof PSTFolder) {
          PSTFolder folderValue = (PSTFolder) node.getUserObject();
          selectFolder(folderValue);
          emailText.setText(null); // Clean email content
        }
      }
[...]

PS.: low issue

Original issue reported on code.google.com by franck.a...@gmail.com on 10 Aug 2010 at 4:01

GoogleCodeExporter commented 9 years ago
I've tested this too - see comment for issue 16.

Original comment by orin.e...@gmail.com on 13 Aug 2010 at 8:01