eclipse更新Zorder

如何更新Figure的ZOrder

 

z-order of Figures is based on their order in Figure.getChildren().

so in this particular case the figure in front is the last figure to be
added to panel.

to bring the selected figure to front tou just need to do:

panel.remove(figure);
panel.add(figure);

你可能感兴趣的:(eclipse)