Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 8 years ago.
Improve this question
I need to create a template for android as follows:
https://dl.dropboxusercontent.com/u/29764789/app_example.png
Can anyone help me? Or guide me? A greeting and thank you very much
This looks like a problem where code is not necessarily the solution, maybe you should use photoshop to glue 2 images together in this way. It would be a lot easier, and obviously much less buggy. If you really want to do this in-app, you are going to have to at least get some rough code and make a rough attempt so that we have something to work with.
Related
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 4 years ago.
Improve this question
enter image description hereDoes anyone know, how to solve the import com.sun.prism.Graphics problem? It says to me, that the import is not accessible.- I coded this according to the tutorial... And Java also advices me to add this command. But when I add it, Java says that its not accessible.
(Basic game tutorial)
This is internal class of particular JRE implementation. It is not part of Java Language Soecification. The tutorial you are using is bad in this sense.
If you really want to implement graphics with Java, consider Java FX.
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 4 years ago.
Improve this question
I would like to use a function that would skip the loop for one iteration. I found out that continue works in Java, but it doesn't seem to work in Python. Is there an equivalent of continue in Python, and if so, what is it?
Refer to the official python documentation for information on continue in python.
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 6 years ago.
Improve this question
I'm trying to write a PDF, more specifically write as a HMTL page, using iTextPdf and XMLWorkerHelper, using verions 5.5.9 of both.
But when I try to write to the PDF I get an exception, NoSuchMethodError, no clue as to what is causing this.
java.lang.NoSuchMethodError: com.itextpdf.text.Paragraph.setRole(Lcom/itextpdf/text/pdf/PdfName;)V
at com.itextpdf.tool.xml.html.Header.end(Header.java:97)
at com.itextpdf.tool.xml.html.AbstractTagProcessor.endElement(AbstractTagProcessor.java:229)
at com.itextpdf.tool.xml.pipeline.html.HtmlPipeline.close(HtmlPipeline.java:208)
at com.itextpdf.tool.xml.XMLWorker.endElement(XMLWorker.java:142)
at com.itextpdf.tool.xml.parser.XMLParser.endElement(XMLParser.java:397)
at com.itextpdf.tool.xml.parser.state.ClosingTagState.process(ClosingTagState.java:71)
at com.itextpdf.tool.xml.parser.XMLParser.parseWithReader(XMLParser.java:237)
at com.itextpdf.tool.xml.parser.XMLParser.parse(XMLParser.java:215)
at com.itextpdf.tool.xml.parser.XMLParser.parse(XMLParser.java:176)
at com.itextpdf.tool.xml.XMLWorkerHelper.parseXHtml(XMLWorkerHelper.java:239)
at com.itextpdf.tool.xml.XMLWorkerHelper.parseXHtml(XMLWorkerHelper.java:211)
at com.itextpdf.tool.xml.XMLWorkerHelper.parseXHtml(XMLWorkerHelper.java:184)
Hoping someone can shed some light in this matter, thanks a bunch.
This almost always means that you compiled against one version of a library (in this case, iText) but you are deploying with a different version.
Check the versions in both environments and verify that they are both, in fact, 5.5.9
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 8 years ago.
Improve this question
I have been following the official tutorials about Sockets (link to the tutorials); however, I have not been able to 'link' two PC's with two different operating systems, there are not errors shown.
I would like to know if it is possible to do this entirely on Java, or if there is any existent library out there that does it.
Thank you in advance.
Java should already by platform, OS and hardware independent. You may have network issues?
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 8 years ago.
Improve this question
So I am getting a NullPointerException on the same line of code no matter how I change it. Even if I put a blank line there is still the same error on same line. Has anyone else had this happen? I'm pretty confused as to what could cause this.
edit: Should have mentioned I wasn't planning on posting my hundreds of lines of code as the error is always on line 317. Just trying to figure out if anyone else has had a similar problem and what the cause was. Also yes I have checked that I am debugging and running correct code.
It sounds to me like there is an issue with your environment. I would step back and make sure you are running or debugging the code you think you are.