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

#226 2012-08-09 22:06:37

technoguyx
Scratcher
Registered: 2008-10-18
Posts: 1000+

Re: Java Official Topic

Currently learning with this. What is this LWJGL you speak of?  tongue


http://getgnulinux.org/links/en/linuxliberated_4_78x116.png

Offline

 

#227 2012-08-13 21:38:09

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

Re: Java Official Topic

technoguyx wrote:

Currently learning with this. What is this LWJGL you speak of?  tongue

I prefer to work with full on OpenGL methods. You can use the same OpenGL code in any language for which there are OpenGL libraries.

Also, I am porting my game back to Java (Started in Java, ported to C++, re porting to Java) and am getting more productivity and putting the fun back into programming it. In C++ my program was filled with Segfaults and all sorts of major errors that I never had to worry about in Java.


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

Offline

 

#228 2012-08-14 00:20:17

cocoanut
Scratcher
Registered: 2007-07-10
Posts: 1000+

Re: Java Official Topic

16Skittles wrote:

technoguyx wrote:

Currently learning with this. What is this LWJGL you speak of?  tongue

I prefer to work with full on OpenGL methods. You can use the same OpenGL code in any language for which there are OpenGL libraries.

Also, I am porting my game back to Java (Started in Java, ported to C++, re porting to Java) and am getting more productivity and putting the fun back into programming it. In C++ my program was filled with Segfaults and all sorts of major errors that I never had to worry about in Java.

Yeah, C++ is annoying when you've started with learning Java.

However, Java's such a CPU-intensive programming language that you have to be prepared for it to lag horrendously. With a self-built i5 2500k that can run pretty much any non-Java 3D game, my 2D roguelike that I'm currently working on is struggles to perform well, especially if there are a lot of javax.swing.Timers going at once.

Last edited by cocoanut (2012-08-14 00:20:47)


http://i42.tinypic.com/20gyvif.jpgPlease leave a message at the beep.
Steam: Hellephant

Offline

 

#229 2012-08-14 03:11:46

Harakou
Community Moderator
Registered: 2009-10-11
Posts: 1000+

Re: Java Official Topic

cocoanut wrote:

16Skittles wrote:

technoguyx wrote:

Currently learning with this. What is this LWJGL you speak of?  tongue

I prefer to work with full on OpenGL methods. You can use the same OpenGL code in any language for which there are OpenGL libraries.

Also, I am porting my game back to Java (Started in Java, ported to C++, re porting to Java) and am getting more productivity and putting the fun back into programming it. In C++ my program was filled with Segfaults and all sorts of major errors that I never had to worry about in Java.

Yeah, C++ is annoying when you've started with learning Java.

However, Java's such a CPU-intensive programming language that you have to be prepared for it to lag horrendously. With a self-built i5 2500k that can run pretty much any non-Java 3D game, my 2D roguelike that I'm currently working on is struggles to perform well, especially if there are a lot of javax.swing.Timers going at once.

Java's sort of everything-intensive. It's such a shame too; it has so much going for it but it's hard to to justify its use with that major flaw.  hmm


http://www.blocks.scratchr.org/API.php?action=random&return=image&link1=http://i.imgur.com/OZn2RD3.png&link2=http://i.imgur.com/duzaGTB.png&link3=http://i.imgur.com/CrDGvvZ.png&link4=http://i.imgur.com/POEpQyZ.png&link5=http://i.imgur.com/ZKJF8ac.png

Offline

 

#230 2012-08-22 07:52:49

what-the
Scratcher
Registered: 2009-10-04
Posts: 1000+

Re: Java Official Topic

Java is not that bad. Just ran 720p resolution on i3 at 50FPS for my up coming game which involves lots of collision detection. It's just Java only runs on one core but can hyperthread.


http://imageshack.us/m/64/9034/ddfss.pngMy site
Find someone post count. Click posts under username. Find number of pages. Times that by 40 for min and 60 for max and you have a rough estimate of post count.

Offline

 

#231 2012-08-22 17:55:40

samtwheels
Scratcher
Registered: 2011-03-20
Posts: 1000+

Re: Java Official Topic

Taking a class in school. I know the basics, but took this to get more advanced.

Offline

 

#232 2012-12-13 13:49:17

MrFlash67
Scratcher
Registered: 2012-08-08
Posts: 500+

Re: Java Official Topic

Anybody know a good way to learn Java?


Who would win, SOPA or PIPA?

Offline

 

#233 2012-12-13 14:57:55

PonyvilleSlugger
Scratcher
Registered: 2012-07-01
Posts: 100+

Re: Java Official Topic

MrFlash67 wrote:

Anybody know a good way to learn Java?

I don't know if it's just me but I never find books or tutorials useful, I learned Java by modding Minecraft, it's easier to learn if I can see it in play and mess around with it.


♫ 8% of teens pretend to be morally superior due to the music they listen to. If you are one of the 92% of teens who don't, copy and paste this into your signature. ♫♪
http://i46.tinypic.com/waj11e.gif

Offline

 

#234 2012-12-13 15:31:22

mythbusteranimator
Scratcher
Registered: 2012-02-28
Posts: 1000+

Re: Java Official Topic

What happens if you save a NotePad++ document as a .java and open it?

Does it open a project in Java player?


http://www.foxtrot.com/comics/2012-04-01-fdb37077.gif
clicky

Offline

 

#235 2012-12-13 15:40:22

TRocket
Scratcher
Registered: 2009-08-18
Posts: 1000+

Re: Java Official Topic

mythbusteranimator wrote:

What happens if you save a NotePad++ document as a .java and open it?

Does it open a project in Java player?

No, a .java is a source file; you must compile it with javac (from the JDK) to get a .class file which you can run with java


http://i.imgur.com/1QqnHxQ.png

Offline

 

#236 2013-02-21 08:18:34

rontoking
Scratcher
Registered: 2011-03-12
Posts: 100+

Re: Java Official Topic

Nowadays 75% of people who learn java do it to make Minecraft mods.
The remaining 25% are mostly adults who work as programmers.

Anyways IMO C++ is far better than Java mainly because of it's compiler, speed and flexibility!

Still Java is for me number 2!  smile


Minecraft fan?
http://scratch.mit.edu/projects/rontoking/2496386

Offline

 

#237 2013-02-21 09:50:10

veggieman001
Scratcher
Registered: 2010-02-20
Posts: 1000+

Re: Java Official Topic

rontoking wrote:

Nowadays 75% of people who learn java do it to make Minecraft mods.
The remaining 25% are mostly adults who work as programmers.

Anyways IMO C++ is far better than Java mainly because of it's compiler, speed and flexibility!

Still Java is for me number 2!  smile

Nowadays 83.21% of people make up statistics to make their claims sound more legitimate.  yikes


Posts: 20000 - Show all posts

Offline

 

#238 2013-02-21 12:05:10

CAA14
Scratcher
Registered: 2013-01-14
Posts: 1000+

Re: Java Official Topic

16Skittles wrote:

I suggest trying Java, it is commonly used, and no programming language is easy without good tutorials. Right now, I'm going through the Official Java Tutorials and they seem to be good (duh).

Also, NetBeans is MAGICAL!!! No need to remember those stupid declarations!  lol
But on the other hand, I can't feel like a h4x0r by typing in command line. Oh well, I might as well make a hacking game in Java to really feel like a hacker XD

Edit: Thank you moderator!

Is netbeans a compiler?

Regards,

CAA14

Offline

 

#239 2013-02-21 12:20:08

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

Re: Java Official Topic

Netbeans is actually an IDE.


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

Offline

 

#240 2013-02-21 12:46:30

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

Re: Java Official Topic

CAA14 wrote:

16Skittles wrote:

I suggest trying Java, it is commonly used, and no programming language is easy without good tutorials. Right now, I'm going through the Official Java Tutorials and they seem to be good (duh).

Also, NetBeans is MAGICAL!!! No need to remember those stupid declarations!  lol
But on the other hand, I can't feel like a h4x0r by typing in command line. Oh well, I might as well make a hacking game in Java to really feel like a hacker XD

Edit: Thank you moderator!

Is netbeans a compiler?

Regards,

CAA14

Netbeans is a development environment for Java, but it still requires you to properly install the JDK Compiler.


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

Offline

 

#241 2013-02-21 20:11:30

CAA14
Scratcher
Registered: 2013-01-14
Posts: 1000+

Re: Java Official Topic

16Skittles wrote:

CAA14 wrote:

16Skittles wrote:

I suggest trying Java, it is commonly used, and no programming language is easy without good tutorials. Right now, I'm going through the Official Java Tutorials and they seem to be good (duh).

Also, NetBeans is MAGICAL!!! No need to remember those stupid declarations!  lol
But on the other hand, I can't feel like a h4x0r by typing in command line. Oh well, I might as well make a hacking game in Java to really feel like a hacker XD

Edit: Thank you moderator!

Is netbeans a compiler?

Regards,

CAA14

Netbeans is a development environment for Java, but it still requires you to properly install the JDK Compiler.

Right, i knew that, but is it a compiler? Does development = Compiler?

Regards,

CAA14

Offline

 

#242 2013-02-21 20:48:19

maxskywalker
Scratcher
Registered: 2008-01-27
Posts: 1000+

Re: Java Official Topic

CAA14 wrote:

16Skittles wrote:

CAA14 wrote:

Is netbeans a compiler?

Regards,

CAA14

Netbeans is a development environment for Java, but it still requires you to properly install the JDK Compiler.

Right, i knew that, but is it a compiler? Does development = Compiler?

Regards,

CAA14

A compiler is what turns code into something that computers can actually understand.  A development environment is a program that you write code in that is made to make programming easier, more efficient, etc.  Early days?

Last edited by maxskywalker (2013-02-21 20:48:39)

Offline

 

#243 2013-02-21 21:10:31

CAA14
Scratcher
Registered: 2013-01-14
Posts: 1000+

Re: Java Official Topic

maxskywalker wrote:

CAA14 wrote:

16Skittles wrote:


Netbeans is a development environment for Java, but it still requires you to properly install the JDK Compiler.

Right, i knew that, but is it a compiler? Does development = Compiler?

Regards,

CAA14

A compiler is what turns code into something that computers can actually understand.  A development environment is a program that you write code in that is made to make programming easier, more efficient, etc.  Early days?

Early days of my java learning? Yes, but it's making sense for the most part.  smile
Okay, that sounds cool. I will be using and learning eclipse, but after i get comfortable i will look at Netbeans.

Thanks again,

CAA14

Offline

 

#244 2013-02-23 18:38:47

rontoking
Scratcher
Registered: 2011-03-12
Posts: 100+

Re: Java Official Topic

veggieman001 wrote:

rontoking wrote:

Nowadays 75% of people who learn java do it to make Minecraft mods.
The remaining 25% are mostly adults who work as programmers.

Anyways IMO C++ is far better than Java mainly because of it's compiler, speed and flexibility!

Still Java is for me number 2!  smile

Nowadays 83.21% of people make up statistics to make their claims sound more legitimate.  yikes

It's funny how you are doing the same thing while telling me how annoying it is.  smile

Last edited by rontoking (2013-02-23 18:39:24)


Minecraft fan?
http://scratch.mit.edu/projects/rontoking/2496386

Offline

 

#245 2013-02-23 22:17:36

maxskywalker
Scratcher
Registered: 2008-01-27
Posts: 1000+

Re: Java Official Topic

rontoking wrote:

veggieman001 wrote:

rontoking wrote:

Nowadays 75% of people who learn java do it to make Minecraft mods.
The remaining 25% are mostly adults who work as programmers.

Anyways IMO C++ is far better than Java mainly because of it's compiler, speed and flexibility!

Still Java is for me number 2!  smile

Nowadays 83.21% of people make up statistics to make their claims sound more legitimate.  yikes

It's funny how you are doing the same thing while telling me how annoying it is.  smile

veggie wasn't saying it was annoying.  veggie was being veggie  yikes

Edit:  No, that was awfully put.  Ignore that.

Last edited by maxskywalker (2013-02-23 22:18:39)

Offline

 

#246 2013-02-24 08:09:17

rontoking
Scratcher
Registered: 2011-03-12
Posts: 100+

Re: Java Official Topic

maxskywalker wrote:

rontoking wrote:

veggieman001 wrote:


Nowadays 83.21% of people make up statistics to make their claims sound more legitimate.  yikes

It's funny how you are doing the same thing while telling me how annoying it is.  smile

veggie wasn't saying it was annoying.  veggie was being veggie  yikes

Edit:  No, that was awfully put.  Ignore that.

Hey everyone LET'S ALL READ THIS AND THEN TELL VEGGIE! xD
Just kidding! IGNORE!


Minecraft fan?
http://scratch.mit.edu/projects/rontoking/2496386

Offline

 

#247 2013-02-27 09:06:52

PonyvilleSlugger
Scratcher
Registered: 2012-07-01
Posts: 100+

Re: Java Official Topic

Anyone know how to set an icon for a Swing window?

Whenever I try it just gives me an NPE, yet I can use the icon on the buttons so it's not trying to work with null variables, and I've made it report the values of all the variables that are being worked with and none of them are null, it's really confused me.

It's not even giving any decent error messages, it knows the file is there, it is made into an icon variable, but as soon as it tries to set it as the window's icon it just doesn't work.


♫ 8% of teens pretend to be morally superior due to the music they listen to. If you are one of the 92% of teens who don't, copy and paste this into your signature. ♫♪
http://i46.tinypic.com/waj11e.gif

Offline

 

#248 2013-02-27 10:03:07

GeonoTRON2000
Scratcher
Registered: 2009-12-24
Posts: 1000+

Re: Java Official Topic

PonyvilleSlugger wrote:

Anyone know how to set an icon for a Swing window?

Whenever I try it just gives me an NPE, yet I can use the icon on the buttons so it's not trying to work with null variables, and I've made it report the values of all the variables that are being worked with and none of them are null, it's really confused me.

It's not even giving any decent error messages, it knows the file is there, it is made into an icon variable, but as soon as it tries to set it as the window's icon it just doesn't work.

Is the window null?


http://i.imgur.com/BAEgGDL.png

Offline

 

#249 2013-02-27 12:06:08

PonyvilleSlugger
Scratcher
Registered: 2012-07-01
Posts: 100+

Re: Java Official Topic

GeonoTRON2000 wrote:

PonyvilleSlugger wrote:

Anyone know how to set an icon for a Swing window?

Whenever I try it just gives me an NPE, yet I can use the icon on the buttons so it's not trying to work with null variables, and I've made it report the values of all the variables that are being worked with and none of them are null, it's really confused me.

It's not even giving any decent error messages, it knows the file is there, it is made into an icon variable, but as soon as it tries to set it as the window's icon it just doesn't work.

Is the window null?

Yeah, I'm an idiot, tried setting the icon for the window then setting the window, I should stop programming when tired.

Well, now my GUI works completely and everything runs amazingly even from a .jar, time to find a new project.


♫ 8% of teens pretend to be morally superior due to the music they listen to. If you are one of the 92% of teens who don't, copy and paste this into your signature. ♫♪
http://i46.tinypic.com/waj11e.gif

Offline

 

#250 2013-02-27 16:51:06

rontoking
Scratcher
Registered: 2011-03-12
Posts: 100+

Re: Java Official Topic

There should be a Scratch version of Java(if there already isn't one). In my opinion Scratch's block system is incredibly easy and should be used for every popular language. Who's with me?


Minecraft fan?
http://scratch.mit.edu/projects/rontoking/2496386

Offline

 

Board footer