This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2012-04-30 11:36:46

slayerrobe7
Scratcher
Registered: 2011-06-24
Posts: 500+

official Java topic

when gf clicked
discuss all things java

Code:

import javax.swing.*;
import java.awt.*;

public class SalutonFrame extends JFrame {
    public SalutonFrame () {
        super("Java");
        setSize(350, 100);
        setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        setVisible(true);
        FlowLayout flo = new FlowLayout();
        setLayout(flo);
        JLabel hi = new JLabel("discus all things java");
        add(hi);
        

          
        
    }
    
    public static void main(String[] args) {
        SalutonFrame sal = new SalutonFrame();
    }
}

http://i1069.photobucket.com/albums/u475/slayerrobe7/th_Capture-2.png

enjoy


!!!When it comes to Scratch2.0 I am totally like freaking out!!!

Offline

 

#2 2012-04-30 11:58:03

ProgrammingFreak
Scratcher
Registered: 2010-09-04
Posts: 1000+

Re: official Java topic

There is already an Official Java Topic.  wink

Offline

 

#3 2012-04-30 14:31:59

16Skittles
Scratcher
Registered: 2009-08-26
Posts: 1000+

Re: official Java topic


http://16skittles.tk/sig.png
Are you a student? Check out OnSchedule!

Offline

 

#4 2012-04-30 14:37:46

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: official Java topic

Since it looks like a topic for this already exists (link), let's use the older one instead.  smile  Closing...

Offline

 

Board footer