This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Hello all! I am bran new to this place, and nearly bran new to Java. It is been less than a week since I started programming in it. I started programming in it because I ran into a predicament.
I am an avid Minecraft user, and I saw the potential there was in the redstone in the game. If you don't know the game, people were creating logic gates found in eletronics to make basic computers. This intreged me. I wanted to replicate this, but the program is that I do not have the funds to go out and buy all the real world parts. So I thought, why not make a program to do it for me? Why not replicate minecraft except better, with more control and more functions to replicate real world? So I set off to do so. The only problem is that I am only comfortable programming in Php and in Ti Basic. I do not know anything on Java or things of the like. I have done a lot of programming, just none of it is in a graphical programming language. Most of it was in Php, which I used on a website primary to process form submissions on a website. So I need some help. The only gui programming I have done is with a game I made for my calculator.
I have done some in Java, small steps to making the whole. I understand how to compile it and all that. I displayed an image. But I think I am going about this in the wrong way because simply it is really really slow going. When I would work in Php, I would run into my hickups but never would I have to stop entirely because I just have no idea what to do next. It seemed that what ever I did, it would not work. When I looked at examples from other's, I saw how it worked, I tried to alter it, and it would break. I just wasn't working. To solve this issue, I came here.
The first thing I want to do is create a basic program that will place an image on the coordinate I input into it. Any idea where I can start? Any idea on how I can do this? Got any advice for how I can do this? Any advice on how to approach this language?
Oracle has a very good set of tutorials about many different subjects with regard to programming in Java. One of them is about the 2D graphics API that Java offers; but if you're brand new, it's probably better to start with the more basic tutorials. Also see our Java Beginners FAQ.
And ofcourse, if you have questions, you can ask them on the forums here.