AWT and Swing Tutorials - java

I am relatively new to programming in Java but have an understanding of the language to be able to develop console based programs.
I am trying to create and understand GUIs and have researched using AWT and Swing.
Having found numerous tutorials online and each one saying different things I am wandering if someone experienced in this could maybe point me in the right direction of a straight forward tutorial for getting a GUI set up and more specifically positioning of components!
I know this is quite a generalised question but I'm hoping someone who has maybe learnt this aspect of Java previously can point me to the right places to get a good understanding of it.

Java Oracle Docs is a good way to start. Parallely Go for Java Swing GUI Tutorials by Lazic B on youtube. After you feel good in coding go for Advanced Videos in building Swing MVC Application provided by Udemy. 3 months ago i have learned from these and now feel much confident in building high level swing applications

Related

Developing GUI for program

I have developed a java program as a part of my homework and have to build "really good" GUI for it as is the demand.
I would like to know if I can develop a flash based gui and then run my java code behind it since I have learnt flash before ??
Since I have some time constraint I don't think I would be able to implement full dragabble features using swing and java applets.
Please do suggest the best way I should complete my GUI in period of 2-3 days.
Thanks a lot....
The "standard" way to do this is to create a Swing GUI which can be very basic or quite complex, and no, don't try to do this with flash as it will be difficult if not impossible to mesh this with your current Java code. If you already know some Swing coding, this can be do-able within 2-3 days.
You can find the Swing tutorials here: Swing Tutorials

Searching for WindowBuilder documentation/API

I'm in a project with WindowBuilder Pro, and while trying to get a good grip of it I've been searching forever for good documentation without any luck.
The best that I've found is Googles WindowBuilder Pro Infopage but that isn't extensive enough for me.
Does anyone know any other good documentation?
Or am I perhaps a bit off track here? I have very limited Swing-experience, and perhaps I'd be better off studying the SWING API instead of looking for WindowBuilder documentation?
Very thankful for any tips.
The WindowBuilder docs that you reference are quite extensive (nearly 300 pages), but they are intended to be docs about how to use WindowBuilder itself. They are intentionally not intended to be documentation for the Swing, SWT or GWT APIs and should not be considered to be substitutes for those. There are plenty of good sources of information on those APIs.
If you are interested in info on Swing, the primary source should be the docs and tutorials provided by Sun/Oracle. Once you have a basic understanding of Swing itself, I think you will find the WindowBuilder docs to be of great help in learning WindowBuilder which itself will be great help to you in rapidly creating Swing UIs.
I should also point out that the WindowBuilder docs in place today are actually better than those in place prior to the Google acquisition of Instantiations because they represent a further six months of work and refinement. While the product has seen a change in legal ownership, it has not actually "changed hands" in the literal sense. The exact same team that developed the tool at Instantiations has continued to work on it at Google and is also forming the core of the committer team at Eclipse.org. This continuity of development stretches eight years into the past and will continue well into the future.
This is in a really early stage but this is something that we have been working on which might be helpful for you: http://www.codemaps.org/s/WindowBuilder
WindowBuilder has changed hands several times in the last 12 months (from Instantiations to Google, followed by Google giving it to the Eclipse Foundation). Admittedly, the documentation appears to have suffered. However, as the project is still in the process of being provisioned to the Eclipse Foundation, the best place to search for documentation should be the Eclipse WindowBuilder Documentation Page, which is available from the Eclipse WindowBuilder page. Currently, the documentation page only lists the Google InfoPage that you've mentioned, but I suspect that in time the documentation will increase greatly in quality.
That being said, there is no substitute for a solid understanding of the underlying technology that you plan on using within WindowBuilder, be it SWT, Swing, or GWT. WindowBuilder will make some things easier, but many of the features will be confusing if you don't have a firm grasp of the underlying concepts. Sadly, most tutorials are still centered around hand-coding the GUI, so there is an opportunity for an enterprising documentation/tutorial writer to provide a gateway to those who wish to learn technologies like Swing and SWT using WindowBuilder.
Yea, leave the WindowsBuilder behind. The Swing tutorials are excellent: http://download.oracle.com/javase/tutorial/uiswing/

What is a good resource for help on codes to use for App?

I am a novice programmer when it comes to Java, I have Java:How To Program 7th Ed. that I am reading. My major is Computer Science so I have a little bit of knowledge about what yo do but as for the Application. I am trying to make a game app and was wandering what would be a good source to reference for various things inside of the app mainly the game play.
I'm not a very experienced programmer myself, but a general good idea is to read the Framework Topics in the Dev Guide on d.android.com completely. It gives a good view of what is possible within Android.
It's not a complete guide on how-to though, but it's good to see what Android is capable of before you start anything.
Plus indeed the online tutorials, but be careful as there are also a lot of tutorials for older versions of Android, which sometimes have deprecated stuff in them. And sometimes I found some tutorials which were simply wrong and had a lot of errors in them, so it's always a good idea to look at the comments on the article. But this is general internet knowledge ;)
Plus there are some books especially about Game development for Android.
(Beginning Android Games by Mario Zechner, for instance. I don't have the book but the title seems like something you need ;) )
If you want, you can also use adobe AIR to develop games for newer versions of Android.
Good luck.
As a beginner, you should not directly jump to game programming. You should first work on some Hello Wrold type programs. Go thorough the online tutorials. A lots of excellent material is available for free on internet. Best Luck.

Browser based 3D games with LWJGL in Java

I want to create a browser based 3D game using LWJGL with the Java programming language.
Can anyone please provide me with a small example of creating a window and a box in it?
LWJGL mainly uses a wiki, forum, and IRC community to educate eachother.
Feel free to drop by #lwjgl on irc.freenode.net - there are alot of useful people hanging out there, including the creators of LWJGL.
You can find the wiki here.
To answer your specific question, you probably want to read this wiki entry:
Basic Display
Another thing to note is that many of the famous NeHe tutorials have an LWJGL version of the source code listed at the bottom of the page. This basic tutorial may be what you are looking for: http://nehe.gamedev.net/data/lessons/lesson.asp?lesson=02
There's also an older tutorial by Kevin glass that teaches you how to write a 2D game, but the last chapter focuses on rendering it using LWJGL: http://www.cokeandcode.com/info/tut2d-4.html
On a side note, if you ever think about doing 2D-only games, check out Slick (also written by Kevin Glass). It uses LWJGL in the backend but provides an API that is familiar to Java2D users.

JavaFX in the wild?

Does anybody know of any real-world web applications based on JavaFX? I'm an experienced Java programmer considering starting a website while I'm not at my day job. I don't have a lot of expertise on the UI side, so I'm looking for the best way to leverage my existing skills to create something that can provide an awesome RIA experience. Only trouble is, I don't know of any sites that are implemented using JavaFX, since it's so new. I'd like to see what it's capable of.
Found here quite an interesting stories. Top two listed below.
TweetBox
TweetFX
I think the best example of what JavaFX can do is in the examples on JavaFX.com.
However, it's still early in the JavaFX days thus you will be in pioneer days. Which means there are potential rich rewards to be had, but also - many unknowns.
What I think JavaFX "sweet-spots" are:
1 - If you either have Photoshop skills or are collaborating with someone who is - JavaFX provides the only real platform that lets you take Photoshop and generate a UI. Normally you mock-up in Photoshop and try your best to replicate, JavaFX can leverage it natively.
2 - You get all of the goodies from Java libraries "for free".
3 - Can leverage the UI skills to mobile (those that JavaFX will run on anyway).
However, if you are just wanting to have a Java GUI but would rather wait for more polish on JavaFX - I would recommend grabbing MigLayout & go with Swing on Java 6u10 or later.
There are a few JavaFX apps from the JavaFX Coding Challenge; my personal favorite is Music Explorer FX.
The new version of Indaba Music's software was written in JavaFX; the old version was in Flash.
In my personal opinion I would not use JavaFX for web. Simply because HTML5 is crushing everyone in sight. Now, I totally recomend the use of JavaFX for desktop applications.

Categories