mirror of
https://github.com/LucasVbr/LecteurPdfDoubleAffichage.git
synced 2026-07-09 12:47:45 +00:00
Suppression de la checkbox et resize fenêtre
This commit is contained in:
@@ -36,12 +36,11 @@ public class RaccourcisClavier extends JFrame {
|
|||||||
for (String nomOptions : raccourcis.keySet()) {
|
for (String nomOptions : raccourcis.keySet()) {
|
||||||
panel.add(new ligneRaccourci(nomOptions,
|
panel.add(new ligneRaccourci(nomOptions,
|
||||||
(char) raccourcis.get(nomOptions)
|
(char) raccourcis.get(nomOptions)
|
||||||
.getKeyCode(),
|
.getKeyCode()));
|
||||||
false));
|
|
||||||
}
|
}
|
||||||
add(panel);
|
add(panel);
|
||||||
pack();
|
pack();
|
||||||
setSize(250, 500);
|
setSize(200, 400);
|
||||||
setResizable(false);
|
setResizable(false);
|
||||||
setVisible(true);
|
setVisible(true);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<form xmlns="http://www.intellij.com/uidesigner/form/" version="1" bind-to-class="lecteur_pdf.raccourcisClavier.ligneRaccourci">
|
<form xmlns="http://www.intellij.com/uidesigner/form/" version="1" bind-to-class="lecteur_pdf.raccourcisClavier.ligneRaccourci">
|
||||||
<grid id="27dc6" binding="optionsRaccourcis" layout-manager="GridLayoutManager" row-count="1" column-count="3" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1">
|
<grid id="27dc6" binding="optionsRaccourcis" 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"/>
|
<margin top="0" left="0" bottom="0" right="0"/>
|
||||||
<constraints>
|
<constraints>
|
||||||
<xy x="20" y="20" width="500" height="400"/>
|
<xy x="20" y="20" width="500" height="400"/>
|
||||||
@@ -24,14 +24,6 @@
|
|||||||
<text value="Button"/>
|
<text value="Button"/>
|
||||||
</properties>
|
</properties>
|
||||||
</component>
|
</component>
|
||||||
<component id="37960" class="javax.swing.JCheckBox" binding="ctrlCheckBox">
|
|
||||||
<constraints>
|
|
||||||
<grid row="0" column="2" row-span="1" col-span="1" vsize-policy="0" hsize-policy="3" anchor="8" fill="0" indent="0" use-parent-layout="false"/>
|
|
||||||
</constraints>
|
|
||||||
<properties>
|
|
||||||
<text value="CheckBox"/>
|
|
||||||
</properties>
|
|
||||||
</component>
|
|
||||||
</children>
|
</children>
|
||||||
</grid>
|
</grid>
|
||||||
</form>
|
</form>
|
||||||
|
|||||||
@@ -14,15 +14,13 @@ import java.util.Locale;
|
|||||||
*/
|
*/
|
||||||
public class ligneRaccourci extends JPanel {
|
public class ligneRaccourci extends JPanel {
|
||||||
private JLabel raccourciLabel;
|
private JLabel raccourciLabel;
|
||||||
private JCheckBox ctrlCheckBox;
|
|
||||||
private JPanel optionsRaccourcis;
|
private JPanel optionsRaccourcis;
|
||||||
private JButton inputButton;
|
private JButton inputButton;
|
||||||
|
|
||||||
public ligneRaccourci(String labelName, char raccourcis, boolean ctrl) {
|
public ligneRaccourci(String labelName, char raccourcis) {
|
||||||
raccourciLabel.setText(labelName);
|
raccourciLabel.setText(labelName);
|
||||||
inputButton.setText(String.valueOf(raccourcis)/*.toUpperCase(Locale
|
inputButton.setText(String.valueOf(raccourcis)/*.toUpperCase(Locale
|
||||||
.ROOT)*/);
|
.ROOT)*/);
|
||||||
ctrlCheckBox.setSelected(ctrl);
|
|
||||||
add(optionsRaccourcis);
|
add(optionsRaccourcis);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -30,11 +28,7 @@ public class ligneRaccourci extends JPanel {
|
|||||||
return raccourciLabel;
|
return raccourciLabel;
|
||||||
}
|
}
|
||||||
|
|
||||||
public JButton getInputTextField() {
|
public JButton getInputButton() {
|
||||||
return inputButton;
|
return inputButton;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
public JCheckBox getCtrlCheckBox() {
|
|
||||||
return ctrlCheckBox;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user