Java is an object-oriented language and runtime environment (JRE). Java programs are platform independent, because they are compiled to bytecode and their execution is handled by a Virtual Machine called the Java VM or JVM.

learn more… | top users | synonyms (5) | java jobs

0
votes
0answers
4 views

achartengine library : how to redraw/ repaint/ refresh chart using in android

i'm using achartengine library for my chart. and i have a seekbar for change a chart with value that choose in seekbar. but everytime i choose one a seekbar, my chart not repaint even i have call ...
0
votes
0answers
9 views

advantage of treemap datastructure in java besides sorting and ordering

What is the advantage of treemap datastructure in java besides sorting and ordering ? How does treemap data structure internally work ?
0
votes
0answers
4 views

Insert/ Delete with AssetHelper library in Android application

I tried to insert or delete data from local sqlite DB using AssetHelper library. Whenever insert/delete class called, the program crashed. AssetHelper.java public void syncDB(String id, String kr_wd, ...
0
votes
0answers
15 views

Are EnumHashMaps in Java perfect hash maps?

If the list of hash keys for a hash function is known and immutable, it is possible to generate a perfect hash function. A Enum in Java is a list of known and immutable elements. Therefor it should be ...
0
votes
0answers
9 views

How to SWIG my entire c++ code base to Java

I have used swig to do generate java bindings for independent classes. However when I tried to do it for my existing codebase which is quite complex, having calls for STL , OSG and OpenGL. When I am ...
0
votes
1answer
20 views

android sdk cannot create project

has anyone seen an error like this, when building workspace, even when creating projects?? Errors occurred during the build. Errors running builder 'Android Resource Manager' on project 'egajkgb'. ...
0
votes
0answers
8 views

SSL server with SSLSocketFactory

I have a SSL server this is the code: public static void startServer(){ System.setProperty("javax.net.ssl.keyStore", "keystore"); System.setProperty("javax.net.ssl.keyStorePassword", ...
0
votes
1answer
17 views

synchronize of multiple method accesses

I need to synchronize a mysql query, so just one user can access the specified part at the same time. I tried synchronized(){}, but this doesn't work. The users can access the method simultaneously. ...
0
votes
0answers
15 views

Spring wants to call default constructor with @Resource

so I'm having trouble using a Bean with Spring. This is how I configure the Bean. @Configuration @ComponentScan("com.mypackage") public class BeanConfig { @Bean public Redis redisService() { ...
0
votes
2answers
22 views

HashSet adds duplicate objects

I have a HashSet which stores some Edges in a Graph. Each Edge has two Nodes. In the case the graph is undirected, adding the duplicate should fail: Edge a = new Edge(new Node("aa"), new ...
0
votes
1answer
16 views

Java: Label inside Circle

I want to put text ( must be formatted with HTML, so I can't use drawString in PaintComponent) inside Circle. Problem is that "paintComponent" is called after drawing label, so it covers my text. How ...
0
votes
0answers
9 views

Add `\n` to JTextArea every wrap the word

Hello I have a JTextArea and I txtResult.setWrapStyleWord program (true);, and I also have a report which takes data from JTextArea. I want every automatic JTextArea wrap, then add a new row, \ n , ...
0
votes
0answers
6 views

jquery client restful service jax rs

I'm trying to call a restfull web service with jax-rs and jquery. The service is up, but i think that my jquery call isn“t correct. In the network javascript console I have a status code : 200 ok, ...
7
votes
1answer
62 views

Practice to return itself instead void in Java [duplicate]

My team mates introduce me to new practice writing method which will not return void. public class Test { public Test doCalculations() { //code return this; } public Test ...
0
votes
0answers
7 views

Java JNLP self signing jars

When i create an unsigned JWS (Java web start) app, user will have to confirm any action that might harm his system. As i don't have money (nor need) for proper signing my JWS app, how can i (and, can ...

1 2 3 4 5 28663
15 30 50 per page