Tagged Questions
Java, not to be confused with JavaScript, is an object-oriented language and runtime environment (JRE). Java programs are compiled to bytecode and run in a virtual machine (JVM).
0
votes
0answers
4 views
TextView giving NulllPointerException in AsyncTask
that should be a trivial , but i am really wondering whats happening, as i copied the code from an online course, where it worked , and its giving me nullpointer exception.Everything seems right so ...
0
votes
0answers
9 views
How to add a background image to string?
I'm making a simple jokes app. Basically I've used strings to hold each and every joke. So I press joke in the app, and it gives me a joke, then I press back, and the I press joke again and it gives ...
0
votes
1answer
8 views
persist many-to-many relationship with EJB
I'm using JPA (hibernate), EJB and CDI bean (JSF). I have two tables: technology (entity is Technology.class) and component (entity is Component.class) with many-to-many relationship.
Entity code:
...
0
votes
1answer
12 views
After being scaled an image won't display without an unrelated imageIcon
I'm trying to get some images to scale for a chess program I'm writing. I tried writing up a small program just to get a feel for scaling images and I ran into a problem with the image displaying. ...
0
votes
1answer
13 views
How to link the jsps in tomcat instead of keeping WEB-INF/jsp folder?
Can anyone please let me know, how to link the jsps in tomcat instead of keeping all jsps in WEB-INF/jsp and binding in the WAR ?
In WEBLOGIC, we can do it by giving the path in weblogic.xml, so ...
0
votes
9answers
41 views
Access the value from list in java
this is one of my class
class number11 {
String ab;
int i;
public number11(String ab,int i) {
this.ab=ab;
this.i=i;
}
}
And in main method, I used
...
0
votes
0answers
5 views
How to start jmx using java ProcessBuilder in windows 2008 server
I am trying to start jmx process trhough java ProcessBuilder in windows 2008, When I set jvmOpts.add( "-Dcom.sun.management.jmxremote.port=8999") The error message it shows is
Error: Exception ...
0
votes
1answer
11 views
I don't want to write driver.findelement(By.xpath(“”)) again and again
Hi this is the code below : What I want to do is this build a function in which i just pass the value of xpath, so i don't have to write driver.findElement(By.xpath("")) again and again.
...
0
votes
0answers
15 views
In Dynamic Listview row,their button functions not working
I have created an Dynamic listview,their data are coming or storing in db part.In each row i have give some button like sms,tts,email like that.Their content and button are displaying in my listview ...
0
votes
0answers
23 views
can't show caught exception (newSingleThreadScheduledExecutor)
for schedule executor:
executor = Executors.newSingleThreadScheduledExecutor();
Runnable ppt = new Runnable() {
public void run() {
try {
...
0
votes
8answers
45 views
Array index out of bounds error when using “.”
I'm trying to get this bit of code to work when getting someones date of birth and having to split it up in dd/mm/yyyy and using "." as the thing that separates day from month and month from year. I ...
-2
votes
1answer
44 views
Sending SMS to phone using Java
I am currently trying to send an SMS in Java. Here is the link that I followed: Send Text Messages Using Java
But I'm having a difficult time understanding what should I put for both of these:
...
1
vote
1answer
14 views
How can I add to or change a label on a JMenuItem?
I need to add a label on the right hand side of a JMenuItem, like the labels shown below:
I have an application that uses Ctrl++ and Ctrl+- to zoom into an image. However, the + key by default ...
0
votes
0answers
16 views
how to display different screen
I'm writing a simple program using CardLayout. The main screen should display a button which when pressed would go to the next screen which contains another button for another screen. My problem is ...
0
votes
0answers
6 views
How imageJ call IJ_Props.txt file?
Recently I am learning imageJ codes. I found IJ-Props.txt file is very important for many internal plugins. Without, many plugins in submanu disappear. I would like to know how imageJ calls and uses ...