mirror of
https://github.com/magefree/mage.git
synced 2025-12-22 19:41:59 -08:00
* MageBook - Won't be loaded by default if the client starts (now the change is included).
This commit is contained in:
parent
a8e54c52cd
commit
0d6853bd8f
1 changed files with 16 additions and 7 deletions
|
|
@ -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() {
|
||||||
this.collectionViewerPane.setVisible(true);
|
JInternalFrame[] windows = desktopPane.getAllFramesInLayer(JLayeredPane.DEFAULT_LAYER);
|
||||||
setActive(collectionViewerPane);
|
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);
|
||||||
|
setActive(collectionViewerPane);
|
||||||
|
} catch (PropertyVetoException ex) {
|
||||||
|
logger.fatal(null, ex);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void renderSplashFrame(Graphics2D g) {
|
static void renderSplashFrame(Graphics2D g) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue