mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
fix layout issues with color picker
This commit is contained in:
+5
-1
@@ -656,7 +656,11 @@ public class Editor extends JFrame
|
||||
item = newJMenuItem("Color Picker", 'P', false);
|
||||
item.addActionListener(new ActionListener() {
|
||||
public void actionPerformed(ActionEvent e) {
|
||||
new ColorPicker(Editor.this).show();
|
||||
SwingUtilities.invokeLater(new Runnable() {
|
||||
public void run() {
|
||||
new ColorPicker(Editor.this).show();
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
menu.add(item);
|
||||
|
||||
Reference in New Issue
Block a user