Java (not to be confused with JavaScript) is a class-based, object-oriented, strongly typed, reflective language and runtime environment (JRE). Java programs are compiled to bytecode and run in a virtual machine (JVM) enabling a "write once, run anywhere" (WORA) methodology.

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

0
votes
0answers
3 views

“Socket is closed” in my application

I'm trying to make a cliente/server application, but this problem occurs when I send the pong from server to client. Ping works fine, so what is happening? Here's the code for client class: public ...
0
votes
0answers
6 views

JAVA: SAVE IMAGE TO SPECIFIC PATH USING JFILECHOOSER

I HAVE A FRAME BUT I DONT KNOW WHERE TO START, I JUST WANT TO SAVE SELECTED IMAGE BY USING JFILECHOOSER THEN SAVE IT TO "c:\PHOTO". CAN YOU GIVE ME A SAMPLE CODE?
0
votes
0answers
3 views

communication between two CORBA servers in java

i need to implement two java cobra servers and these two servers needs to invoke function on each other. i use this orb = ORB.init(args,null); to initiate the orb for both client and server. but when ...
0
votes
0answers
5 views

force type with annotation in Java

Is it possible to force a type for annotated member ? e.g // legal (implements my interface Arrayable{ toArray(); }) @ArrayableAnnotation Set someData; // not legal, should be detected by ...
0
votes
0answers
8 views

A Javascript code embedded in java based webrowser application to organize the content of the web pages

i'm creating a web browser using java "netbeans IDE", so far i managed to do the easy part but each time i open a website it comes disordered, weird colors and backgrounds and not in English, i was ...
-2
votes
0answers
11 views

Is there any tool or API which takes the adjacency matrix as input and can make a directed graph out of it? [on hold]

Is there any tool or API in Java which takes the adjacency matrix as input and can make a directed graph out of it??
0
votes
0answers
12 views

How to deserialize dynamic field using Jackson?

I have the following Json: { "id": "id1", "version": "id1", "license": { "type": "MIT" } } Which can also be in the form of: { "id": "id1", "version": "id1", "license": ...
0
votes
1answer
8 views

responsive image in swing

Just wondering if anyone knows how to make an image in a java application using swing adjust based on your screen size, at the moment when i maximize my application the image stays at the same size, ...
0
votes
0answers
8 views

Applet with scrollbar

I have this code below; I am trying to display the Age, Cinema Price and Price rates when user drags the "Scrollbar", please direct me on what to do to get this working. import java.awt.*; import ...
0
votes
0answers
4 views

jReddit Usage for Android

I'm trying to create an android app that can login to reddit and pull feeds. So I found this wrapper class to handle all the logging in called jreddit. I just downloaded the zip and imported the src ...
0
votes
3answers
21 views

replace x, y in arraylist of arraylists in java

I'm trying to figure out how to replace a specific index in a arraylist of arraylists The only stuff I've been able to find so far is how to just get the index with .get(x).get(y) I'm having no real ...
0
votes
1answer
16 views

How to create a chat application in java for Web?

I'm developing a Web-application in Java,Spring, Maven, JPA. I looking to add a live chat functionality in it. I have not any idea about chat application, Please suggest a way to add chat ...
0
votes
0answers
10 views

building combination table out of clasic order

I would like to built a combination table for example 4 number of 5 samples(0 -4), but not in the right order. The table should start with the combinations of 0 and 1; than 0,1 2; than 0,1,2,3; than ...
0
votes
3answers
32 views

What data structure should I use for this particular situation?

This is not a homeowrk problem I am designing a parking lot and lets say I have a variable used that counts how many spots are used and a Hashmap that maps car VIN numbers to parking lot numbers. I ...
0
votes
1answer
3 views

JavaFX FileChooser dialog action error

When I open a file chooser dialog in JavaFX, whether I click the button "open" or "cancel", there is error reported: (java:20637): GLib-GObject-CRITICAL **: g_object_unref: assertion ...

15 30 50 per page