r/javahelp • • Jan 05 '20

New to Java

Im new to Java and im having issues understandings some things. and by some things, i mean a lot, i can really only create a window and load images (if they are loaded in the same Class, otherwise it only loads the last Class specified).

If this is the wrong subreddit for this type of question, please redirect me to the correct one if you could.

0 Upvotes

23 comments sorted by

2

u/nerdslayer223 Intermediate Brewer Jan 05 '20 edited Apr 10 '26

Data brokers and AI scrapers were using my info. Not anymore. Redact let me bulk delete posts across Reddit, Twitter, Discord and Instagram while handling broker opt outs too.

heavy library point deliver coordinated unite intelligent carpenter brave soft

0

u/PupperArmyDanceParty Jan 05 '20

I cant seem to understand how to make Rooms, i have a good idea of maybe but unsure of if itll work.

I think i fixed the image issue for the moment.

Im also very terrible at saving code if you could help me understand how to save.

1

u/nerdslayer223 Intermediate Brewer Jan 05 '20 edited Apr 10 '26

Data brokers and AI scrapers were using my info. Not anymore. Redact let me bulk delete posts across Reddit, Twitter, Discord and Instagram while handling broker opt outs too.

dependent languid license rock stupendous apparatus sulky work voracious doll

1

u/PupperArmyDanceParty Jan 11 '20

An actual room, like going from one to another.

2

u/Roachmeister Java Dev Jan 05 '20

I'm sort of at a loss to even understand where you're coming from. I can't imagine a situation where a beginner would be loading images into a window. Also I have no idea what "it only loads the last Class specified" means. Can you give some more context to your question?

1

u/PupperArmyDanceParty Jan 05 '20

It only loads the last Class specified in the code.

An example would be Class1, Class2, Class3 It would only load image drawing code from Class3 and ignore code in Class 1 and 2.

And i has some experiance with another Game Creation Tool with a similier to Java but a lot easier.

6

u/Roachmeister Java Dev Jan 05 '20

Java is not a game creation tool. It is a programming language. I'm sorry, I'm not trying to be insulting, but in another comment you said that the main thing you're having issues with is "making rooms", and that doesn't make any sense. You don't "make rooms" in Java.

I'm wondering if you are using some sort of Java based game creation tool, not Java itself, maybe?

1

u/PupperArmyDanceParty Jan 05 '20

Java Eclipse (more specificly, Oxygen October 2017)

1

u/whizvox Graduate and Tutor Jan 05 '20

I assume you're following a guide somewhere. If you are, could you link it?

1

u/PupperArmyDanceParty Jan 12 '20

No, not a guide, a friend helped me make a JPanel/JFrame thing and a short and basic image drawing sample thing.

1

u/VacatedSum Jan 05 '20

I think you're on the wrong board. I see you've also posted on r/gamemaker. This isn't that. At all.

1

u/PupperArmyDanceParty Jan 11 '20

Im trying to learn java.

2

u/VacatedSum Jan 11 '20

Oh, my apologies.

There are plenty of Java tutorials around, and they're probably all pretty much the same (ish).

I wouldn't jump right into loading images, though. You'll want to start with variables, loops, and conditionals first, before you start on GUI elements.

Good luck in your endeavors.

1

u/PupperArmyDanceParty Jan 12 '20

Can you link me to a basics tutorial?

2

u/VacatedSum Jan 12 '20

The sidebar has them.

1

u/PupperArmyDanceParty Jan 26 '20

Ok cool, im on mobile will those still appear on the sidebar or do i need to go to the desktop version?

also, is WindowBuilder a good way to start Java coding?

2

u/VacatedSum Jan 27 '20

http://mooc.fi/english.html

https://www.udemy.com/java-tutorial

^^ These two links are copy/pasted from the sidebar.

Bottom line is, you need the basic stuff, before you start using the advanced tools. I'm not familiar with WindowBuilder personally, but a quick Google search tells me that it's not likely a teaching tool.

What I mean by that is that the developers of that software likely expect you to already know the language, at least to some degree.

1

u/PupperArmyDanceParty Feb 01 '20

I just asked so i would know if i needed to get some help downloading on one PC on to my coding PC.

1

u/nutrecht Lead Software Engineer / EU / 20+ YXP Jan 06 '20

Do you want to learn programming or do you want to make a game? If it's the first forget about making games for a while and go through the Java MOOC because it seems you're missing even the most basic knowledge. If you just want to make games; go use something like Gamemaker instead of a programming language.

1

u/PupperArmyDanceParty Jan 11 '20

Both.

And i have used GMS for a while but want to move to java.

1

u/wades39 Jan 05 '20

As another user commented, we need more context for your problem. Share your existing codw and describe your problem in a short and concise manner. Furthermore, tell us what you have already tried. Without the code in addition to your problem, we cannot begin to offer you any help.

1

u/PupperArmyDanceParty Jan 05 '20

Its not 1 specific thing but i dont understand multiple things.

The main thing im having issues with is making Rooms.

3

u/wades39 Jan 05 '20

As I stated above, we cannot help you without you providing code and explaining all of your problems in the very least.