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

#76 2012-03-19 04:00:29

slinger
Scratcher
Registered: 2011-06-21
Posts: 1000+

Re: scratch in Java-official topic

Haha, you didn't have to, it was a suggestion  tongue  You could have done google code, but in the end if you want to develop you should get sourceforge.


http://s0.bcbits.com/img/buttons/bandcamp_130x27_blue.png

Offline

 

#77 2012-03-19 11:47:22

poopo
Scratcher
Registered: 2009-09-20
Posts: 1000+

Re: scratch in Java-official topic

Since your the one with access to the SourceForge could you please add
//Written by poopo 
to the top of each file?


http://i45.tinypic.com/28rnqki.jpg

Offline

 

#78 2012-03-19 11:53:37

poopo
Scratcher
Registered: 2009-09-20
Posts: 1000+

Re: scratch in Java-official topic

Here is the referance image I've been using.
so add it to the same folder with the .java files and add

Code:

Image frameImage = new ImageIcon(getClass().getResource("Images/Icon.gif")).getImage();

right after

Code:

JFrame jf = new JFrame("ScratchJava");

and

Code:

jf.setIconImage(frameImage);

right after

Code:

jf.setExtendedState(Frame.MAXIMIZED_BOTH);

Last edited by poopo (2012-03-19 11:54:59)


http://i45.tinypic.com/28rnqki.jpg

Offline

 

#79 2012-03-19 11:54:30

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

Re: scratch in Java-official topic

Could I be an understudy or whatever? I don't want many jobs (some) but I want to go through the process of this, please.  big_smile

Offline

 

#80 2012-03-19 11:56:49

poopo
Scratcher
Registered: 2009-09-20
Posts: 1000+

Re: scratch in Java-official topic

ProgrammingFreak wrote:

Could I be an understudy or whatever? I don't want many jobs (some) but I want to go through the process of this, please.  big_smile

Sounds great! I doubt we will have a finished product (especially if I'm on the team XD)
but it is a great learning experience.  smile


http://i45.tinypic.com/28rnqki.jpg

Offline

 

#81 2012-03-19 11:58:56

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

Re: scratch in Java-official topic

poopo wrote:

ProgrammingFreak wrote:

Could I be an understudy or whatever? I don't want many jobs (some) but I want to go through the process of this, please.  big_smile

Sounds great! I doubt we will have a finished product (especially if I'm on the team XD)
but it is a great learning experience.  smile

xD
Do you know of some lighter-weight java compilers I can use on this laptop without taking up much room? I have one on another computer, but its not working right now.

Offline

 

#82 2012-03-19 12:02:21

poopo
Scratcher
Registered: 2009-09-20
Posts: 1000+

Re: scratch in Java-official topic

Because I've only ever used Netbeans I don't know about other compilers weight but I'll give you some names.
The plain old JDK is the lightest but you'd have to use notepad.
Glassfish(idk)
IntelliJ IDEA(idk)
Eclipse(idk)
Netbeans(Heavy)


http://i45.tinypic.com/28rnqki.jpg

Offline

 

#83 2012-03-19 12:08:10

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

Re: scratch in Java-official topic

poopo wrote:

Because I've only ever used Netbeans I don't know about other compilers weight but I'll give you some names.
The plain old JDK is the lightest but you'd have to use notepad.
Glassfish(idk)
IntelliJ IDEA(idk)
Eclipse(idk)
Netbeans(Heavy)

Okay I'll check em out.
Do we have a download for this yet?

Offline

 

#84 2012-03-19 12:12:22

poopo
Scratcher
Registered: 2009-09-20
Posts: 1000+

Re: scratch in Java-official topic

ProgrammingFreak wrote:

poopo wrote:

Because I've only ever used Netbeans I don't know about other compilers weight but I'll give you some names.
The plain old JDK is the lightest but you'd have to use notepad.
Glassfish(idk)
IntelliJ IDEA(idk)
Eclipse(idk)
Netbeans(Heavy)

Okay I'll check em out.
Do we have a download for this yet?

This is the latest download but it's not completly up to date.
Here is the latest jar.

Last edited by poopo (2012-03-19 12:16:07)


http://i45.tinypic.com/28rnqki.jpg

Offline

 

#85 2012-03-19 12:51:41

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

Re: scratch in Java-official topic

Javac isn't working D:

Offline

 

#86 2012-03-19 12:58:07

muppetds
Scratcher
Registered: 2011-02-11
Posts: 1000+

Re: scratch in Java-official topic

poopo wrote:

Here is the referance image I've been using.
so add it to the same folder with the .java files and add

Code:

Image frameImage = new ImageIcon(getClass().getResource("Images/Icon.gif")).getImage();

right after

Code:

JFrame jf = new JFrame("ScratchJava");

and

Code:

jf.setIconImage(frameImage);

right after

Code:

jf.setExtendedState(Frame.MAXIMIZED_BOTH);

Okay will do


SCRATCH'S PARTLY INSANE RESIDENT 
http://internetometer.com/imagesmall/31691.pnghttp://bluetetrarpg.x10.mx/usercard/?name=muppetds

Offline

 

#87 2012-03-19 13:02:53

muppetds
Scratcher
Registered: 2011-02-11
Posts: 1000+

Re: scratch in Java-official topic

gives me this error
run:
Exception in thread "main" java.lang.NullPointerException
    at javax.swing.ImageIcon.<init>(ImageIcon.java:181)
    at MainIDE.<init>(MainIDE.java:9)
    at MainIDE.main(MainIDE.java:84)


SCRATCH'S PARTLY INSANE RESIDENT 
http://internetometer.com/imagesmall/31691.pnghttp://bluetetrarpg.x10.mx/usercard/?name=muppetds

Offline

 

#88 2012-03-19 13:56:03

muppetds
Scratcher
Registered: 2011-02-11
Posts: 1000+

Re: scratch in Java-official topic

its a variable problem


SCRATCH'S PARTLY INSANE RESIDENT 
http://internetometer.com/imagesmall/31691.pnghttp://bluetetrarpg.x10.mx/usercard/?name=muppetds

Offline

 

#89 2012-03-19 14:09:14

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

Re: scratch in Java-official topic

It seems you're missing the icon image required?


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

Offline

 

#90 2012-03-19 14:17:47

muppetds
Scratcher
Registered: 2011-02-11
Posts: 1000+

Re: scratch in Java-official topic

found out  why
the image location  was wrong


SCRATCH'S PARTLY INSANE RESIDENT 
http://internetometer.com/imagesmall/31691.pnghttp://bluetetrarpg.x10.mx/usercard/?name=muppetds

Offline

 

#91 2012-03-19 14:23:48

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

Re: scratch in Java-official topic

Woot I was right  big_smile


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

Offline

 

#92 2012-03-19 14:31:57

muppetds
Scratcher
Registered: 2011-02-11
Posts: 1000+

Re: scratch in Java-official topic

yes
blame poopo


SCRATCH'S PARTLY INSANE RESIDENT 
http://internetometer.com/imagesmall/31691.pnghttp://bluetetrarpg.x10.mx/usercard/?name=muppetds

Offline

 

#93 2012-03-19 15:04:05

muppetds
Scratcher
Registered: 2011-02-11
Posts: 1000+

Re: scratch in Java-official topic

so how do you add a new block?


SCRATCH'S PARTLY INSANE RESIDENT 
http://internetometer.com/imagesmall/31691.pnghttp://bluetetrarpg.x10.mx/usercard/?name=muppetds

Offline

 

#94 2012-03-19 15:09:05

roijac
Scratcher
Registered: 2010-01-19
Posts: 1000+

Re: scratch in Java-official topic

hey guys, could you add me on sf?
i know a bit of java and will be happy to help  smile
username's roijac  smile

Offline

 

#95 2012-03-19 15:09:15

muppetds
Scratcher
Registered: 2011-02-11
Posts: 1000+

Re: scratch in Java-official topic

ProgrammingFreak wrote:

Javac isn't working D:

Javac command?


SCRATCH'S PARTLY INSANE RESIDENT 
http://internetometer.com/imagesmall/31691.pnghttp://bluetetrarpg.x10.mx/usercard/?name=muppetds

Offline

 

#96 2012-03-19 15:12:24

muppetds
Scratcher
Registered: 2011-02-11
Posts: 1000+

Re: scratch in Java-official topic

roijac wrote:

hey guys, could you add me on sf?
i know a bit of java and will be happy to help  smile
username's roijac  smile

ok

eerm how?
add me muppetds


SCRATCH'S PARTLY INSANE RESIDENT 
http://internetometer.com/imagesmall/31691.pnghttp://bluetetrarpg.x10.mx/usercard/?name=muppetds

Offline

 

#97 2012-03-19 15:15:34

roijac
Scratcher
Registered: 2010-01-19
Posts: 1000+

Re: scratch in Java-official topic

goto admin-usergorups-devs and type roijac in  smile
then click on save and see how i magically become a developer  big_smile

Offline

 

#98 2012-03-19 15:16:17

muppetds
Scratcher
Registered: 2011-02-11
Posts: 1000+

Re: scratch in Java-official topic

done


SCRATCH'S PARTLY INSANE RESIDENT 
http://internetometer.com/imagesmall/31691.pnghttp://bluetetrarpg.x10.mx/usercard/?name=muppetds

Offline

 

#99 2012-03-19 15:16:36

roijac
Scratcher
Registered: 2010-01-19
Posts: 1000+

Re: scratch in Java-official topic

yay thanks  smile

Offline

 

#100 2012-03-19 15:19:23

muppetds
Scratcher
Registered: 2011-02-11
Posts: 1000+

Re: scratch in Java-official topic

what do you think?


SCRATCH'S PARTLY INSANE RESIDENT 
http://internetometer.com/imagesmall/31691.pnghttp://bluetetrarpg.x10.mx/usercard/?name=muppetds

Offline

 

Board footer