< 1 2 3 4 > >>   Sort: Date

"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, 1997👍, 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...

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

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

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, 1908👍, 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, 1872👍, 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 ...)

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, 1865👍, 1💬

💬 2016-07-10 bfssd: Meaningful comments

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, 1680👍, 1💬

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

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, 1564👍, 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, 1480👍, 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

Printable Copy - PDF Version
Information on how to obtain the PDF version of this book for printing.
2016-03-22, 1470👍, 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 ...)

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

💬 2016-03-02 vinay malik: good post

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, 1378👍, 1💬

💬 2016-04-08 frank: this works

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, 1291👍, 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

'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-08-18, 1272👍, 16💬

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

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

💬 2017-04-16 s: \u00c9 = -~-~[], \u00f3 = -~\u00c9, \u00cb = \u00c9 << \u00c9, \u00fe = \u00cb + ~[];

💬 2017-03-23 Herong: ahihi, what are you trying to test here?

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

(More comments ...)

PDF Printing Version: JDK Tutorials
Information on how to obtain the PDF version of this book for printing.
2016-05-11, 1270👍, 4💬

💬 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, 1202👍, 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, 1186👍, 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, 1079👍, 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?

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-07-12, 1015👍, 3💬

💬 2017-06-16 marth: powerful tool

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, 999👍, 2💬

💬 2016-03-10 sudha: thanks

💬 2015-09-22 ram: no

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, 990👍, 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...

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, 872👍, 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, 829👍, 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, 789👍, 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, 770👍, 1💬

💬 2015-12-12 Adil: Good work

< 1 2 3 4 > >>   Sort: Date