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
7 views

How to update a JSlider's maximum value without dispatching a change event elegantly

I have wee bit of code that updates a JSlider and at another place in time the JSlider's maximum value needs to updated. The problem is when I call setMaximum() on the slider, it also dispatches a ...
0
votes
0answers
7 views

Java Servlet | export reponse to Excel file

I'm unable to export the response from a servlet to an excel file. Please see the code below : Test.java : @Override public void doPost(HttpServletRequest request, HttpServletResponse response) ...
0
votes
3answers
35 views

include spaces rather than dashes in the case of a space

OK first I'd like to say I'm new to Java Development... With that in mind I'm currently trying to make the value of tryWord include spaces rather than dashes in the case of a space in s. can anyone ...
0
votes
0answers
6 views

How to programatically add liferay portlet Instance dynamically and install the portlet to the to dashboard page on click of a button?

I have a liferay portlet instance created dynamically and added to the layout programatically as follows String portletId = objUtil.addPortlet("/prj/reports", "XYZPortlet_WAR_ecpmportlet", ...
3
votes
2answers
30 views

Which Java framework should i learn after core Java?

I know this question has been asked before in the past, but since the situation has changed, i feel the need for an updated opinion. I am looking for an entry level position as a Java developer and ...
0
votes
0answers
2 views

how to access the first preceding text node using jdom2

Given an element node, I want to access the first preceding text node using jdom2. For example: <tr> <td>Price:</td> <td> <span> ...
0
votes
2answers
32 views

Implementation of visitor pattern

We implemented a Inventory for in a game as a school assignment. The inventory is implemented using an ArrayList which contain items. There are different types of items: Grenades, RocketLaunchers, ...
0
votes
0answers
5 views

How to clean and rebuild classes in JCreator?

Every time I change my code I get outdated output, so I have to delete all .class files and run the project again to refresh the output.
4
votes
0answers
28 views

Getting files by lastmodified date

What is the fastest way to get files by lastmodified date? I got a directory with some txt files. User can do a research by date, I list all files in the directory by lastmodified date (in File[]) and ...
0
votes
0answers
4 views

java monitors: TDA reports

While desperately trying out anything to unravel my load test glitches I came across TDA, a thread dump analysis tool for Java. Somehow I don't feel I am following its output. For instance, shouldn't ...
3
votes
3answers
44 views

How to secure my Account after Logout?

I have a situation- after I logout from a page if Someone click "Go Back" Button in a browser it automatic goes into back page again. In Logout.java (Servlet) I use: session.invalidate(); ...
1
vote
1answer
88 views

Extra comma in HashSet

I'm trying to split strings by capital letters, for example when the string is "SizeColorSize", the aoutput array is: {"Size", "Color", "Size"}. This works normally. Now I want to remove the ...
0
votes
0answers
9 views

Ant Deploy War to Glassfish 3 server fails at GWT

I'm developing a system that deploys the applications which is selected from GWT interface. I've wrote build.xml accordingly; <target name="deploywar" description="Varolan WAR dosyasını ...
0
votes
1answer
39 views

Call a method provided by future API

I want to extend my previous question. If in my code there is a method provided by future API, also if I check the version I have the following warning in LogCat 04-24 09:30:12.565: I/dalvikvm(471): ...
0
votes
1answer
19 views

HttpClient is not working with localhost

I developed a web service in java Jersey REST. I used HttpClient to call a a basic GET method. When using this URL http://localhost:8080/myserver/rest/location on browser, it works. When using this ...

1 2 3 4 5 27109
15 30 50 per page