* MageBook - Won't be loaded by default if the client starts (now the change is included).

This commit is contained in:
LevelX2 2013-09-27 08:26:22 +02:00
parent a8e54c52cd
commit 0d6853bd8f

View file

@ -218,11 +218,6 @@ public class MageFrame extends javax.swing.JFrame implements MageClient {
tablesPane = new TablesPane(); tablesPane = new TablesPane();
desktopPane.add(tablesPane, javax.swing.JLayeredPane.DEFAULT_LAYER); desktopPane.add(tablesPane, javax.swing.JLayeredPane.DEFAULT_LAYER);
tablesPane.setMaximum(true); tablesPane.setMaximum(true);
collectionViewerPane = new CollectionViewerPane();
desktopPane.add(collectionViewerPane, javax.swing.JLayeredPane.DEFAULT_LAYER);
collectionViewerPane.setMaximum(true);
} catch (PropertyVetoException ex) { } catch (PropertyVetoException ex) {
logger.fatal(null, ex); logger.fatal(null, ex);
} }
@ -972,8 +967,22 @@ public class MageFrame extends javax.swing.JFrame implements MageClient {
} }
public void showCollectionViewer() { public void showCollectionViewer() {
JInternalFrame[] windows = desktopPane.getAllFramesInLayer(JLayeredPane.DEFAULT_LAYER);
for (JInternalFrame window : windows) {
if (window instanceof CollectionViewerPane) {
setActive((MagePane) window);
return;
}
}
try {
collectionViewerPane = new CollectionViewerPane();
desktopPane.add(collectionViewerPane, javax.swing.JLayeredPane.DEFAULT_LAYER);
collectionViewerPane.setMaximum(true);
this.collectionViewerPane.setVisible(true); this.collectionViewerPane.setVisible(true);
setActive(collectionViewerPane); setActive(collectionViewerPane);
} catch (PropertyVetoException ex) {
logger.fatal(null, ex);
}
} }
static void renderSplashFrame(Graphics2D g) { static void renderSplashFrame(Graphics2D g) {