Using Program Parameters in Java Part-1
Introduction Every programmer will encounter a situation where a choice must be made between various alternative solutions. Should tabular data be sorted in one …
Continue readingIntroduction Every programmer will encounter a situation where a choice must be made between various alternative solutions. Should tabular data be sorted in one …
Continue readingLists You will recall that in the SELECT widget in HTML programming, you could select how many choices were visible at any one time using the SIZE attribute. …
Continue readingStatic Text with Label The Label class gives you the ability to draw a single line of text in your application. There is not much to it, consider the following …
Continue readingUsing the AWT To Build User Interfaces Now we will make a big jump: we need to go from a simple application to a more serious one that will be representative of …
Continue readingBuilding a Jar File After you have created your ZIP and CAB archives, you can then create a JAR (Java ARchive) file that will contain your compressed and …
Continue readingBuilding a Zip Archive The first archive you will want to build is the ZIP archive, the oldest and most supported of the three. For this reason, it should be …
Continue reading.zip, .cab, and .jar Distribution History As we noted earlier, for most of the history of Java development, there was really no packaging. For the most part, …
Continue readingApplet Tag by Example Here is an example of the code we could use to place the Hello applet we created previously in a web page: <APPLET WIDTH = "200" HEIGHT = …
Continue readingWriting Applets Applets are programs that run inside of a web page using the resources the web browser has to offer such as a Java Virtual Machine (JVM) and the …
Continue readingBuilding an Application Okay, so now let’s look at the rest of the Test class because the Test class is pretty special. The Test class is actually a very small …
Continue readingDefining a Class So right after the “public” keyword, we see the “class” keyword. The class keyword is used to specify that the following statement block …
Continue readingOperator Overloading Another cool feature of Java is that methods in Java can easily be overloaded such that the same method name can be used for several …
Continue reading