commit df840053916dd8de4d607045e066edc2d155f41c parent 1765dd55621890013ff1aaea8b87c63456b3cfab Author: Michael Neuper <michael@michaelneuper.com> Date: Fri, 12 May 2023 17:12:29 +0200 Add title and make window dispose on close Diffstat:
| M | src/view/StatisticsUI.form | | | 4 | +++- |
| M | src/view/StatisticsUI.java | | | 4 | +++- |
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/src/view/StatisticsUI.form b/src/view/StatisticsUI.form @@ -2,7 +2,9 @@ <Form version="1.3" maxVersion="1.9" type="org.netbeans.modules.form.forminfo.JFrameFormInfo"> <Properties> - <Property name="defaultCloseOperation" type="int" value="3"/> + <Property name="defaultCloseOperation" type="int" value="2"/> + <Property name="title" type="java.lang.String" value="Statistics"/> + <Property name="alwaysOnTop" type="boolean" value="true"/> </Properties> <SyntheticProperties> <SyntheticProperty name="formSizePolicy" type="int" value="1"/> diff --git a/src/view/StatisticsUI.java b/src/view/StatisticsUI.java @@ -56,7 +56,9 @@ public class StatisticsUI extends javax.swing.JFrame { jLabelPushesAmount = new javax.swing.JLabel(); jPanelStatisticsChart = new javax.swing.JPanel(); - setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); + setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE); + setTitle("Statistics"); + setAlwaysOnTop(true); jLabel1.setFont(new java.awt.Font("Segoe UI", 1, 48)); // NOI18N jLabel1.setText("Statistics");