Tagged Questions
Java is a general-purpose object-oriented programming language designed to be used in conjunction with the Java Virtual Machine (JVM). "Java platform" is the name for a computing system that has installed tools for developing and running Java programs. Use this tag for questions referring to Java ...
0
votes
0answers
4 views
Tomcat server not responding
I run a web server on tomcat 7 with Java 8, the server perform a lot of IO operations - mostly DB and HTTP calls, each transaction consumes a generous amount of memory and it serves around 100 ...
0
votes
0answers
2 views
SessionScoped bean deployment to TomEE 7
I'm trying to deploy a small java application which uses javaee web api
I have a SessionScoped bean
@Named
@SessionScoped
public class UserSessionBean implements Serializable {
private String ...
-2
votes
1answer
8 views
Why does default constructor need values?
I know if we have an empty constructor (default constructor) then we do not need to construct any values otherwise it will show an error. Just like this example:
public class MyClass {
public ...
0
votes
0answers
4 views
How to overlay GUI over 3D scene in JavaFX?
I have a 3D scene in JavaFX and need to overlay GUI over the 3D scene. I have tried adding buttons and text to the scene but they always appear in the 3d view as 3D objects. I have looked around and ...
0
votes
0answers
3 views
JavaFX media player on Ubuntu 16.04
I tried to play simple mp3 file using javafx media player, and on windows everything works smoothly, how ever same code on Ubuntu 16.04 results in this error :
Exception in Application start ...
0
votes
0answers
3 views
Java Play Facebook Authenticate
I recently managed to implement sign-in with Twitter using OAuth, but I can't seem to find any good up-to-date information on how to implement Facebook sign-in with Play 2.5.x for Java.
The Twitter ...
0
votes
0answers
4 views
i want to add a dropdown to the top of my listview as a filter on the basis of one of my listview item
Actually there are many tutorials telling how to add a editText at the top of listview as a filter but i need to create a drop down menu at the top of the listview in which one of the listview item ...
-2
votes
2answers
16 views
I need code for progress bar for my app code
Can anyone help me to add progress bar?
i have added progress bar various methods to my code but
progress bar does not end after page successfully loaded.
this is my MainActivity.java
package com....
0
votes
0answers
4 views
Why can't jboss find a suitable driver for this url?
I need to use jpa implementation of jboss-as-7.1.1 (hibernate) but when deploying the application, the server application shows this message:
Could not obtain connection to query metadata : No ...
0
votes
0answers
8 views
“Before start of result set” java SQL [duplicate]
I'm trying to connect to MySQL from localhost for a program, for login system... I made another project for testing and my code works on the testing project but not on the project I'm working on!
My ...
-3
votes
0answers
17 views
new to java, program structure design,
trying to practice my Java skills and I keep going wrong with the program structure,. I know this is a basic question but I couldn't find anything that matched, maybe its too simple.
I'm creating a ...
0
votes
0answers
3 views
Java / Libgdx Timer stops when window is not anymore in focus
i have got the following iusse. My timer works well until my game window is out of focus, right after that it stops and only resumes when it is in focus again. While it isnt in focus it does ...
-1
votes
0answers
6 views
java: ImageIcon not showing
I am trying to show a simple image in a JLabel but it will not show. I am not getting errors, only this warning on my mouse listeners:
Leaking this in constructor
I'm not sure that is related to my ...
-4
votes
1answer
9 views
How can I get rid of these part of .java contents that are red?
I downloaded a project from github. And even I located the sources files and other things.But as you see the contents of .java files have some red parts.Why that occured??
This is What I said.
-2
votes
4answers
20 views
Return value of assignment operation in java
I encountered a statement in java
while ((line = reader.readLine()) != null) {
out.append(line);
}
How assignment operations return value in Java? As the statement we are checking is line=...