File tree 1 file changed +7
-3
lines changed
1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 26
26
import java .awt .*;
27
27
import java .awt .event .*;
28
28
import javax .swing .*;
29
+
29
30
import java .awt .datatransfer .*;
30
31
import static processing .app .I18n ._ ;
31
32
@@ -447,11 +448,14 @@ public void keyTyped(KeyEvent event) {
447
448
add (progressBar );
448
449
progressBar .setVisible (false );
449
450
450
- copyErrorButton = new JButton (_ ("Copy To Clipboard" ));
451
+ copyErrorButton = new JButton (
452
+ "<html>" + _ ("Copy error" ) + "<br>" + _ ("to clipboard" ) + "</html>" );
453
+ Font font = copyErrorButton .getFont ();
454
+ font = new Font (font .getName (), font .getStyle (), (int ) (font .getSize ()*0.7 ));
455
+ copyErrorButton .setFont (font );
456
+ copyErrorButton .setHorizontalAlignment (JLabel .CENTER );
451
457
add (copyErrorButton );
452
- //copyErrorButton.setVisible(true);
453
458
copyErrorButton .setVisible (false );
454
- System .out .println ("create copyErrorButton" );
455
459
copyErrorButton .addActionListener (new ActionListener () {
456
460
public void actionPerformed (ActionEvent e ) {
457
461
String message ="" ;
You can’t perform that action at this time.
0 commit comments