39 lines
1.0 KiB
Java
39 lines
1.0 KiB
Java
|
package app;
|
||
|
|
||
|
// Java imports
|
||
|
import java.awt.*;
|
||
|
import javax.swing.*;
|
||
|
|
||
|
// Console window
|
||
|
class ConsoleWindow extends ChildWindow {
|
||
|
|
||
|
// Instance fields
|
||
|
private boolean shown; // Component has been visible
|
||
|
|
||
|
|
||
|
|
||
|
///////////////////////////////////////////////////////////////////////////
|
||
|
// Constructors //
|
||
|
///////////////////////////////////////////////////////////////////////////
|
||
|
|
||
|
// Default constructor
|
||
|
ConsoleWindow(MainWindow parent) {
|
||
|
super(parent, "console.title");
|
||
|
getContentPane().setPreferredSize(new Dimension(384, 224));
|
||
|
pack();
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
///////////////////////////////////////////////////////////////////////////
|
||
|
// Package Methods //
|
||
|
///////////////////////////////////////////////////////////////////////////
|
||
|
|
||
|
// Show the component on the first transition to debug mode
|
||
|
void firstShow() {
|
||
|
if (!shown)
|
||
|
setVisible(shown = true);
|
||
|
}
|
||
|
|
||
|
}
|