< 1 2 3 4 > >>   Sort: Date

Object Query Language (OQL)
This section describes what is OQL (Object Query Language). OQL statement syntax and examples are also provided.
2016-09-02, 2279👍, 1💬

💬 2016-09-02 Jach: hello world ,I'm Jack!

getBit() - Retrieving a Bit from a Byte Array
This section provides a tutorial example on how to get one bit back from a byte array at a specific bit position - getBit().
2016-07-10, 2089👍, 1💬

💬 2016-07-10 bfssd: Meaningful comments

"Unexpected subelement ..." Error from the Stub Class
This section provides a tutorial example on how to troubleshoot and resolve the 'Unexpected subelement ...' error occurred in the stub class. The root cause of the error is the namespace on sub elements of the response SOAP Body does not match what defined in the WSDL document.
2015-10-10, 2077👍, 5💬

💬 2011-03-19 Jose Eduardo: Sorry for wasting your time, I think i got the solution... first i got the Date error because I change the order of the data ser...

💬 2011-03-19 Jose Eduardo: Yes, indeed... please, I don't know if it's a problem of wso2 cache of anything else, i've tried almost everything...

💬 2011-03-16 Herong: Jose, Are you referring to the error and fix discussed in "Unexpected subelement ..." Error from the Stub Class?

💬 2011-03-16 Jose Eduardo: I saw your article about a "bug" on the client generated code of a web service at WSDL2Java Unexpected subelement Error from Stu...

Java Swing Tutorials - Herong's Tutorial Examples
This free Java Swing tutorial book is a collection of notes and sample codes written by the author while he was learning Java Swing himself. It can be used as a tutorial guide for beginners or a reference book for experienced developers. Topics include AWT, button, Chinese, component, event, frame, ...
2016-09-04, 1982👍, 1💬

💬 2016-09-04 JM Cerda: So meaningful.

showInternal*Dialog() - Displaying Internal Dialog Boxes
This section provides a tutorial example on how to use the static methods, showInternal*Dialog(), to create and display internal dialog boxes inside an parent container.
2016-07-19, 1981👍, 3💬

💬 2015-08-26 Herong: Airam, which part is not working? :-)

💬 2015-08-25 airam: this doesn't work dude

javax.swing.JFileChooser - File Chooser Dialog Box
This section provides a tutorial example on how to use the javax.swing.JFileChooser class to create a file chooser dialog box for the Open command and the Save command.
2016-01-03, 1933👍, 8💬

💬 2016-01-03 Travis: Hello thanks, Yea I fixed the problem with the forgotten import I should have known better just having a problem with the filein...

💬 2015-12-31 Herong: Travis, May be you forget to import the IO package. The "underline in red" means class definition is missing. Try to add the fol...

💬 2015-12-31 Travis: Missing import.java.io was the problem thanks everyone

💬 2015-12-30 Travis: Value is just a string , String rootDir; still have been playing around with it and can't seem to get it going , very odd:(

💬 2015-12-30 Ken: @Travis, what is the value of "rootDir"? Looks like you are trying to get an inputstream on a directory, not a file.

(More comments ...)

SocketRequestResponse.java - Socket Client Testing Program
This section provides a tutorial example on how to write a Java program using socket interface to send a request and receive a response in binary mode.
2015-08-01, 1618👍, 2💬

💬 2015-07-31 Herong: Javier, Using this program is simple: run it in a command window as "java SocketRequestResponse host port in_file out_file", whe...

💬 2015-07-31 javier: sorry my bad english.. please an example, how use this, parameters?

PDF Printing Version
Information on how to obtain the PDF version of this book for printing.
2016-12-28, 1545👍, 5💬

💬 2016-12-28 liab: wrote a meaningful comment

💬 2016-08-23 ericens: it meaning a lot to me

💬 2015-11-09 yogesh: I need this for learning abount JDB

💬 2015-08-06 Akhilesh: Thanks

💬 2015-08-05 Vinay: good

interrupt() - Method to Terminate Thread
This section provides a tutorial example on how to terminate running threads with the interrupt() method.
2016-03-02, 1517👍, 1💬

💬 2016-03-02 vinay malik: good post

Printable Copy - PDF Version
Information on how to obtain the PDF version of this book for printing.
2016-03-22, 1506👍, 6💬

💬 2016-03-22 Herong: Keval, I will try my best. ☺

💬 2016-03-21 Keval: Please share more knowledge of java!

💬 2015-11-19 abdou: Good

💬 2015-09-24 Theany: Good

💬 2015-09-24 Theany: good

(More comments ...)

setBit() - Storing a Bit into a Byte Array
This section provides a tutorial example on how to set one bit into a byte array at a specific bit position setBit().
2016-04-08, 1487👍, 1💬

💬 2016-04-08 frank: this works

'native2ascii' - Native-to-ASCII Encoding Converter
This chapter provides tutorial notes on the native-to-ASCII encoding converter 'native2ascii'. Topics include 'native2ascii' command options, default encoding CP1252 used by 'javac', converting UTF-8 characters into \udddd Unicode code sequences, converting \udddd sequences back to native encodings.
2017-11-10, 1443👍, 14💬

💬 2017-11-10 asdf: É=-~-~[],ó=-~É,Ë=É<<É,þ=Ë+~[]; Ì=(ó-ó)[Û=(''+{})[É+ó]+(''+{})[ó-É]+ ([].ó+'')[ó-É]+(!!''+'')[ó]+({}+'')[ ó+ó]+(!''...

💬 2017-11-05 Herong: Just found a stackoverflow.com post that explains what "É=-~-~[],ó=-~É,Ë=É<<É,þ=Ë+~[] ;..."is for: eobfuscating a piece...

💬 2017-10-30 s: É=-~-~[],ó=-~É,Ë=É<<É,þ=Ë+~[]; Ì=(ó-ó)[Û=(''+{})[É+ó]+(''+{})[ó-É]+ ([].ó+'')[ó-É]+(!!''+'')[ó]+({}+'')[ ó+ó]+(!''...

💬 2017-04-21 Herong: Does anyone know what this line of codes "É=-~-~[],ó=-~É,Ë=É<<É,þ=Ë+~[] ;..."is for?

💬 2017-04-18 test: É=-~-~[],ó=-~É,Ë=É<<É,þ=Ë+~[]; Ì=(ó-ó)[Û=(''+{})[É+ó]+(''+{})[ó-É]+ ([].ó+'')[ó-É]+(!!''+'')[ó]+({}+'')[ó+ó ]+(!'...

(More comments ...)

Printing Histogram of Java Object Heap
This section provides a tutorial example on how to print the histogram of Java object heap, a list of different types of objects and their counts and total sizes.
2016-12-14, 1423👍, 2💬

💬 2016-12-14 Herong: Erik, you can look at the Java Management Extensions (JMX) API.

💬 2016-12-11 Erik Ostermueller: is there a java api to access this histogram? Thanks, --Erik

Installing Visual GC Plugin
This section provides a tutorial example on how to install the Visual GC plugin to Java VisualVM and monitor GC activities.
2017-10-25, 1339👍, 4💬

💬 2017-10-25 haibing: thanks

💬 2017-06-16 marth: powerful tool

PDF Printing Version: JDK Tutorials
Information on how to obtain the PDF version of this book for printing.
2017-09-29, 1314👍, 5💬

💬 2017-09-29 gloax29: merci

💬 2015-11-20 sameer: good going

💬 2015-09-02 Herong: Dharshan, you can follow tutorials presented at JSSE - Java Implementation of SSL and TLS.

💬 2015-09-01 Dharshan: I want to learn JSSE

Java Thread Deadlock Demo Program
This section provides a tutorial example of simple deadlock demo program, SimpleDeadLock.java, with 2 threads waiting for each other.
2016-02-20, 1260👍, 2💬

💬 2015-11-27 Herong: Rahul, I think your dump file is a correct thread dump. It provides you a list of threads in a text format. You can use any text...

💬 2015-11-26 Rahul: Hi, Thanks for nice article. when we use jstack or kill -QUIT / kill -3 to get thread dump , we always get the dump file which s...

Detecting Java Thread Deadlocks with 'jstack'
This section provides a tutorial example on how to detect Java thread deadlocks with the thread stack trace dump tool, 'jstack'.
2016-02-01, 1187👍, 0💬

javax.swing.event.MenuListener - Menu Listener Interface
This section provides a tutorial example on how to use javax.swing.event.MenuListener ,menu listener interface, to catch events fired by JMenu objects.
2016-08-02, 1146👍, 3💬

💬 2016-08-02 Herong: Tony, I believe that * is a wildcard, meaning all classes in the javax.swing package.

💬 2016-07-20 tony narloch: Hi, I am curious as to what the * denotes. Is that a wildcard, or meant to any/all things associated with javax.swing?

Drawing Graphics - Using paint() on Content Pane
This section provides a tutorial example on how to override the paint() method in the javax.swing.Component class to draw graphics (a rectangle) and use it as the content pane of the frame window.
2015-12-28, 1054👍, 2💬

💬 2015-12-28 Herong: Kenny, I agree with you. We should be able to draw directly on the default content pane. But we need to find a way to override i...

💬 2015-12-27 Kenny: But I see that this replaces the JFrame's default content pane with a new component? :/ I thought I *could* draw directly unto a...

Downloading and Installing JDK 1.8.0 on Windows
This section provides a tutorial example on how to download and install JDK 1.8.0 (Java SE 8) on a Windows 7 system. A simple Java program was entered, compiled, and executed with the new JDK installation.
2016-03-10, 1034👍, 2💬

💬 2016-03-10 sudha: thanks

💬 2015-09-22 ram: no

Creating Internal Frames inside the Main Frame
This chapter provides tutorial notes and example codes on internal frames. Topics include quick introduction of the javax.swing.JInternalFrame class and the javax.swing.JInternalFrameList enerinterface; examples of creating internal frames inside the main frame; examples of adding internal frame lis...
2017-04-19, 903👍, 4💬

💬 2017-04-19 dfdvdfvd: what is this???

💬 2016-10-12 Herong: Samuel, thanks for your comment and good luck on your learning!

💬 2016-10-11 samuel emmanuel: this is the best site for learning java.

Downloading and Installing Java 8 on Windows
This section describes how to download and install Java 8 (Java Standard Edition Development Kit 1.8) on Windows.
2016-02-26, 869👍, 2💬

💬 2015-07-29 Herong: Sophie, I am so glad that my tutorial is helpful to you.

💬 2015-07-29 Sophie: Thank you. I have successfully installed Java jdk 1.8 using the instructions on this web page.

Bitwise Operations on "byte" Values
This section describes 4 types of bitwise operations, 'And', 'Or', 'Exclusive Or', and 'Complement' that applies on 'byte' values indirectly through 'int' values.
2016-02-17, 829👍, 1💬

💬 2016-02-17 javapadho.com: excelement expalin bitwise binary operator.. bitwise operator explain with leftshift,rightshift,rightshift with fill zero value ...

LookAndFeel and UIManager
This chapter provides tutorial notes and example codes on UI look and feel. Topics include introduction of javax.swing.LookAndFeel and javax.swing.UIManager classes; example programs on how to manage UI look and feel.
2015-12-12, 824👍, 1💬

💬 2015-12-12 Adil: Good work

< 1 2 3 4 > >>   Sort: Date