|
|
@ -317,9 +317,15 @@ public class FormParaWidgetPane extends JPanel { |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public void mouseClicked(MouseEvent e) { |
|
|
|
public void mouseClicked(MouseEvent e) { |
|
|
|
initWidgetTypePopUp(); |
|
|
|
initWidgetTypePopUp(); |
|
|
|
widgetTypePopupMenu.show(FormParaWidgetPane.this, |
|
|
|
if(jSeparatorChart != null) { |
|
|
|
(int) jSeparatorLayout.getLocation().getX() + BORDER, |
|
|
|
widgetTypePopupMenu.show(FormParaWidgetPane.this, |
|
|
|
(int) jSeparatorLayout.getLocation().getY()); |
|
|
|
(int) jSeparatorChart.getLocation().getX() + BORDER, |
|
|
|
|
|
|
|
(int) jSeparatorChart.getLocation().getY()); |
|
|
|
|
|
|
|
}else{ |
|
|
|
|
|
|
|
widgetTypePopupMenu.show(FormParaWidgetPane.this, |
|
|
|
|
|
|
|
(int) jSeparatorLayout.getLocation().getX() + BORDER, |
|
|
|
|
|
|
|
(int) jSeparatorLayout.getLocation().getY()); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
}); |
|
|
|
}); |
|
|
|