Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

CSS Support & Integration

Help
gazbert
2006-09-26
2013-04-24
  • 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?

    Thanks!
    Gareth

     
    • 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:
      http://j2s.sourceforge.net/articles/tutorial-advanced-programming-on-j2s.html

       
    • gazbert
      gazbert
      2006-09-27

      Thanks for the quick response Zhou.