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