Difference between revisions of "Java Code"
(42 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | [[ | + | [[ Java code ordered by category ]]<br> |
[[ App.java ]]<br> | [[ App.java ]]<br> | ||
+ | [[ Amimating a line ]]<br> | ||
+ | [[ Applets ]]<br> | ||
[[ Authenticating against Active Directory ]]<br> | [[ Authenticating against Active Directory ]]<br> | ||
− | + | [[ Awt stuff ]]<br> | |
− | [[ Charts and Graphs ]] | + | [[ Charts and Graphs ]]<br> |
+ | [[ Command line arguments ]]<br> | ||
+ | [[ Connecting to Mysql ]] <br> | ||
+ | [[ Connecting and inserting into mysql ]]<br> | ||
+ | [[ Connecting and truncating a table in mysql ]]<br> | ||
[[ Creating a servlet called CompletedBy ]] ( the web.xml addition required ) <br> | [[ Creating a servlet called CompletedBy ]] ( the web.xml addition required ) <br> | ||
− | [[ Custom Painting ]] Oracle docs | + | [[ Generating a JPEG image and creating the image from a database query ]]<br> |
+ | [[ Custom Painting ]] Oracle docs<br> | ||
+ | [[ Date stuff in Java ]]<br> | ||
+ | [[ Drawing Graph project ]]<br> | ||
+ | [[ Executing a program ]]<br> | ||
+ | [[ Exit a program ]]<br> | ||
+ | [[ FAILED JAVA CODE ]]<br> | ||
+ | [[ For loop ( java ) ]]<br> | ||
[[ Gits ]] Source files.<br> | [[ Gits ]] Source files.<br> | ||
+ | [[ Getting user input ]] <br> | ||
+ | [[ Graph plotting with JFreeChart ]]<br> | ||
+ | [[ Graphics ]]<br> | ||
[[ GUI Frame ]]<br> | [[ GUI Frame ]]<br> | ||
+ | [[ Images in java servlets ]]<br> | ||
+ | [[ Images in Java ]]<br> | ||
+ | [[ Installing an SSL certificate into keystore ]]<br> | ||
+ | [[ Java talking to Active Directory ]]<br> | ||
[[ Obtaining servlet GET parameters ]]<br> | [[ Obtaining servlet GET parameters ]]<br> | ||
+ | [[ Oracle documentation and tutorials ]]<br> | ||
+ | [[ Query Active Directory (ldaptest) ]] <br> | ||
+ | Query AD link: http://www.programming-free.com/2012/09/query-active-directory-from-java-using.html<br> | ||
+ | Query ad Oracle link : http://docs.oracle.com/javase/jndi/tutorial/getStarted/examples/directory.html | ||
[[ Query Mysql ]]<br> | [[ Query Mysql ]]<br> | ||
[[ Query Mysql 2]]<br> | [[ Query Mysql 2]]<br> | ||
[[ Query SQL Server ]]<br> | [[ Query SQL Server ]]<br> | ||
− | |||
[[ Reading a text file ]] line by line.<br> | [[ Reading a text file ]] line by line.<br> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
[[ String length (java) ]]<br> | [[ String length (java) ]]<br> | ||
− | |||
[[ Servlet redirect ]]<br> | [[ Servlet redirect ]]<br> | ||
[[ Password protecting pages ]]<br> | [[ Password protecting pages ]]<br> | ||
[[ Removing white space and apostrophe from string ]]<br> | [[ Removing white space and apostrophe from string ]]<br> | ||
− | [[ | + | [[ Removing carriage returns from a text file ]]<br> |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
[[ Reading from a file in java ]] <br> | [[ Reading from a file in java ]] <br> | ||
+ | [[ repaint() ]]<br> | ||
+ | [[ Sleep ( java ) ]]<br> | ||
[[ Thread stuff ]]<br> | [[ Thread stuff ]]<br> | ||
− | [[ | + | [[ Take the first X characters from a string ]]<br> |
− | [[ | + | [[ TextArea ]]<br> |
− | + | ||
− | + | ||
− | + | ||
[[ The toString() method in java ]]<br> | [[ The toString() method in java ]]<br> | ||
+ | [[ Timer class ]]<br> | ||
+ | [[ Using Split ]]<br> | ||
+ | [[ Writing to a file with Java]]<br> | ||
+ | [[ Generating a random number ]]<br> | ||
+ | [[ Closing a java connection to mysql ]]<br> | ||
+ | Uploading a file to a servlet - http://www.avajava.com/tutorials/lessons/how-do-i-upload-a-file-to-a-servlet.html<br> | ||
+ | Another example of file uploading - http://alvinalexander.com/java/jwarehouse/commons-fileupload/src/test/org/apache/commons/fileupload/ServletFileUploadTest.java.shtml<br> | ||
+ | [[ Write string to a file in java ]] using apache commons <br> | ||
+ | [[ Mysql database authentication check ]] from argus<br> | ||
+ | [[ SumAll.java ]] <br> | ||
+ | [[ Enabling Java in Firefox ]]<br> | ||
+ | Unresponsive GUI issues - https://www3.ntu.edu.sg/home/ehchua/programming/java/j5e_multithreading.html<br> | ||
+ | [[ Null layout manager example from Oreilly ]]<br> |
Latest revision as of 13:05, 8 October 2023
Java code ordered by category
App.java
Amimating a line
Applets
Authenticating against Active Directory
Awt stuff
Charts and Graphs
Command line arguments
Connecting to Mysql
Connecting and inserting into mysql
Connecting and truncating a table in mysql
Creating a servlet called CompletedBy ( the web.xml addition required )
Generating a JPEG image and creating the image from a database query
Custom Painting Oracle docs
Date stuff in Java
Drawing Graph project
Executing a program
Exit a program
FAILED JAVA CODE
For loop ( java )
Gits Source files.
Getting user input
Graph plotting with JFreeChart
Graphics
GUI Frame
Images in java servlets
Images in Java
Installing an SSL certificate into keystore
Java talking to Active Directory
Obtaining servlet GET parameters
Oracle documentation and tutorials
Query Active Directory (ldaptest)
Query AD link: http://www.programming-free.com/2012/09/query-active-directory-from-java-using.html
Query ad Oracle link : http://docs.oracle.com/javase/jndi/tutorial/getStarted/examples/directory.html
Query Mysql
Query Mysql 2
Query SQL Server
Reading a text file line by line.
String length (java)
Servlet redirect
Password protecting pages
Removing white space and apostrophe from string
Removing carriage returns from a text file
Reading from a file in java
repaint()
Sleep ( java )
Thread stuff
Take the first X characters from a string
TextArea
The toString() method in java
Timer class
Using Split
Writing to a file with Java
Generating a random number
Closing a java connection to mysql
Uploading a file to a servlet - http://www.avajava.com/tutorials/lessons/how-do-i-upload-a-file-to-a-servlet.html
Another example of file uploading - http://alvinalexander.com/java/jwarehouse/commons-fileupload/src/test/org/apache/commons/fileupload/ServletFileUploadTest.java.shtml
Write string to a file in java using apache commons
Mysql database authentication check from argus
SumAll.java
Enabling Java in Firefox
Unresponsive GUI issues - https://www3.ntu.edu.sg/home/ehchua/programming/java/j5e_multithreading.html
Null layout manager example from Oreilly