Cambiado JButtons de ManagerView por JToggleButtons

This commit is contained in:
Daniel Cortes
2018-12-24 22:09:41 -03:00
parent f6df709679
commit 3a45692c7a
2 changed files with 15 additions and 31 deletions

View File

@@ -16,7 +16,7 @@
<border type="none"/>
<children/>
</grid>
<grid id="b2933" binding="controlsPanel" layout-manager="GridLayoutManager" row-count="1" column-count="4" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1">
<grid id="b2933" binding="controlsPanel" layout-manager="GridLayoutManager" row-count="1" column-count="2" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1">
<margin top="0" left="0" bottom="0" right="0"/>
<constraints>
<grid row="0" column="0" row-span="1" col-span="1" vsize-policy="3" hsize-policy="3" anchor="0" fill="3" indent="0" use-parent-layout="false"/>
@@ -24,9 +24,9 @@
<properties/>
<border type="none"/>
<children>
<component id="2ed8e" class="javax.swing.JButton" binding="egresosButton">
<component id="a853b" class="javax.swing.JToggleButton" binding="egresosButton">
<constraints>
<grid row="0" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="3" anchor="0" fill="1" indent="0" use-parent-layout="false">
<grid row="0" column="0" row-span="1" col-span="1" vsize-policy="3" hsize-policy="3" anchor="0" fill="0" indent="0" use-parent-layout="false">
<preferred-size width="200" height="-1"/>
</grid>
</constraints>
@@ -34,19 +34,9 @@
<text value="&amp;Egresos"/>
</properties>
</component>
<component id="48887" class="javax.swing.JButton" binding="button4" default-binding="true">
<component id="a494c" class="javax.swing.JToggleButton" binding="ingresosButton">
<constraints>
<grid row="0" column="2" row-span="1" col-span="1" vsize-policy="0" hsize-policy="3" anchor="0" fill="1" indent="0" use-parent-layout="false">
<preferred-size width="200" height="-1"/>
</grid>
</constraints>
<properties>
<text value="Button"/>
</properties>
</component>
<component id="f54ab" class="javax.swing.JButton" binding="ingresosButton">
<constraints>
<grid row="0" column="1" row-span="1" col-span="1" vsize-policy="0" hsize-policy="3" anchor="0" fill="1" indent="0" use-parent-layout="false">
<grid row="0" column="1" row-span="1" col-span="1" vsize-policy="3" hsize-policy="3" anchor="0" fill="0" indent="0" use-parent-layout="false">
<preferred-size width="200" height="-1"/>
</grid>
</constraints>
@@ -54,20 +44,16 @@
<text value="&amp;Ingresos"/>
</properties>
</component>
<component id="93758" class="javax.swing.JButton" binding="button3" default-binding="true">
<constraints>
<grid row="0" column="3" row-span="1" col-span="1" vsize-policy="0" hsize-policy="3" anchor="0" fill="1" indent="0" use-parent-layout="false">
<preferred-size width="200" height="-1"/>
</grid>
</constraints>
<properties>
<text value="Button"/>
</properties>
</component>
</children>
</grid>
</children>
</grid>
<buttonGroups>
<group name="btnGroup">
<member id="a853b"/>
<member id="a494c"/>
</group>
</buttonGroups>
<inspectionSuppressions>
<suppress inspection="I18nForm"/>
<suppress inspection="FormSpellChecking"/>

View File

@@ -27,19 +27,17 @@ package danielcortes.xyz.views;
import javax.swing.*;
public class ManagerView {
private JButton egresosButton;
private JButton ingresosButton;
private JButton button3;
private JButton button4;
private JToggleButton egresosButton;
private JToggleButton ingresosButton;
private JPanel contentPanel;
private JPanel cardPanel;
private JPanel controlsPanel;
public JButton getEgresosButton() {
public JToggleButton getEgresosButton() {
return egresosButton;
}
public JButton getIngresosButton() {
public JToggleButton getIngresosButton() {
return ingresosButton;
}