Error log:
Exception in thread "AWT-EventQueue-0" java.lang.ClassCastException:
javax.swing.JPanel cannot be cast to javax.swing.JViewport
at
com.seaglasslookandfeel.ui.SeaGlassTableUI$1.paintBorder(SeaGlassTableUI.java:97
3)
There is an exception thrown at the point mentioned in the title, while
trying to paint a new JTabbedPane contents, containing JTable and JPanels,
and makes it impossible to view the table. This is performed due to
changing a tabbed pane. However, minimizing and maximizing the window
causes the tabbed pane to show its new contents properly, without any problems.
A simple change of line 973 to:
Container viewport = table.getParent();
and line 975 to:
if ((viewport instanceof JViewport) && table.getWidth() <
viewport.getWidth()) {
makes it working properly, with the same meaning of code, I hope.
Original issue reported on code.google.com by saephir on 9 Apr 2010 at 1:14
Original issue reported on code.google.com by
saephir
on 9 Apr 2010 at 1:14