Results 1 to 6 of 6
  1. #1
    jim829 is offline Senior Member
    Join Date
    Jan 2013
    Location
    Northern Virginia, United States
    Posts
    6,226
    Rep Power
    14

    Default Java Swing Properties Documentation

    From time to time on this forum and others I have seen examples of folks using Swing properties.
    Yet I cannot find out where they are documented. In some cases they are used in JDK API
    examples (like UIResource). Any ideas/thoughts/suggestions on this?

    Regards,
    Jim
    The JavaTM Tutorials | SSCCE | Java Naming Conventions
    Poor planning on your part does not constitute an emergency on my part

  2. #2
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    14,422
    Blog Entries
    7
    Rep Power
    29

    Default Re: Java Swing Properties Documentation

    The UIResource interface and its implementing classes are documented in the API; what more do you need?

    kind regards,

    Jos
    Build a wall around Donald Trump; I'll pay for it.

  3. #3
    SurfMan's Avatar
    SurfMan is offline Godlike
    Join Date
    Nov 2012
    Location
    The Netherlands
    Posts
    1,995
    Rep Power
    9

    Default Re: Java Swing Properties Documentation

    What do you mean by "using Swing properties"?
    "It's not fixed until you stop calling the problem weird and you understand what was wrong." - gimbal2 2013

  4. #4
    jim829 is offline Senior Member
    Join Date
    Jan 2013
    Location
    Northern Virginia, United States
    Posts
    6,226
    Rep Power
    14

    Default Re: Java Swing Properties Documentation

    Quote Originally Posted by SurfMan View Post
    What do you mean by "using Swing properties"?
    Sorry for not being clear.

    Property strings like "List.font" and "List.cellRenderer." There are many others which can be listed using the UIDefaults class.
    The two I just mentioned were used in examples in the UIResource class documentation.

    Regards,
    Jim
    The JavaTM Tutorials | SSCCE | Java Naming Conventions
    Poor planning on your part does not constitute an emergency on my part

  5. #5
    SurfMan's Avatar
    SurfMan is offline Godlike
    Join Date
    Nov 2012
    Location
    The Netherlands
    Posts
    1,995
    Rep Power
    9

    Default Re: Java Swing Properties Documentation

    Ah those. I use a UIDefaults plugin in IntelliJ IDEA. It shows all the available properties. There vould be some IDEA specific ones in there, but it's all here.

    Edit: <removed wall of text> That list I dumped is probably the list you mention you get from UIDefaults?
    "It's not fixed until you stop calling the problem weird and you understand what was wrong." - gimbal2 2013

  6. #6
    jim829 is offline Senior Member
    Join Date
    Jan 2013
    Location
    Northern Virginia, United States
    Posts
    6,226
    Rep Power
    14

    Default Re: Java Swing Properties Documentation

    Ok, let me get straight to the point. I cannot find where these are documented in the same way as say, various Swing constants.
    So it seems to me that from a development perspective, one should not use them because they are defined internally (perhaps in the code somewhere).
    So as long as the advertised API is not changed, anything else is subject to change including these property values. So I view using them as risky.

    Regards,
    Jim
    The JavaTM Tutorials | SSCCE | Java Naming Conventions
    Poor planning on your part does not constitute an emergency on my part

Similar Threads

  1. Installing JAva SE Documentation
    By Suhi200 in forum New To Java
    Replies: 2
    Last Post: 05-29-2013, 10:26 AM
  2. Replies: 6
    Last Post: 08-12-2010, 02:54 PM
  3. Attaching the Java documentation
    By Eranga in forum NetBeans
    Replies: 11
    Last Post: 08-09-2010, 05:17 AM
  4. Proofread my Java documentation?
    By javanewbie in forum New To Java
    Replies: 1
    Last Post: 06-24-2008, 09:39 AM
  5. Java Documentation
    By ravian in forum New To Java
    Replies: 4
    Last Post: 12-04-2007, 10:45 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
  •