merge conflict
This commit is contained in:
@@ -58,13 +58,25 @@ public class JRootKiosk extends javax.swing.JFrame implements AppMessage {
|
|||||||
initComponents();
|
initComponents();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public JRootApp getRootapp() {
|
||||||
|
return m_rootapp;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRootapp(JRootApp m_rootapp) {
|
||||||
|
this.m_rootapp = m_rootapp;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param props
|
* @param props
|
||||||
* @throws java.io.IOException
|
* @throws java.io.IOException
|
||||||
*/
|
*/
|
||||||
public void initFrame(AppProperties props) throws IOException {
|
public void initFrame(AppProperties props) throws IOException {
|
||||||
|
|
||||||
|
String osName = System.getProperty("os.name").toLowerCase();
|
||||||
|
boolean isWindows = osName.startsWith("windows");
|
||||||
|
boolean isMac = osName.startsWith("mac");
|
||||||
|
|
||||||
m_OS = new OSValidator();
|
m_OS = new OSValidator();
|
||||||
m_props = props;
|
m_props = props;
|
||||||
|
|
||||||
@@ -84,15 +96,16 @@ public class JRootKiosk extends javax.swing.JFrame implements AppMessage {
|
|||||||
setTitle(AppLocal.APP_NAME + " - " + AppLocal.APP_VERSION);
|
setTitle(AppLocal.APP_NAME + " - " + AppLocal.APP_VERSION);
|
||||||
|
|
||||||
Dimension d = Toolkit.getDefaultToolkit().getScreenSize();
|
Dimension d = Toolkit.getDefaultToolkit().getScreenSize();
|
||||||
setBounds(0, 0, d.width, d.height);
|
if (isMac) {
|
||||||
|
setBounds(0, 25, d.width, d.height - 25);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
setBounds(0, 0, d.width, d.height);
|
||||||
|
}
|
||||||
|
|
||||||
String osName = System.getProperty("os.name").toLowerCase();
|
GraphicsDevice device = GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice();
|
||||||
boolean isWindows = osName.startsWith("windows");
|
|
||||||
|
|
||||||
GraphicsDevice device = GraphicsEnvironment
|
if (device.isFullScreenSupported() && !isWindows && !isMac) {
|
||||||
.getLocalGraphicsEnvironment().getDefaultScreenDevice();
|
|
||||||
|
|
||||||
if (device.isFullScreenSupported() && !isWindows) {
|
|
||||||
setResizable(true);
|
setResizable(true);
|
||||||
|
|
||||||
addFocusListener(new FocusListener() {
|
addFocusListener(new FocusListener() {
|
||||||
@@ -115,7 +128,8 @@ public class JRootKiosk extends javax.swing.JFrame implements AppMessage {
|
|||||||
"Connection", JOptionPane.INFORMATION_MESSAGE);
|
"Connection", JOptionPane.INFORMATION_MESSAGE);
|
||||||
|
|
||||||
new JFrmConfig(props).setVisible(true); // Show the configuration window.
|
new JFrmConfig(props).setVisible(true); // Show the configuration window.
|
||||||
}
|
}
|
||||||
|
setRootapp(m_rootapp);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user