Skip to content

Instantly share code, notes, and snippets.

@patrickbaumann
Created March 21, 2011 19:16
Show Gist options
  • Save patrickbaumann/880022 to your computer and use it in GitHub Desktop.
Save patrickbaumann/880022 to your computer and use it in GitHub Desktop.
Silly Cobra Browser Snippet
import org.lobobrowser.html.test.*;
import org.lobobrowser.html.gui.*;
// ...
public class CobraBrowserTestView extends FrameView {
HtmlPanel panel;
CobraBrowserTestView(SingleFrameApplication app) {
super(app);
// ...
panel = new HtmlPanel();
panel.setHtml("<html><body>Test <b>test</b> TESTING!</body></html>",null,new SimpleHtmlRendererContext(panel));
this.getFrame().add(panel);
panel.invalidate();
// ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment