Skip to content

Commit d957d19

Browse files
committed
tests and SwingJS-site.zip
1 parent 02d0e72 commit d957d19

File tree

7 files changed

+8
-2
lines changed

7 files changed

+8
-2
lines changed
323 Bytes
Binary file not shown.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
20210826091349
1+
20210826152909
323 Bytes
Binary file not shown.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
20210826091349
1+
20210826152909
323 Bytes
Binary file not shown.

sources/net.sf.j2s.java.core/src/test/JalviewJSTest.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -463,6 +463,9 @@ public void actionPerformed(ActionEvent e) {
463463
cb3.setFont(font);
464464
cb3.addActionListener((e) -> {
465465
System.out.println("cb3 checked " + cb3.isSelected());
466+
Font f = t1.getFont();
467+
t1.setFont(new Font(f.getFontName(), Font.PLAIN, f.getSize()+2));
468+
t1.setText(t1.getText() + "+");
466469

467470
});
468471
cb3.setComponentOrientation(ComponentOrientation.LEFT_TO_RIGHT);

sources/net.sf.j2s.java.core/src/test/Test_Applet_Combo.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,9 @@ public String getToolTipText() {
107107

108108
@Override
109109
public void actionPerformed(ActionEvent e) {
110+
c1.setFont(c1.getFont().deriveFont(c1.getFont().getSize() + 1.0f));
111+
System.out.println(c1.getFont());
112+
c1.setBackground(c1.getBackground() == Color.YELLOW ? Color.WHITE : Color.YELLOW);
110113
c1.setSelectedIndex((c1.getSelectedIndex() + 1) % c1.getItemCount());
111114
}
112115

0 commit comments

Comments
 (0)