CalHTMLPane v2.0 Guide | Programming Answers |
1. I don't want hyperlinks to be marked as visited and I can't see a method in CalHTMLPreferences to turn this feature off.
The easiest way to turn this off is simply to set the default color of visited links to that of unvisited links. You can do this through a method in CalHTMLPreferences. So your code will look something like this:
CalHTMLPreferences pref = new CalHTMLPreferences(); pref.setDefaultColor(CalCons.A_VLINK, pref.getDefaultColor(CalCons.A_LINK)); CalHTMLPane pane = new CalHTMLPane(pref, null, null);
2. CalPane uses THREEDEE style form components as default. I'd like to have LOOKANDFEEL components as default. How do I do this?You can make all components render in the current Look And Feel by setting a property in CalHTMLPreferences:
CalHTMLPreferences pref = new CalHTMLPreferences(); pref.setFormRenderingStyle(CalCons.USE_LOOK_AND_FEEL); CalHTMLPane pane = new CalHTMLPane(pref, null, null);
3. Is it possible to do something like hyperlink-hover which you see in some help systems?Yes, there's a method in CalHTMLPreferences that enables you to do this:
CalHTMLPreferences pref = new CalHTMLPreferences(); pref.setShowHyperlinkOnMouseFocus(true); CalHTMLPane pane = new CalHTMLPane(pref, null, null);
4. I'm including some form components in a table. Each component is in its own table cell and the cell has got a border. I want the component to fill the cell, but there's always a gap above it. How can I get rid of this?Change the alignment of the form component to something other than its default, which is a few pixels below the text baseline. For example:
<TD><INPUT type=text align=top></TD>
Guide Index | JavaDoc | Previous | Next