Interface Programming Newbie

Hello, I’m quite new to programming and I want to be able to get a little better at it.
I don’t have too much trouble making the code for what happens but I’m really bad
at making a window that shows everything.
I once got the graphics for a Slot Machine and managed to make it work quite well
but I can hardly make something more interresting than a textfielf and textarea if
I have to do it myself so I was just wondering if someone knows a tutorial that helps
me get started with this.

Just a note, interface refers to interfaces (Aka Java’s replacement to multiple inheritance) while what you are talking about is GUI or UI.

I would recommend using netbeans and its JFrame/JPanel form editor. It allows easy drag-n-drop placement of components, and allows you to implement all the different listeners, creating your custom JFrame/JPanel class. Then you can just have you main class extend your custom built one.

If you are using NetBeans, why not make a JavaFx app starting off, It is pretty simple, and there are ALOT of examples that come with the IDE to get nice simple Pogo Games type of Graphics from this library. Without using any OpenGl Syntax.

Google for “java graphics tutorial”, and you’ll find a treasure of information.

For example a Oracle tutorial series on 2D graphics, and a Java2D tutorial for beginners, both of which seem to be good starting points.

Edit: more about simple game programming in Java, this tutorial seems to be pretty nice.

With Netbeans, the easiest is the built-in Swing GUI editor. Can’t get any faster than that making GUIs in Java.

JavaFX is less straightforward: you need SceneBuilder (external app), then back in Netbeans mess with an XML file, then mess again with a controller (java class). But you get the shiny new features of JavaFX.

I’m note sure that Anju_Maaka wants to build better Swing or JavaFX user interfaces. This is, after all, a game programming forum, and both Swing and JavaFX are only marginally useful for game development IMHO (other than providing a window in which the interesting stuff happens).