CSS Support & Integration

  • gazbert

    gazbert - 2006-09-26

    Hi there
    Firstly, nice product! Is there a way I can use CSS with the JavaScript compiled version?  Is there a Java API for setting CSS styles on the SWT widgets - like what you can do with Google's GWT? Or have I got to hack the generated JavaScript and HTML code to do this?


    • Josson Smith

      Josson Smith - 2006-09-26

      Hi gazbert,

      Currently, there are no Java APIs for you to manupilate CSS and HTML DOM. Because SWT contains no such APIs, we are not planning to add such APIs to Java2Script's SWT library (Maybe later other libraries may contain such APIs).

      But you DO have the convienience to manupiluate anything about CSS, HTML DOM and JavaScript by using  @j2s* (e.g @j2sNative) tags in the Java sources. There is a tutorial talking about these tags:

    • gazbert

      gazbert - 2006-09-27

      Thanks for the quick response Zhou.


Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks