V4.5.0 accélérateur des titres Shift+1 ; Shift+2 ; Shift+3
This commit is contained in:
parent
a3a75ac012
commit
a6b5977ef3
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -21,9 +21,9 @@ public class actTitre1 extends AbstractAction{
|
||||
*/
|
||||
private static final long serialVersionUID = 1L;
|
||||
{
|
||||
putValue( Action.NAME, "Titre 1 (CTRL+1)" );
|
||||
putValue( Action.NAME, "Titre 1 (SHIFT+1)" );
|
||||
putValue( Action.SHORT_DESCRIPTION, "Titre 1" );
|
||||
putValue( Action.ACCELERATOR_KEY, KeyStroke.getKeyStroke(KeyEvent.VK_1, KeyEvent.CTRL_DOWN_MASK) );
|
||||
putValue( Action.ACCELERATOR_KEY, KeyStroke.getKeyStroke(KeyEvent.VK_1, KeyEvent.SHIFT_DOWN_MASK) );
|
||||
}
|
||||
@Override
|
||||
public void actionPerformed(ActionEvent e) {
|
||||
|
@ -21,9 +21,9 @@ public class actTitre2 extends AbstractAction{
|
||||
*/
|
||||
private static final long serialVersionUID = 1L;
|
||||
{
|
||||
putValue( Action.NAME, "Titre 2 (CTRL+2)" );
|
||||
putValue( Action.SHORT_DESCRIPTION, "Titre 2" );
|
||||
putValue( Action.ACCELERATOR_KEY, KeyStroke.getKeyStroke(KeyEvent.VK_2, KeyEvent.CTRL_DOWN_MASK ) );
|
||||
putValue( Action.NAME, "Titre 2 (SHIFT+2)" );
|
||||
putValue( Action.SHORT_DESCRIPTION, "Titre 2 dans le feedback" );
|
||||
putValue( Action.ACCELERATOR_KEY, KeyStroke.getKeyStroke(KeyEvent.VK_2, KeyEvent.SHIFT_DOWN_MASK ) );
|
||||
}
|
||||
@Override
|
||||
public void actionPerformed(ActionEvent e) {
|
||||
|
@ -21,9 +21,9 @@ public class actTitre3 extends AbstractAction{
|
||||
*/
|
||||
private static final long serialVersionUID = 1L;
|
||||
{
|
||||
putValue( Action.NAME, "Titre 3 (CTRL+3)" );
|
||||
putValue( Action.SHORT_DESCRIPTION, "Titre 3" );
|
||||
putValue( Action.ACCELERATOR_KEY, KeyStroke.getKeyStroke(KeyEvent.VK_3, KeyEvent.CTRL_DOWN_MASK ) );
|
||||
putValue( Action.NAME, "Titre 3 (SHIFT+3)" );
|
||||
putValue( Action.SHORT_DESCRIPTION, "Titre 3 dans le feedback" );
|
||||
putValue( Action.ACCELERATOR_KEY, KeyStroke.getKeyStroke(KeyEvent.VK_3, KeyEvent.SHIFT_DOWN_MASK) );
|
||||
|
||||
}
|
||||
@Override
|
||||
|
@ -193,11 +193,11 @@ public final class create extends JFrame {
|
||||
panelLeft.add(leftScrollPane,BorderLayout.CENTER);
|
||||
|
||||
JScrollPane rightScrollPane = new JScrollPane( );
|
||||
JScrollPane ScrollPaneTable = new JScrollPane( );
|
||||
JScrollPane ScrollPaneTableBouton = new JScrollPane( );
|
||||
|
||||
|
||||
// JSplitPane splitPane2 = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, rightScrollPane, table );
|
||||
JSplitPane splitPane2 = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, rightScrollPane, ScrollPaneTable );
|
||||
JSplitPane splitPane2 = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, rightScrollPane, ScrollPaneTableBouton );
|
||||
splitPane2.setBounds(10, 10, 1364, 783);
|
||||
splitPane2.setBounds(10, 10, 1364, 783);
|
||||
splitPane2.setDividerLocation(0.8);
|
||||
@ -378,11 +378,11 @@ public final class create extends JFrame {
|
||||
JMenu mnLesTitres= new JMenu("Les titres");
|
||||
mnNode.add(mnLesTitres);
|
||||
JMenuItem mnTitre1 = mnLesTitres.add(new actTitre1());
|
||||
mnTitre1.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_1, InputEvent.CTRL_DOWN_MASK));
|
||||
mnTitre1.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_1, InputEvent.SHIFT_DOWN_MASK));
|
||||
JMenuItem mnTitre2 = mnLesTitres.add(new actTitre2());
|
||||
mnTitre2.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_2, InputEvent.CTRL_DOWN_MASK));
|
||||
mnTitre2.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_2, InputEvent.SHIFT_DOWN_MASK));
|
||||
JMenuItem mnTitre3 = mnLesTitres.add(new actTitre3());
|
||||
mnTitre3.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_3, InputEvent.CTRL_DOWN_MASK));
|
||||
mnTitre3.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_3, InputEvent.SHIFT_DOWN_MASK));
|
||||
|
||||
|
||||
// Définition du menu déroulant "Création évaluation" et de son contenu
|
||||
|
Loading…
x
Reference in New Issue
Block a user