Results 1 to 4 of 4

Thread: Java Swing CSS

  1. #1
    bakenoor is offline Member
    Join Date
    Oct 2012
    Rep Power

    Default Java Swing CSS

    I'm not a swing expert, I'm mainly from web platform. So in web, one of the very important aspect is CSS. Moreover, overriding CSS and cascading CSS make it even more powerful. Forget about CSS attributes, do you think people working with swing need something like this for setting layout attributes for component in a swing interface. For e.g. a JLabel and JTextField both have the concept of font, so it possible to make them retrieve the information from the same source.

    There may be an existing tool like this which I don't know, if there is none currently, i'll surely try to come up with one and make it open source

    so, what do you think?

  2. #2
    KevinWorkman's Avatar
    KevinWorkman is offline Crazy Cat Lady
    Join Date
    Oct 2010
    Washington, DC
    Rep Power

    Default Re: Java Swing CSS

    Why can't you just store whatever font you want in a variable, then set the font of each to that?
    How to Ask Questions the Smart Way
    Static Void Games - GameDev tutorials, free Java and JavaScript hosting!
    Static Void Games forum - Come say hello!

  3. #3
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Madgaon, Goa, India
    Rep Power

    Default Re: Java Swing CSS

    I'd typed out an answer when this caught my attention: Java CSS in Swing - Stack Overflow

    Now if you had told us that the question was cross posted, I might have reconsidered.

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

  4. #4
    MohseN16 is offline Member
    Join Date
    Oct 2012
    Rep Power

    Default Re: Java Swing CSS

    It is possible...
    I have an article that explains how to do it , but it,s in persian langueg!

Similar Threads

  1. Java swing - help with GUI
    By adjit in forum New To Java
    Replies: 6
    Last Post: 03-16-2012, 11:21 PM
  2. java swing help
    By zoheb.siddiqui in forum AWT / Swing
    Replies: 1
    Last Post: 02-28-2011, 09:06 AM
  3. Is this right!! Java Swing
    By Nifras in forum AWT / Swing
    Replies: 4
    Last Post: 05-28-2010, 07:20 PM
  4. [swing] Java and sql
    By ezee in forum AWT / Swing
    Replies: 1
    Last Post: 03-27-2009, 05:55 PM
  5. Java Swing
    By JavaBean in forum Java Tutorial
    Replies: 0
    Last Post: 09-22-2007, 08:08 PM

Tags for this Thread

Posting Permissions

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