@Override public void paintComponent(Graphics g) { super.paintComponent(g); Graphics2D g2d = (Graphics2D) g; g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON); drawUAV(g2d); drawBarValue(g2d); }
public MwUAVPanel(MwConfiguration conf) { super(new Dimension(170, 200), conf); super.setBarMax(67); super.setBarWidth(8); }