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

Thread: Exception-JFrame

  1. #1
    Join Date
    Jul 2011
    Rep Power

    Default Exception-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
    Eastern Florida
    Rep Power


    Cross posted at Exception-JFrame

  3. #3
    pbrockway2 is offline Moderator
    Join Date
    Feb 2009
    New Zealand
    Rep Power


    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, 02:12 PM
  2. Replies: 5
    Last Post: 06-14-2010, 06:10 PM
  3. Replies: 6
    Last Post: 04-12-2010, 11:33 AM
  4. Passing data from one JFrame to another JFrame
    By tarami in forum New To Java
    Replies: 3
    Last Post: 08-06-2009, 05:44 PM
  5. Replies: 4
    Last Post: 04-22-2009, 11:02 PM

Posting Permissions

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