Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Java Exceptions Java BadLocationException Class Hierarchy Diagram

 
 

Share on Google+Share on Google+

Java BadLocationException Class Hierarchy Diagram

Advertisement
In this section we will discuss about the javax.swing.text.BadLocationException class diagram in Java.

Java BadLocationException Class Hierarchy Diagram

In this section we will discuss about the javax.swing.text.BadLocationException class diagram in Java.

This class extends the java.lang.Exception class. BadLocationException exception is generated when tried to locate such location which doesn't exist. A class diagram of this exception class is given below :

Constructor Detail

Constructor
Description
BadLocationException(String s, int offs) This constructor creates an object of BadLocationException class where the argument 's' specifies that what was wrong with arguments and the argument 'offs' specifies that the offset inside the document.
Syntax : public BadLocationException(String s, int offs)

Method Detail

  • offsetRequested() : This method is used to get the illegal offset in the document.

    Syntax : public int offsetRequested()
Advertisement

If you enjoyed this post then why not add us on Google+? Add us to your Circles



Liked it!  Share this Tutorial


Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.

Posted on: December 27, 2012

Related Tutorials

Discuss: Java BadLocationException Class Hierarchy Diagram  

Post your Comment


Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 
Comments:0
DMCA.com