Interfaccia

This commit is contained in:
La Programmatrice Verde
2026-02-17 09:10:47 +01:00
parent add5609bd0
commit 03a62da790
3 changed files with 114 additions and 5 deletions

View File

@@ -71,7 +71,7 @@ jlink.additionalmodules=
jlink.additionalparam=
jlink.launcher=true
jlink.launcher.name=GUIConvertiBasi
main.class=
main.class=GUIConvertiBasi
manifest.file=manifest.mf
meta.inf.dir=${src.dir}/META-INF
mkdist.disabled=false

View File

@@ -23,13 +23,77 @@
<Layout>
<DimensionLayout dim="0">
<Group type="103" groupAlignment="0" attributes="0">
<EmptySpace min="0" pref="400" max="32767" attributes="0"/>
<Group type="102" alignment="0" attributes="0">
<EmptySpace min="-2" pref="32" max="-2" attributes="0"/>
<Group type="103" groupAlignment="0" max="-2" attributes="0">
<Component id="txtNumeroConvertito" min="-2" max="-2" attributes="0"/>
<Component id="lblBaseDestinataria" min="-2" max="-2" attributes="0"/>
<Component id="lblNumeroDaConvertire" max="32767" attributes="0"/>
<Component id="txtNumeroDaConvertire" alignment="0" max="32767" attributes="0"/>
<Component id="cmbBaseDestinataria" alignment="0" max="32767" attributes="0"/>
<Component id="txtNueroConvertito" alignment="0" max="32767" attributes="0"/>
</Group>
<EmptySpace pref="24" max="32767" attributes="0"/>
</Group>
</Group>
</DimensionLayout>
<DimensionLayout dim="1">
<Group type="103" groupAlignment="0" attributes="0">
<EmptySpace min="0" pref="300" max="32767" attributes="0"/>
<Group type="102" alignment="0" attributes="0">
<EmptySpace min="-2" pref="14" max="-2" attributes="0"/>
<Component id="lblNumeroDaConvertire" min="-2" max="-2" attributes="0"/>
<EmptySpace max="-2" attributes="0"/>
<Component id="txtNumeroDaConvertire" min="-2" max="-2" attributes="0"/>
<EmptySpace max="-2" attributes="0"/>
<Component id="lblBaseDestinataria" min="-2" max="-2" attributes="0"/>
<EmptySpace type="unrelated" max="-2" attributes="0"/>
<Component id="cmbBaseDestinataria" min="-2" max="-2" attributes="0"/>
<EmptySpace type="separate" max="-2" attributes="0"/>
<Component id="txtNumeroConvertito" min="-2" pref="41" max="-2" attributes="0"/>
<EmptySpace max="-2" attributes="0"/>
<Component id="txtNueroConvertito" min="-2" max="-2" attributes="0"/>
<EmptySpace pref="39" max="32767" attributes="0"/>
</Group>
</Group>
</DimensionLayout>
</Layout>
<SubComponents>
<Component class="javax.swing.JLabel" name="lblNumeroDaConvertire">
<Properties>
<Property name="text" type="java.lang.String" value="Numero da convertire"/>
</Properties>
</Component>
<Component class="javax.swing.JComboBox" name="cmbBaseDestinataria">
<Properties>
<Property name="model" type="javax.swing.ComboBoxModel" editor="org.netbeans.modules.form.editors2.ComboBoxModelEditor">
<StringArray count="4">
<StringItem index="0" value="Binaria"/>
<StringItem index="1" value="Ottale"/>
<StringItem index="2" value="Esadecimale"/>
<StringItem index="3" value="Vigesimale"/>
</StringArray>
</Property>
</Properties>
<AuxValues>
<AuxValue name="JavaCodeGenerator_TypeParameters" type="java.lang.String" value="&lt;String&gt;"/>
</AuxValues>
</Component>
<Component class="javax.swing.JLabel" name="lblBaseDestinataria">
<Properties>
<Property name="text" type="java.lang.String" value="Base destinataria"/>
</Properties>
</Component>
<Component class="javax.swing.JLabel" name="txtNumeroConvertito">
<Properties>
<Property name="text" type="java.lang.String" value="Numero convertito"/>
</Properties>
</Component>
<Component class="javax.swing.JTextField" name="txtNueroConvertito">
<Properties>
<Property name="editable" type="boolean" value="false"/>
</Properties>
</Component>
<Component class="javax.swing.JTextField" name="txtNumeroDaConvertire">
</Component>
</SubComponents>
</Form>

View File

@@ -27,17 +27,56 @@ public class GUIConvertiBasi extends javax.swing.JFrame {
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {
lblNumeroDaConvertire = new javax.swing.JLabel();
cmbBaseDestinataria = new javax.swing.JComboBox<>();
lblBaseDestinataria = new javax.swing.JLabel();
txtNumeroConvertito = new javax.swing.JLabel();
txtNueroConvertito = new javax.swing.JTextField();
txtNumeroDaConvertire = new javax.swing.JTextField();
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
lblNumeroDaConvertire.setText("Numero da convertire");
cmbBaseDestinataria.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { "Binaria", "Ottale", "Esadecimale", "Vigesimale" }));
lblBaseDestinataria.setText("Base destinataria");
txtNumeroConvertito.setText("Numero convertito");
txtNueroConvertito.setEditable(false);
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGap(0, 400, Short.MAX_VALUE)
.addGroup(layout.createSequentialGroup()
.addGap(32, 32, 32)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addComponent(txtNumeroConvertito)
.addComponent(lblBaseDestinataria)
.addComponent(lblNumeroDaConvertire, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(txtNumeroDaConvertire)
.addComponent(cmbBaseDestinataria, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(txtNueroConvertito))
.addContainerGap(24, Short.MAX_VALUE))
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGap(0, 300, Short.MAX_VALUE)
.addGroup(layout.createSequentialGroup()
.addGap(14, 14, 14)
.addComponent(lblNumeroDaConvertire)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(txtNumeroDaConvertire, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(lblBaseDestinataria)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(cmbBaseDestinataria, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(18, 18, 18)
.addComponent(txtNumeroConvertito, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(txtNueroConvertito, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap(39, Short.MAX_VALUE))
);
pack();
@@ -69,5 +108,11 @@ public class GUIConvertiBasi extends javax.swing.JFrame {
}
// Variables declaration - do not modify//GEN-BEGIN:variables
private javax.swing.JComboBox<String> cmbBaseDestinataria;
private javax.swing.JLabel lblBaseDestinataria;
private javax.swing.JLabel lblNumeroDaConvertire;
private javax.swing.JTextField txtNueroConvertito;
private javax.swing.JLabel txtNumeroConvertito;
private javax.swing.JTextField txtNumeroDaConvertire;
// End of variables declaration//GEN-END:variables
}