Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

demo doesnt work. #75

Open
masta99wrfvsHsa opened this issue May 7, 2022 · 2 comments
Open

demo doesnt work. #75

masta99wrfvsHsa opened this issue May 7, 2022 · 2 comments

Comments

@masta99wrfvsHsa
Copy link

java -cp %newcp% SimpleBrowser https://github.com/radkovo/CSSBox/blob/e49013460a58bbb14be72174aa364d8c39be8166/src/main/java/org/fit/cssbox/io/DefaultDOMSource.java
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.
Error: Cannot invoke "java.awt.Graphics2D.create()" because "g" is null
java.lang.NullPointerException: Cannot invoke "java.awt.Graphics2D.create()" because "g" is null
at org.fit.cssbox.awt.GraphicsVisualContext.updateMetrics(GraphicsVisualContext.java:159)
at org.fit.cssbox.awt.GraphicsVisualContext.(GraphicsVisualContext.java:86)
at org.fit.cssbox.awt.GraphicsEngine.createVisualContext(GraphicsEngine.java:180)
at org.fit.cssbox.layout.Engine.createLayout(Engine.java:212)
at org.fit.cssbox.layout.Engine.createLayout(Engine.java:185)
at org.fit.cssbox.layout.Engine.createLayout(Engine.java:171)
at org.fit.cssbox.layout.Engine.(Engine.java:82)
at org.fit.cssbox.awt.GraphicsEngine.(GraphicsEngine.java:77)
at org.fit.cssbox.awt.BrowserCanvas.(BrowserCanvas.java:82)
at SimpleBrowser.initComponents(SimpleBrowser.java:84)
at SimpleBrowser.(SimpleBrowser.java:72)
at SimpleBrowser.main(SimpleBrowser.java:148)

@DJFLuFFy-vs-joe
Copy link

i am getting the Error: Cannot invoke "java.awt.Graphics2D.create()" because "g" is null error as well.

@mikedawson
Copy link

I found the same. However, the BoxBrowser did work. I was able to get it working by following the code from BoxBrowser instead of 'SimpleBrowser'.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants