Results 1 to 3 of 3
Like Tree1Likes
  • 1 Post By pbrockway2

Thread: Exception-JFrame

  1. #1
    Join Date
    Jul 2011
    Posts
    1
    Rep Power
    0

    Default Exception-JFrame

    JFrame

    public JFrame()
    throws HeadlessException

    then why dont we use try/catch blocks while creating a new jframe...?

  2. #2
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    17,902
    Rep Power
    25

    Default

    Cross posted at Exception-JFrame

  3. #3
    pbrockway2 is offline Moderator
    Join Date
    Feb 2009
    Location
    New Zealand
    Posts
    4,585
    Rep Power
    12

    Default

    JavaRanch offer good advice about crossposting to other sites. Norm has posted a link from here to the other part of the dicussion and you might like to post a link from there to here.

    A better way to start a discussion about your problem would be to say any ideas you have come up with. Since you are interested enough to ask the question, I'm assuming you are interested enough to have thought about it. Are there other times that exceptions might be thrown, and how common are they - how common in code could they occur, how common in practice do they occur? (ArithmeticException comes to mind.)

    Also it would be good to know what you've done to examine what has already been said about this. What has Google turned up? Is there any discussion of this in Oracle's Tutorial? If you have come across points that people have made that seem relevent but you are unclear what they meant, then quote/link and ask about them.
    Fubarable likes this.

Similar Threads

  1. Help with JFrame exception
    By javaman1 in forum New To Java
    Replies: 4
    Last Post: 11-12-2010, 03:12 PM
  2. Replies: 5
    Last Post: 06-14-2010, 07:10 PM
  3. Replies: 6
    Last Post: 04-12-2010, 12:33 PM
  4. Passing data from one JFrame to another JFrame
    By tarami in forum New To Java
    Replies: 3
    Last Post: 08-06-2009, 06:44 PM
  5. Replies: 4
    Last Post: 04-23-2009, 12:02 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •