Skip to content

Commit

Permalink
Modal icon
Browse files Browse the repository at this point in the history
  • Loading branch information
Guo Yunhe committed Aug 31, 2016
1 parent ce5d44b commit 90bf785
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
6 changes: 6 additions & 0 deletions src/me/guoyunhe/fontweak/MainWindow.form
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
<Property name="title" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
<ResourceString bundle="me/guoyunhe/fontweak/lang/main.properties" key="ABOUT" replaceFormat="java.util.ResourceBundle.getBundle(&quot;{bundleNameSlashes}&quot;).getString(&quot;{key}&quot;)"/>
</Property>
<Property name="iconImage" type="java.awt.Image" editor="org.netbeans.modules.form.RADConnectionPropertyEditor">
<Connection code="appIcon.getImage()&#xa;" type="code"/>
</Property>
<Property name="locationByPlatform" type="boolean" value="true"/>
<Property name="minimumSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
<Dimension value="[400, 300]"/>
Expand Down Expand Up @@ -47,6 +50,9 @@
<Property name="title" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
<ResourceString bundle="me/guoyunhe/fontweak/lang/main.properties" key="CREATE FONT MATCH" replaceFormat="java.util.ResourceBundle.getBundle(&quot;{bundleNameSlashes}&quot;).getString(&quot;{key}&quot;)"/>
</Property>
<Property name="iconImage" type="java.awt.Image" editor="org.netbeans.modules.form.RADConnectionPropertyEditor">
<Connection code="appIcon.getImage()" type="code"/>
</Property>
<Property name="locationByPlatform" type="boolean" value="true"/>
<Property name="modal" type="boolean" value="true"/>
<Property name="size" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
Expand Down
5 changes: 4 additions & 1 deletion src/me/guoyunhe/fontweak/MainWindow.java
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,8 @@ public boolean isCellEditable(int row, int column){

java.util.ResourceBundle bundle = java.util.ResourceBundle.getBundle("me/guoyunhe/fontweak/lang/main"); // NOI18N
aboutDialog.setTitle(bundle.getString("ABOUT")); // NOI18N
aboutDialog.setIconImage(appIcon.getImage()
);
aboutDialog.setLocationByPlatform(true);
aboutDialog.setMinimumSize(new java.awt.Dimension(400, 300));
aboutDialog.setModal(true);
Expand All @@ -220,6 +222,7 @@ public boolean isCellEditable(int row, int column){
aboutDialog.getContentPane().add(jScrollPane1);

createMatchDialog.setTitle(bundle.getString("CREATE FONT MATCH")); // NOI18N
createMatchDialog.setIconImage(appIcon.getImage());
createMatchDialog.setLocationByPlatform(true);
createMatchDialog.setModal(true);
createMatchDialog.setSize(new java.awt.Dimension(300, 200));
Expand Down Expand Up @@ -586,7 +589,7 @@ private void fontAddButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN
String font = (String)JOptionPane.showInputDialog(this,
java.util.ResourceBundle.getBundle("me/guoyunhe/fontweak/lang/main").getString("CHOOSE FONT"),
java.util.ResourceBundle.getBundle("me/guoyunhe/fontweak/lang/main").getString("CHOOSE FONT"),
JOptionPane.PLAIN_MESSAGE, null, sysfonts.get(), null);
JOptionPane.PLAIN_MESSAGE, null, sysfonts.get(), appIcon.getImage());
fontListModel.addElement(font);
saveFontList();

Expand Down

0 comments on commit 90bf785

Please sign in to comment.