Skip to content

Commit

Permalink
Standalone app fine tuning
Browse files Browse the repository at this point in the history
  • Loading branch information
sbodmer committed Apr 4, 2016
1 parent fb0aa3b commit 0471e40
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 2 deletions.
4 changes: 3 additions & 1 deletion Manifests/MultiProperties.mf
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
Manifest-Version: 1.0
Main-Class: lsimedia.multiproperties.standalone.JMultiPropertiesFrame

Permissions: all-permissions
Application-Name: MultiProperties
Codebase: *
2 changes: 1 addition & 1 deletion build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

<target name="create-standalone" depends="init" description="Create stand alone executable">
<jar destfile="${build.dir}/MultiProperties.jar" manifest="Manifests/MultiProperties.mf">
<fileset dir="${build.dir}/classes" includes="lsimedia/multiproperties/**"/>
<fileset dir="${build.dir}/classes" includes="lsimedia/multiproperties/**"/>
</jar>

</target>
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@

<Form version="1.5" maxVersion="1.9" type="org.netbeans.modules.form.forminfo.JFrameFormInfo">
<NonVisualComponents>
<Component class="javax.swing.JLabel" name="LB_Icon">
<Properties>
<Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor">
<Image iconType="3" name="/lsimedia/multiproperties/Resources/Icons/16x16/multi.png"/>
</Property>
<Property name="text" type="java.lang.String" value="jLabel2"/>
</Properties>
</Component>
<Menu class="javax.swing.JMenuBar" name="jMenuBar1">
<Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
Expand Down Expand Up @@ -73,6 +81,7 @@
</NonVisualComponents>
<Properties>
<Property name="defaultCloseOperation" type="int" value="0"/>
<Property name="title" type="java.lang.String" value="MultiProperties"/>
</Properties>
<SyntheticProperties>
<SyntheticProperty name="menuBar" type="java.lang.String" value="jMenuBar1"/>
Expand Down
10 changes: 10 additions & 0 deletions src/lsimedia/multiproperties/standalone/JMultiPropertiesFrame.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import java.awt.CardLayout;
import java.awt.Dimension;
import java.awt.Font;
import java.awt.Image;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.ItemEvent;
Expand All @@ -25,6 +26,7 @@
import javax.swing.ComboBoxModel;
import javax.swing.DefaultComboBoxModel;
import javax.swing.DefaultListModel;
import javax.swing.ImageIcon;
import javax.swing.JFileChooser;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
Expand Down Expand Up @@ -80,6 +82,8 @@ public JMultiPropertiesFrame(boolean lockdown) {

initComponents();

setIconImage(((ImageIcon) LB_Icon.getIcon()).getImage());

MN_Quit.addActionListener(this);
MN_Load.addActionListener(this);
MN_SaveAll.addActionListener(this);
Expand Down Expand Up @@ -463,6 +467,7 @@ public void itemStateChanged(ItemEvent e) {
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {

LB_Icon = new javax.swing.JLabel();
jPanel1 = new javax.swing.JPanel();
LB_Status = new javax.swing.JLabel();
SP_Main = new javax.swing.JSplitPane();
Expand Down Expand Up @@ -503,7 +508,11 @@ private void initComponents() {
jMenu2 = new javax.swing.JMenu();
MN_About = new javax.swing.JMenuItem();

LB_Icon.setIcon(new javax.swing.ImageIcon(getClass().getResource("/lsimedia/multiproperties/Resources/Icons/16x16/multi.png"))); // NOI18N
LB_Icon.setText("jLabel2");

setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);
setTitle("MultiProperties");
addWindowListener(new java.awt.event.WindowAdapter() {
public void windowClosing(java.awt.event.WindowEvent evt) {
formWindowClosing(evt);
Expand Down Expand Up @@ -718,6 +727,7 @@ private void formWindowClosing(java.awt.event.WindowEvent evt) {//GEN-FIRST:even
private javax.swing.JButton BT_SaveProcess;
private javax.swing.JComboBox<String> CMB_Sessions;
private javax.swing.JLabel LB_File;
private javax.swing.JLabel LB_Icon;
private javax.swing.JLabel LB_Path;
private javax.swing.JLabel LB_Status;
private javax.swing.JList<String> LI_Files;
Expand Down

0 comments on commit 0471e40

Please sign in to comment.