|
|
|
@ -151,9 +151,9 @@ public class NewFormPane extends BasicPane {
|
|
|
|
|
|
|
|
|
|
private JPanel createNewTemplatePane() { |
|
|
|
|
EmptyLayoutPane jPanel = new EmptyLayoutPane(); |
|
|
|
|
jPanel.addMouseListener(new MouseAdapter() { |
|
|
|
|
jPanel.addClickListener(new MouseAdapter() { |
|
|
|
|
@Override |
|
|
|
|
public void mousePressed(MouseEvent e) { |
|
|
|
|
public void mouseClicked(MouseEvent e) { |
|
|
|
|
setSelectedLayoutPane(jPanel); |
|
|
|
|
dialog.setButtonEnabled(true); |
|
|
|
|
} |
|
|
|
@ -238,9 +238,9 @@ public class NewFormPane extends BasicPane {
|
|
|
|
|
layoutPaneMap.put(moduleName, module); |
|
|
|
|
for (PredefinedLayout layout : layouts) { |
|
|
|
|
PredefinedLayoutPane predefinedLayoutPane = new PredefinedLayoutPane(layout); |
|
|
|
|
predefinedLayoutPane.addMouseListener(new MouseAdapter() { |
|
|
|
|
predefinedLayoutPane.addClickListener(new MouseAdapter() { |
|
|
|
|
@Override |
|
|
|
|
public void mousePressed(MouseEvent e) { |
|
|
|
|
public void mouseClicked(MouseEvent e) { |
|
|
|
|
setSelectedLayoutPane(predefinedLayoutPane); |
|
|
|
|
dialog.setButtonEnabled(true); |
|
|
|
|
} |
|
|
|
|