I would like some advice on how to create a media player that allows a user to select a file of MPEG or AVI and provides play and stop buttons whilst playing the file in a window.
Any advice on whether to use Swing or AWT or how to begin really would be very much appreciated.
Please bear in mind that I am rather new to Java so as simple and much information as possible would be great.
>> Any advice on whether to use Swing or AWT
I would prefer to use Swing.
Tutorial on Swing: http://java.sun.com/docs/books/tutorial/uiswing/
Plenty of examples on: http://www.javaalmanac.com/cgi-bin/search/find.pl?words=Swing
Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.
For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench.
While learning Java can be done with…
Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Viewers will learn about the different types of variables in Java and how to declare them.
Decide the type of variable desired:
Put the keyword corresponding to the type of variable in front of the variable name:
Use the equal sign to assign a v…
Viewers will learn one way to get user input in Java.
Introduce the Scanner object:
Declare the variable that stores the user input:
An example prompting the user for input:
Methods you need to invoke in order to properly get user input: