I have a dialog with a SWT Browser in it. I want to be able to track the mouse coordinates as the mouse moves over the browser control, but it doesn't seem to work like other controls.
Adding a mouse listener to the browser control has no effect and using Display.addFilter() detects mouse movements everywhere but over the browser contr...
Hi I am working through the tutorial here using windows XP and latest builds
http://binil.wordpress.com/2006/12/08/automated-smoke-tests-with-selenium-cargo-testng-and-maven/
Could someone please tell me what the tags are.
<parallel>true</parallel>
<threadCount>10</threadCount>
When I build with these tags included I get a failure:...
I would like to be able to encrypt files on disk and/or data in memory using GnuPG from a Java application. If possible I'd like to avoid having to make system calls out to the GPG command line tools.
Is there a recommended library, or can you recommend the best approach to GPG encrypting from Java (or Scala)?
I'm developing and inten...
I'm in the process of converting our java code to use NIO, but I'm not sure of the best way to design it.
My initial approach was to create a pool of selector threads. The threads are started/killed as needed, and channels are registered to a selector thread when they are connected/accepted in a round-robin fashion. From there, each thr...
In Java, the Map interface is defined as,
public interface Map<K,V> {
...
V get(Object key);
...
}
Why not?
V get(K key);
I just bumped into a nasty bug because wrong type key is used. I thought the purpose of the generics is to catch type error early during compiling. Does this defeat that purpose?
...
Hi to all,
Basically what I need to know is this:
I have to show a drop down list of countries to my users each country also has a code associated to it. I will have to work with both the country and the code What would be the best approach:
-We (the dev.) are thinking about a table in our app database with this data, or XML file.
-O...
Given an application using Spring 2.5, when migrating to Spring 3.0 what are the likely areas that will be pain points, i.e. things that the development team will have to spend time on to get things working. Assume the team would not try to take advantage of new Spring features as part of the upgrade, but just get the application to the ...
I am creating and writing to a file using the following pattern:
File afile = new File("C:/dev/ws/DataOrdering/data/" + thisDate
+ "_" + thisTime + "_visdata.csv");
FileWriter writer = new FileWriter(afile);
writer.append(tradeDetails);
writer.close();
However for some reason only the first file is written to, after that the files...
I'm using F5 as my load balancer and trying to pass some query string parameters to a filter on my J2EE app. It looks like F5 is somehow munging my query string parameters, though, as I can hit each node of my cluster individually with the query string parameters and everything works as expected but when I go through F5 it's as if the qu...
I am trying to retrieve a url with an umlaut in the filename, something like "http://somesimpledomain.com/some/path/überfile.txt", but it gives me a java.io.FileNotFoundException. I suspect that the filename on the remote server is encoded in latin1, though my url is in utf8. But my tries to change the encoding of the url weren't success...
I need to search a text in all the files of a directory and subdirectorys any clever idea ?
...
Some months ago I read a blog post which had a comparison of different (Java) application servers, with focus on the time it took to start/restart the servers after deploying a new/changed piece of code, and a discussion of the lost developer productivity all this restarting caused.
I forgot to bookmark the blog post; I've tried Google,...
I am coding this Sudoku Solver with the following algorithm:
Given a grid which is assumed to be a valid sudoku puzzle and exists at least 1 solution, it'll find the first solution and return it.
The puzzle is stored in a 2D array representing 9x9 slots.
If a solution does not exist, it returns a puzzle where puzzle[0][0] = 0, else al...
Hi,
I have an issue trying to delete using hibernate. When I try to delete I get an exception saying that children exist and there is a FK violation. I want to delete the children also but the delete doesn't seem to be cascading. After about a week of trying to fix this issue I read that I should be using HibernateInterceptor to keep...
Hello,
I try to develop a file transfer application in Java, with an applet as client, and a standalone java app as server (on a dedicated machine hosted in a datacenter).
I use DataOutputStream/DataInputStream to transfers the data on both sides.
When I send big volumes of data, the bandwith is very variable : all is okay first, then t...
I'm new to Java and I need some advice/information on how to debug my Java Applet.
I have created a applet that simply updates a mysql database. The applet seems to load in the webpage with no errors. When I click on my button to update the database it seems to actually make the call to the applet, BUT nothing happens, i.e. no new ins...
Background: I am using hibernate objects for database access.
inside my servlet's doGet I have:
Account account=getUserAccountHibernateObject();
doWorkOnAccount(account);
decreaseAccountBalanceAndSaveToDB(account);
Since servlet allows concurrent access, the accountBalance is really messed up sometimes. I have several questions:
W...
Hi, I have a general question about the JMS createQueue method. In WebSphere MQ is this method used as an alternative to the JNDI lookup? I was thinking that I could dynamically create a queue. Is this possible? Thank you.
...
I had a working application bundle on Mac OS X Tiger. I was easily able to just replace the jar file and everything worked as i made changes. I take that app bundle now, and when it is on Leopard, I get the error message along the lines of "Cannot open this application because it is not supported on this architecture".
I assume this is...
Hie!
I have a JTable. Columns of this JTable are rendered by JComboBox.
I would like to be able to change items of column 2 on the basis of values selected in column 1.
For example if the user selects Microsoft in column 1, then in column 2 he/she can select ado, wpf, etc.
Is it possible ?
If it is possible, than which events shoul...