Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
7d67de4
// BH 9/18/2018 fixes data.getBytes() not qualified, J2S.saveFile
Sep 19, 2018
6670d59
// moved to local
Sep 19, 2018
4ce594f
Merge branch 'hanson1' of https://github.com/BobHanson/java2script.gi…
Sep 22, 2018
a15ca75
fixes for JScrollBar
Sep 23, 2018
75ba926
fix for a2s.Applet subclasses not having super.paint(g) methods
Sep 23, 2018
c8e7ab2
3.2.2.07 adds support for direct AWT java.applet.Applet translation
Sep 23, 2018
f2523c0
a2s support for AWT non-Swing Applets
Sep 23, 2018
3882259
new AWT constructor-only classes that subclass a2s.*
Sep 23, 2018
1f3509b
Core plugin 3.2.2.07 adds HTML for java.applet.Applet
Sep 23, 2018
9e373b1
new classes for AWT
Sep 23, 2018
180f0d9
printwriter fix -- no need for reflection
Sep 23, 2018
45138ce
AWT/swing support for JSFrame, JSDialog, JSPanel
Sep 23, 2018
4102acb
swingjs/plaf support for new AWT JSxxxx classes
Sep 23, 2018
f0cb0ee
adds JSObject support for JSApplet/Applet
Sep 23, 2018
ed6ebd5
test files for AWT applets
Sep 23, 2018
46142c1
distribution files for direct AWT support
Sep 23, 2018
6f9103d
3.2.3.00 full coverage of java.awt non-Swing components. 2/2
Sep 26, 2018
1ed4235
3.2.3.00 full coverage of java.awt non-Swing components. 2/2
Sep 26, 2018
9547f55
Merge branch 'hanson1' of https://github.com/BobHanson/java2script.git
Sep 26, 2018
141c976
Merge pull request #63 from BobHanson/hanson1
BobHanson Sep 26, 2018
b839cad
repairs 0-length SwingJS-site.zip
Sep 26, 2018
41ea62b
Merge pull request #64 from BobHanson/hanson1
BobHanson Sep 26, 2018
a27599b
BigInteger, BigDecimal -- preliminary only
Oct 1, 2018
110753a
fixes for Integer, Long, and System.properties
Oct 1, 2018
4e3eba1
preliminary info for JAXB -- will be changing
Oct 1, 2018
574730c
resource bundle default set to check Properties files first
Oct 1, 2018
10192c4
JAXB with examples and org.apache.xml.bind support
Oct 1, 2018
dd8a505
3.2.4.01(Runtime) BH 2018.10.01
Oct 1, 2018
c00cdc0
Merge pull request #65 from BobHanson/hanson1
BobHanson Oct 1, 2018
4536495
doc/Differences.txt update; moving older doc/*.txt to unused/
Oct 2, 2018
40ae205
BigInteger working; tested for div
Oct 3, 2018
990e745
adds test.math; fixes BigInteger;working
Oct 4, 2018
3e97e0e
fixing A2SEvent
Oct 9, 2018
c246a91
antialiasing fixes
Oct 9, 2018
2a083b7
antialias testing
Oct 9, 2018
879b025
GPL ConcurrentMap.java
Oct 9, 2018
de1797f
open source QName from JBoss
Oct 9, 2018
d0368b8
SwingJS-site.zip; preliminary javax.xml work
Oct 9, 2018
2207f32
Merge pull request #66 from BobHanson/hanson1
BobHanson Oct 10, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
test files for AWT applets
  • Loading branch information
hansonr hansonr
hansonr authored and hansonr committed Sep 23, 2018
commit ed6ebd588a85fde2ac725fbbd3ee4afcdd7d2e15
15 changes: 7 additions & 8 deletions sources/net.sf.j2s.java.core/src/test/TApp2.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,35 +6,34 @@
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.GridLayout;
import java.awt.Label;

import javax.swing.JApplet;
import javax.swing.JComponent;
import javax.swing.JLabel;
import javax.swing.JPanel;

import a2s.Label;


public class TApp2 extends JApplet {
public void init() {
setSize(500,500);
((JComponent) ((Container) super.getRootPane().getComponent(1)).getComponent(0)).setOpaque(false);
setBackground(Color.white);
getContentPane().setBackground(Color.yellow);
setLayout(null);
JPanel panel = new JPanel();
panel.setBounds(10, 10, 100, 150);
add(panel);
panel.setLayout(null);
panel.setBackground(Color.red);
JLabel label = new JLabel("OK");
JLabel label = new JLabel("OK-netTapp2");
label.setBounds(10, 10, 50, 60);
panel.add(label);

JPanel panel2 = new JPanel();
panel2.setLayout(new GridLayout(2, 1));
Label label2 = new Label("1");
label2.setAlignment(Label.CENTER);
panel2.add(label2);
Label label1 = new Label("1");
label1.setAlignment(Label.CENTER);
panel2.add(label1);
label1.setSize(50,15);
panel2.add(new JLabel("2"));
panel2.setBounds(200, 150, 100, 150);
add(panel2);
Expand Down
50 changes: 50 additions & 0 deletions sources/net.sf.j2s.java.core/src/test/TApp2_AWT.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
package test;

import java.applet.Applet;
import java.awt.BasicStroke;
import java.awt.Color;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.GridLayout;

import java.awt.Label;
import java.awt.Panel;


public class TApp2_AWT extends Applet {
public void init() {
setSize(500,500);
// setBackground(Color.YELLOW);
setLayout(null);
Panel panel = new Panel();
panel.setBounds(10, 10, 100, 150);
add(panel);
panel.setLayout(null);
panel.setBackground(Color.red);
Label label = new Label("OKnet");
label.setBounds(10, 10, 50, 60);
panel.add(label);

Panel panel2 = new Panel();
panel2.setLayout(new GridLayout(2, 1));
Label label1 = new Label("1");
label1.setBackground(Color.orange);
label1.setAlignment(Label.CENTER);
label1.setSize(50,15);

panel2.add(label1);
panel2.add(new Label("2"));
panel2.setBounds(200, 150, 100, 150);
add(panel2);
}

public void paint(Graphics g) {
super.paint(g);
((Graphics2D) g).setStroke((new BasicStroke(0)));
g.drawRect(130, 150, 40, 60);
g.fillRect(140, 5, 1, 200);
g.drawRect(160, 5, 1, 200);
g.drawLine(150, 150, 150, 350);
g.drawString("testing123", 50, 200);
}
}
Loading