[kepler-dev] [Bug 2343] - add welcome screen for release 1.0

bugzilla-daemon@ecoinformatics.org bugzilla-daemon at ecoinformatics.org
Thu Mar 30 09:37:27 PST 2006


http://bugzilla.ecoinformatics.org/show_bug.cgi?id=2343





------- Additional Comments From brooke at nceas.ucsb.edu  2006-03-30 09:37 -------
>> Nandita is looking at style sheets [..]
> Nandita-->The "Welcome to Kepler 1.0"requires CSS for sure....I don't 
> know how urgent this is to make CSS work with JEditorPane...

I've done quite a lot of css in Swing before, and it all seems to work pretty
much as advertised, provided you stick to old-style CSS, not CSS 2 (similarly,
the HTML needs to be HTML3.2, not 4.0+). I found it best to use tables for
layout, not css layout, but apart from that, you can set margins, padding, fonts
etc, which should be all you need. You can inline the style elements in the html
<head>:

<head>
...
<style>
body {
  font-family:      Verdana, Arial, Helvetica, sans-serif;
  font-size:        11px;
  margin: 20px;
  padding: 0px;
...etc
}
<style>
</head>
<body>...etc

Or you can just add the styles inline - 

<td style="font-size: 12px; margin-left: 10px; ...etc">your text here<td>

Let me know if you need any other pointers


More information about the Kepler-dev mailing list