mirror of
https://github.com/processing/processing4.git
synced 2026-02-03 05:39:18 +01:00
repainting works properly
This commit is contained in:
@@ -598,6 +598,7 @@ public abstract class Editor extends JFrame implements RunnerListener {
|
||||
|
||||
public void rebuildToolbar() {
|
||||
toolbar.rebuild();
|
||||
toolbar.revalidate(); // necessary to handle sub-components
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -132,8 +132,6 @@ abstract public class EditorToolbar extends JPanel {
|
||||
|
||||
|
||||
public void paintComponent(Graphics g) {
|
||||
// label.setText(editor.getSketch().getName());
|
||||
// super.paintComponent(g);
|
||||
Dimension size = getSize();
|
||||
g.drawImage(gradient, 0, 0, size.width, size.height, this);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user