Results 1 to 10 of 10
Like Tree3Likes
  • 2 Post By DarrylBurke
  • 1 Post By KevinWorkman

Thread: what is that error ???????

  1. #1
    eng.master89 is offline Member
    Join Date
    Jan 2012
    Posts
    9
    Rep Power
    0

    Exclamation what is that error ???????

    trying to get all fonts name in a JList and got that error ???

    what is that error in photo ????


    what is that error ???????-31-03-2012-06-52-46-.png

  2. #2
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,418
    Rep Power
    25

    Default Re: what is that error ???????

    What program generates that error?

    Are you calling the constructor with the correct argument?


    Please copy and paste the error message here. It is not possible to copy and paste from an image
    If you don't understand my response, don't ignore it, ask a question.

  3. #3
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,240
    Rep Power
    19

    Default Re: what is that error ???????

    what is that error ???????
    TooManyQuestionMarksException

    db
    Bestsanchez and eng.master89 like this.
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  4. #4
    eng.master89 is offline Member
    Join Date
    Jan 2012
    Posts
    9
    Rep Power
    0

    Default Re: what is that error ???????

    sorry for that but i can't explain the problem without photos

    i'm trying to make a font chooser and this is my design

    what is that error ???????-01-04-2012-07-04-24-.png

    now i'm trying to put all fonts name in a Jlist and this is the codeb :

    private JList list = new JList(GraphicsEnvironment.getLocalGraphicsEnvironm ent().getAvailableFontFamilyNames());

    if i run the program it give me what i want like this

    what is that error ???????-01-04-2012-07-08-20-.png

    the problem now in viewing the design it give me this error, so i can't do anything in the design

    what is that error ???????-01-04-2012-07-12-10-.png

  5. #5
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,418
    Rep Power
    25

    Default Re: what is that error ???????

    Please copy and paste the error message here. It is not possible to copy and paste from an image
    If you don't understand my response, don't ignore it, ask a question.

  6. #6
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,240
    Rep Power
    19

    Default Re: what is that error ???????

    Quote Originally Posted by eng.master89 View Post
    the problem now in viewing the design it give me this error, so i can't do anything in the design
    What design? If you don't know how to use whatever visual designer you're referring to, why don't you just hand-code the entire GUI? It's easier.

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  7. #7
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    12,014
    Rep Power
    20

    Default Re: what is that error ???????

    What does the method getAvailableFontFamilyNames() return?
    What constructors does JList have?
    Do any of those constructors match the return type of getAvailableFontFamilyNames()?

    That should answer your question...
    Please do not ask for code as refusal often offends.

    ** This space for rent **

  8. #8
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,240
    Rep Power
    19

    Default Re: what is that error ???????

    Quote Originally Posted by Tolls View Post
    What does the method getAvailableFontFamilyNames() return?
    What constructors does JList have?
    Do any of those constructors match the return type of getAvailableFontFamilyNames()?
    To the last question, yes.

    The problem lies either in the inability of the poster to set up the visual designer correctly, or in a shortcoming of said visual designer. Either way, the root of the problem is in assuming that a visual designer is a beginners' tool. It isn't.

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  9. #9
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    12,014
    Rep Power
    20

    Default Re: what is that error ???????

    Ah.
    I shall go and sit in that corner over there momentarily then..........>
    Please do not ask for code as refusal often offends.

    ** This space for rent **

  10. #10
    KevinWorkman's Avatar
    KevinWorkman is online now Crazy Cat Lady
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    3,963
    Rep Power
    8

    Default Re: what is that error ???????

    what is that error ??????? sounds like a new game show, contestants are shown source code and have to guess what's wrong with it. Sounds vaguely familiar...
    DarrylBurke likes this.
    How to Ask Questions the Smart Way
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

Similar Threads

  1. java out of memory error-heap space error
    By elsanthosh in forum NetBeans
    Replies: 4
    Last Post: 06-15-2010, 09:31 AM
  2. Replies: 1
    Last Post: 03-10-2010, 01:53 PM
  3. Replies: 1
    Last Post: 12-05-2009, 07:28 AM
  4. Replies: 1
    Last Post: 10-26-2009, 04:38 PM
  5. Replies: 3
    Last Post: 01-23-2009, 08:53 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
  •