I'm interested to hear feedback from a guru out there. If you are a java programmer, I'm sure you are familiar with openfire, while erlang programmers are familiar with ejabber. Which project has bigger community when doing programming in XMPP?
...
Hello,
I am a Java programmer and I know a few things about threading int Java.
In Java I can lock a method by using synchronized keyword:
private int a;
private int b;
private int c;
private synchronized void changeVars()
{
a = 4;
b = 2;
c = a+b;
}
I searched in msdn and saw that there are a few toys in c# to play with threa...
In itext I have a chunk/phrase/paragraph (I dont mind which) and I want to position some where else on the page e.g. at 300 x 200. How would I do this?
...
We've found a bug in old code where connections aren't being closed. It's an easy fix, but I'm wondering how we go about proving that it's fixed. There is a choice of using a connection pool or not. For the pooling use it would be easy to add monitoring for the pool, but when connections pooling is not used, how do we track those unclos...
In a multi-module project, how can you specify that you want to execute a plugin goal in all the child-modules, but not on the parent project? There is <pluginManagement>, but that only defines the configuration for the execution -- the child modules would still need to reference the plugin to get the goal executed:
[...] However, th...
I've deleted content of Absolute Layout library in NetBeans by mistake. Is there a way to recover the contents of this library?
...
Hello,
My application allows the user to print the screen content which is made of several Swing controls (images, texts, etc.) - the printed panel it self is long (several pages) and the width about 600pixels.
Since I know exactly each page layout (I put the exact number of images and components) on each page (the total number of imag...
How does VLC Media player implement HTTP Streaming?
I am aware that, VLC Media player can be used as a streaming server and also a streaming client.
My requirement is to stream(over HTTP) a proprietary protocol data from the server to clients and I am not comfortable with C/C++ code. I am comfortable with C# and Java. Can somebody ...
Hi,
I have a class A and write a subclass B. A has only one constructor which is parameterised. B has to call this super constructur of A.
Now I want to use an Object as a parameter. This object should call a method of B. So the parameter-object has to hold a reference of B or has to be an inner class.
public B(){
super.(new param...
Can anybody help with this?
I want to use an embedded Jetty 7 as Endpoint. This is what I tried:
public class MiniTestJetty {
@WebService(targetNamespace = "http")
public static class Calculator {
@Resource
WebServiceContext context;
public int add(int a, int b) {
return a + b;
}
}
public static void main(S...
What is the best way to fill tables create with jpa at application startup/shutdown of application ?
like but with data manipulation language instead data definition language.
i'm using HibernatePersistence as persistence provider.
...
Hi,
I have a pretty big (100'000s of entries) HashMap. Now, I need a HashSet containing all the keys from this HashMap. Unfortunately, HashMap only has a keySet() method which returns a Set but not a HashSet.
What would be an efficient way to generate such a HashSet using Java?
...
I have created a swings application and there is a "Start" button on the GUI. I want that whenever I clicked on that "Start" button, the start button should be disabled and the "Stop" button be enabled.
For that I have written the following code in the "ActionPeformed(...)" method of the "Start" button
startButton.setEnabled(false);
st...
I want to implement a simple wiki. Most probably will be using Java on Google app engine. I have been searching around for sample design or how others have implemented it, what issues they faced, how they solved it etc. But most search queries turned out to be useless as Google gave links to wikis discussing about programming instead of ...
Wish the latest Java runtimes (1.5 or 1.6) is the applet pluggin suppoed to use the Internet Explorer web stack to download the .jar file? The reason I ask is I can't see the request in Fiddler. More background - I'm trying to troubleshoot this error:
load: class at.workforce.applet.VMVersionApplet.class not found.
java.lang.ClassNotFou...
I have made an application in java. Now I want to deliver it to several clients. I want that each client must purchase a serial key to use that software. Without that key, the software shouldn't be run just like other softwares in the market.
How can I do that?
I know that I can't protect it fully. I just want a simple serial key func...
The classic google test here from selenium website, it works in FF on vista. On IE7, apparently doesn't find the window object. Selnm gets farther in the test (On IE) when I change config to using "iexploreproxy", (instead of "iexplore") but I cannot use that because it causes untrusted security certificate warnings. I installed selenium...
Hi,
how can I configure the username and password to authenticate a http proxy server using java?
I just found the following configuration parameters:
http.proxyHost=<proxyAddress>
http.proxyPort=<proxyPort>
https.proxyHost=<proxyAddress>
https.proxyPort=<proxyPort>
But, my proxy server requires authentication. How can I configure m...
Hello all, I'm new to java and I'm trying to swap out the text on a Button I've created. The code for my main class is as follows:
import java.applet.*;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import java.lang.*;
public class TeamProject extends Applet implements ActionListener, MouseListener
{
char[][] charVa...
I've been set an assignment which requires me to capture the input of 5 strings, convert them to uppercase, output them as a string, convert them to their Unicode integers (using the getNumericValue method) and then manipulate the integers using some basic operators.
I get the first part but I am having trouble with the following:
Usi...