خرید بک لینک

Vote count: 0

I am creating a web browser in which I have to render CSS. Now I have done the HTML part with JEditorPane but I have trouble trying to incorporate swingbox. Following is my code

private JTextField addressBar;
   private JEditorPane display;
private void load(String Url){
       try {
           display.setPage(Url);
           addressBar.setText(Url);
          BrowserPane swingbox = new BrowserPane();
            // add the component to your GUI
          display.add(swingbox);
           // display the page
           swingbox.setPage(Url);           
       } catch (IOException ex) {
           Logger.getLogger(MiniBrowser.class.getName()).log(Level.SEVERE, null, ex);
       }
   }

It displays HTML but without CSS. Here is the error that it displays on cosole

SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.

asked 1 min ago

برچسب: نویسنده: استخدام کار تاريخ: شنبه 18 ارديبهشت 1395 ساعت: 12:08

صفحه بندی