Hot Java / Swing / JSP How-Tos


How To: Get rid of screen flickering for Java game development
In this 14th video in a series about JAVA game development, "thenewboston" (Bucky Roberts) explains how to redefine your screen to avoid annoying flickering. Flickering in JAVA games often occurs because of time lags as the viewer watches the computer draw a new screen, pixel by pixel. Pre-installed code in JAVA can be used to eliminate this problem by taking advantage of "Buffering" and "Page Flipping". These functions permit you to delay the composition of a new screen until it is finished,...

How To: Build "set" and "get" methods when programming in Java
Want to program your own Java games and applications but don't know beans about object-oriented programming? Never you fear. This free video tutorial from TheNewBoston will have you coding your own Java apps in no time flat. Specifically, this lesson discusses how to build and work with simple set and get methods when writing code in the Java programming language. For more information, including detailed, step-by-step instructions, watch this helpful programmer's guide.

How To: Get mouse input from users for Java game development
Want to program your own Java games and applications but don't know beans about object-oriented programming? Never you fear. This free video tutorial from TheNewBoston will have you coding your own Java apps in no time flat. Specifically, this lesson discusses how to use accept mouse input from a user in a Java applet. For more information, including detailed, step-by-step instructions, watch this helpful programmer's guide.

How To: Create key events for Java game development
Want to program your own Java games and applications but don't know beans about object-oriented programming? Never you fear. This free video tutorial from TheNewBoston will have you coding your own Java apps in no time flat. Specifically, this lesson discusses how to handle key events when writing code in the Java programming language. For more information, including detailed, step-by-step instructions, watch this helpful programmer's guide.

How To: Use logical operators in Java programming
Want to program your own Java games and applications but don't know beans about object-oriented programming? Never you fear. This free video tutorial from TheNewBostonian will have you coding your own Java apps in no time flat. Specifically, this lesson discusses how to work with logical operators in Java. For more information, including detailed, step-by-step instructions, watch this helpful programmer's guide.

How To: Work with sprites in Java game development
Want to write Java games and applications but don't know beans about object-oriented programming? Never you fear. This free video tutorial from TheNewBoston will help you on your merry way to accomplishing just that. Specifically, this lesson will demonstrate how to work with sprites when doing game development. For detailed instructions, watch this programmer's guide.

How To: Draw geometric shapes when programming in Java
Want to program your own Java games and applications but don't know beans about object-oriented programming? Never you fear. This free video tutorial from TheNewBoston will have you coding your own Java apps in no time flat. Specifically, this lesson discusses how to generate various geometric shapes within a graphical user interface or GUI when writing code in the Java programming language. For more information, including detailed, step-by-step instructions, watch this helpful programmer's g...

How To: Build a window and screen in Java game development
Want to program your own Java games and applications but don't know beans about object-oriented programming? Never you fear. This free video tutorial from TheNewBoston will have you coding your own Java apps in no time flat. Specifically, this lesson discusses how to utilize and display graphical user interface elements like windows when writing code in the Java programming language. For more information, including detailed, step-by-step instructions, watch this helpful programmer's guide.

How To: Write a simple Java program to average numbers
Want to program your own Java games and applications but don't know beans about object-oriented programming? Never you fear. This free video tutorial from TheNewBostonian will have you coding your own Java apps in no time flat. Specifically, this lesson discusses how to build a simple Java program to sum and find the mean for a list of ten numbers. For more information, including detailed, step-by-step instructions, watch this helpful programmer's guide.

How To: Convert military time to standard time for Java
Want to program your own Java games and applications but don't know beans about object-oriented programming? Never you fear. This free video tutorial from TheNewBoston will have you coding your own Java apps in no time flat. Specifically, this lesson discusses how to write a simple Java applet to convert military time (i.e., 24-hour clock time) to standard (i.e., 12-hour clock) time. For more information, including detailed, step-by-step instructions, watch this helpful programmer's guide.

How To: Send eMail Using Java
It uses JavaMail API, NetBeans IDE 7.0.1 First download the JavaMail API as shown in beginning of the video then follow the video to send email dynamically from your Gmail account. No need to open your inbox.

How To: Create a simple polymorphic program in Java
Want to program your own Java games and applications but don't know beans about object-oriented programming? Never you fear. This free video tutorial from TheNewBoston will have you coding your own Java apps in no time flat. Specifically, this lesson discusses how to work with simple polymorphism when writing code in the Java programming language. For more information, including detailed, step-by-step instructions, watch this helpful programmer's guide.

How To: Use the display mode method in when Java programming
Want to program your own Java games and applications but don't know beans about object-oriented programming? Never you fear. This free video tutorial from TheNewBoston will have you coding your own Java apps in no time flat. Specifically, this lesson discusses how to utilizie the display mode method when writing code in the Java programming language. For more information, including detailed, step-by-step instructions, watch this helpful programmer's guide.

How To: Create a basic array table in Java programming
Want to program your own Java games and applications but don't know beans about object-oriented programming? Never you fear. This free video tutorial from TheNewBoston will have you coding your own Java apps in no time flat. Specifically, this lesson discusses how to display the index of an array in table format when writing code in the Java programming language. For more information, including detailed, step-by-step instructions, watch this helpful programmer's guide.

How To: Pass arrays into methods for Java programming
Want to program your own Java games and applications but don't know beans about object-oriented programming? Never you fear. This free video tutorial from TheNewBostonian will have you coding your own Java apps in no time flat. Specifically, this lesson discusses how to pass an array into a method when writing code in the Java programming language. For more information, including detailed, step-by-step instructions, watch this helpful programmer's guide.

How To: Create a multi-dimensional array in Java programming
Want to write Java games and applications but don't know beans about object-oriented programming? Never you fear. This free video tutorial from TheNewBoston will help you on your merry way to accomplishing just that. Specifically, this lesson will demonstrate how to create a multi-dimensional array when coding in Java. For more information, including detailed, step-by-step instructions, watch this programmer's guide.

How To: Make an animation loop in Java when game developing
Want to write Java games and applications but don't know beans about object-oriented programming? Never you fear. This free video tutorial from TheNewBoston will help you on your merry way to accomplishing just that. Specifically, this lesson will demonstrate how to make a simple animation loop. For detailed instructions, watch this programmer's guide.

How To: Program a mouselook scroll for Java game development
Want to write Java applications but don't know beans about object-oriented programming? Never you fear. This free video tutorial from TheNewBoston will help you on your merry way to accomplishing just that. Specifically, this lesson will demonstrate how to work with the MouseLook class for a free look effect in Java game development. For detailed instructions, watch this programmer's guide.

How To: Write First Java Program
we will learn here, how to write a class, what makes the class to be executable, how to compile the class, what the thing should be kept before executing our java class.

How To: Be Ready for Java Programming
I have shown here to install Java development kit. It also contains the settings of path and classpath to prepare for java programming.

How To: Integrate a Java Applet into a Web Application
I have made a video to show how we can add an applet into web application. It is shown in two parts. The applet can communicate with database too.

How To: Download & Setup Java JDK
How to install Java JDK (Java Development Kit) Go to the Oracle Java SE Download Page and click "Download".

How To: Write your first Hello World program using Java
Whether you're an experienced programmer looking to add another language, or completely new to computer language and wanting to start with Java, this program is for you. After you've downloaded and installed your SDK, follow this tutorial to write your first Hello World program.

How To: Use variables when writing a program in Java
Java works a little differently than languages like Python or PHP when it comes to working with variables. This tutorial shows you what the difference is, how you can define your variables and the easiest ways to work with them when writing programs in Java.

How To: Use objects and object methods when programming in Java
In Java, everything is an object, which can make it a little scary to start programming using this language. But that's what this tutorial is for! Here is how objects and object methods work when you're designing a program with Java.

How To: Incorporate arrays into your programs written in Java
Arrays are little pockets of data distributed throughout your program. They're useful because having arrays keeps you from needing to work with hundreds of variables when programming. This specific tutorial shows you how to work with arrays when you're using Java to program.

How To: Clear your java cache
In this tutorial, we learn how to clear your Java cache. First, go to the control panel and then open up Java from the thumbnails menu. After this, you will right click on the program and then go to 'view cache'. From here, select all of the Java and click inside the boxes to do this. Then, push 'ctrl+a" and it will start to clear. After this the cache will clear out and you will be finished. It may take a few minutes to load depending on how much information you have loaded in the cache. Exi...

How To: Create a simple math program with Java
In this clip, you'll learn how to create a simple calculator program with Java. Whether you're new to the Java object-oriented programming language or are a seasoned developer merely looking to improve your chops, you're sure to find benefit in this free video programming lesson. For more information, including detailed, step-by-step instructions, take a look.

How To: Write a simple "Hello, World" application in the Java programming language
In this clip, you'll learn how to write a "Hello, World" app with Java. Whether you're new to the Java object-oriented programming language or are a seasoned developer merely looking to improve your chops, you're sure to find benefit in this free video programming lesson. For more information, including detailed, step-by-step instructions, take a look.

How To: Get started using the Java object-oriented programming language
This clip presents a general overview of what you'll need to get started writing code in the Java programming language. Whether you're new to the Java object-oriented programming language or are a seasoned developer merely looking to improve your chops, you're sure to find benefit in this free video programming lesson. For more information, including detailed, step-by-step instructions, take a look.

How To: Create basic mathematical functions when programming in Java
In this clip, you'll leawrn how to create math functions when coding in Java. Whether you're new to the Java object-oriented programming language or are a seasoned developer merely looking to improve your chops, you're sure to find benefit in this free video programming lesson. For more information, including detailed, step-by-step instructions, take a look.

How To: Return values from a method when programming in Java
In this clip, you'll learn how to return a variable value from a method when coding in Java. Whether you're new to the Java object-oriented programming language or are a seasoned developer merely looking to improve your chops, you're sure to find benefit in this free video programming lesson. For more information, including detailed, step-by-step instructions, take a look.

How To: Build portable Java applications with Servoy
In this clip, you'll learn how to get started using Servoy to create portable Java applications. It's easy! So easy, in fact, that this helpful how-to can present a complete overview of the app in just over three minutes. For more information, including detailed, step-by-step instructions, take a look.

How To: Compile and run a "Hello World" program in Java
You should already have the JDK installed on your computer, and you should already have optimized your computer's settings. See How to install the Java Development Kit to start programming to do that if you haven't already.

How To: Install the Java Development Kit to start programming
If you want to learn how to program in the Java language, then the first thing you're going to need to do is download and install the JDK. That stands for Java Development Kit, and is the basis for anyone begging in Java, and you need it to get the Javac (Java compiler) running. This video will show you what to do, and will show you how to set a new variable name and value in the Environment Variables under Advanced System Settings on your Windows PC.

How To: Stop your Java applet animations from flickering
Want to program your own Java games and applications but don't know beans about object-oriented programming? Never you fear. This free video tutorial from TheNewBoston will have you coding your own Java apps in no time flat. Specifically, this lesson discusses how to put a stop to unwanted flickering when writing code in the Java programming language. For more information, including detailed, step-by-step instructions, watch this helpful programmer's guide.

How To: Apply anti-aliasing to text when programming in Java
Want to program your own Java games and applications but don't know beans about object-oriented programming? Never you fear. This free video tutorial from TheNewBoston will have you coding your own Java apps in no time flat. Specifically, this lesson discusses how to anti-alias text when writing code in the Java programming language. For more information, including detailed, step-by-step instructions, watch this helpful programmer's guide.

How To: Draw rectangles when programming in Java
Want to program your own Java games and applications but don't know beans about object-oriented programming? Never you fear. This free video tutorial from TheNewBoston will have you coding your own Java apps in no time flat. Specifically, this lesson discusses how to generate basic rectangles for a graphical user interface or GUI when writing code in the Java programming language. For more information, including detailed, step-by-step instructions, watch this helpful programmer's guide.

How To: Build a Java applet to write data to a file
Want to program your own Java games and applications but don't know beans about object-oriented programming? Never you fear. This free video tutorial from TheNewBoston will have you coding your own Java apps in no time flat. Specifically, this lesson discusses how to write data to an external file when writing code in the Java programming language. For more information, including detailed, step-by-step instructions, watch this helpful programmer's guide.

How To: Use the FlowLayout class when programming Java
Want to program your own Java games and applications but don't know beans about object-oriented programming? Never you fear. This free video tutorial from TheNewBoston will have you coding your own Java apps in no time flat. Specifically, this lesson discusses how to work with the FlowLayout class when writing code in the Java programming language. For more information, including detailed, step-by-step instructions, watch this helpful programmer's guide.