mirror of
https://github.com/LucasVbr/LecteurPdfDoubleAffichage.git
synced 2026-05-16 09:05:34 +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()) {
|
||||
panel.add(new ligneRaccourci(nomOptions,
|
||||
(char) raccourcis.get(nomOptions)
|
||||
.getKeyCode(),
|
||||
false));
|
||||
.getKeyCode()));
|
||||
}
|
||||
add(panel);
|
||||
pack();
|
||||
setSize(250, 500);
|
||||
setSize(200, 400);
|
||||
setResizable(false);
|
||||
setVisible(true);
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<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"/>
|
||||
<constraints>
|
||||
<xy x="20" y="20" width="500" height="400"/>
|
||||
@@ -24,14 +24,6 @@
|
||||
<text value="Button"/>
|
||||
</properties>
|
||||
</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>
|
||||
</grid>
|
||||
</form>
|
||||
|
||||
@@ -14,15 +14,13 @@ import java.util.Locale;
|
||||
*/
|
||||
public class ligneRaccourci extends JPanel {
|
||||
private JLabel raccourciLabel;
|
||||
private JCheckBox ctrlCheckBox;
|
||||
private JPanel optionsRaccourcis;
|
||||
private JButton inputButton;
|
||||
|
||||
public ligneRaccourci(String labelName, char raccourcis, boolean ctrl) {
|
||||
public ligneRaccourci(String labelName, char raccourcis) {
|
||||
raccourciLabel.setText(labelName);
|
||||
inputButton.setText(String.valueOf(raccourcis)/*.toUpperCase(Locale
|
||||
.ROOT)*/);
|
||||
ctrlCheckBox.setSelected(ctrl);
|
||||
add(optionsRaccourcis);
|
||||
}
|
||||
|
||||
@@ -30,11 +28,7 @@ public class ligneRaccourci extends JPanel {
|
||||
return raccourciLabel;
|
||||
}
|
||||
|
||||
public JButton getInputTextField() {
|
||||
public JButton getInputButton() {
|
||||
return inputButton;
|
||||
}
|
||||
|
||||
public JCheckBox getCtrlCheckBox() {
|
||||
return ctrlCheckBox;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user