Hello everyone.
My question is quite simple but I can't find any clear answer anywhere...
I have to make some animated design with lots of pretty effects and color gradients in a SWT compliant way ...
I assume what I try to mean is not clear as water so I'll try to explain more...
I have an RCP application in which I need to have a spe...
I tried to print a PDF document from Java using PDFRenderer and ICEpdf.
In both cases some of the text came out rotated in 180 degrees while the images stayed correct.
With PDFREndere all the text is rotated and in ICEpdf only some of the lines.
Any idea why is this happening?
...
java.io has many different I/O streams, (FileInputStream, FileOutputStream, FileReader, FileWriter, BufferedStreams... etc.) and I am confused in determining the differences between them. What are some examples where one stream type is preferred over another, and what are the real differences between them?
...
with Java5 we can write:
Foo[] foos = ...
for (Foo foo : foos)
or just using an Iterable in the for loop. This is very handy.
However you can't write a generic method for iterable like this:
public void bar(Iterable<Foo> foos) { .. }
and calling it with an array since it is not an Iterable:
Foo[] foos = { .. };
bar(foos); // co...
Hi All,
I am developing an application which monitors the presence of the power supply of the laptop. If there is a power cut or restoration it will intimate me over email. It will also application monitoring and controlling over email (Basically to control my laptop from my office over email). I am done with email interfacing but I hav...
Hi all,
I am doing some experiments with T2 on some old Legacy code; the problem is that the code has the tendency to throw IllegalArgumentExceptions.
Does anybody out there have a good example on how to tell T2 to ignore these?
Thx
...
I have a code something like this
Enumeration parameterEnum = request.getParameterNames()
while(parameterEnum.hasMoreElements()){}
what is the difference if I change it from a while statement into an if statement?
...
Hi,
I need to generate some kind of a nested Xpath on runtime.
Do you know of any Java lib or helper, which can assist with the creation of a complex Xpath expression ?
It need it to support nesting, AND, OR and simple operators like equal and contains.
Here is an example of an expression I need to build at runtime (The number of 'Poli...
I need to create a storage file format for some simple data in a tabular format, was trying to use HDF5 but have just about given up due to some issues, and I'd like to reexamine the use of embedded databases to see if they are fast enough for my application.
Is there a reputable embedded Java database out there that has the option to s...
Is there any way to detect a 64-bit java install in a 32-bit environment? The Java Deployment Toolkit detects nothing, but I was wondering if there was some secret browser way of detecting the 64-bit install client-side.
...
Hi Guys,
It is mentioned that one of the advantages of Lock (java.util.concurrent.locks.Lock) over intrinsic lock is that Lock facilitates "chain locking". Chain locking being, hold a lock for A, then acquire B, after acquiring B release A and then acquire C ...
I am just curious, have you guys encountered any situation in which the u...
I need to know when a new file appears in a directory. Obviously, I could poll the file system periodically, but that has all the normal downsides of polling mechanisms.
I know that windows supports file system events, and this project is already constrained to the Windows platform by other requirements.
Does anyone have experience re...
Hello everybody,
i'm about to deploy two different but dependent war-files into a single jboss (AS 4.2.x GA)
One implements some webservices (jax-ws) exposing their interfaces through
a wsdl. The other one is a (say) web frontend using the aformentioned webservices. When I drop both warfiles to $JBOSS_HOME/server/default/deploy at the ...
E.g. with winamp (on Windows at least), you can play a game fullscreen with winamp in the background, and use the media buttons* to control the sound. Winamp doesn't need to get focus, allowing the game to continue fullscreen.
I'd prefer to write this in Java but that probably isn't going to work (capturing keystrokes without focus is a...
I have two projects in the same workspace using a single workspace with Eclipse.
Project1 - References Project #2 and also contains the "Java Build Path" for Project 2
Project2 - doesn't reference anything
Project1 package is called Project1
Project2 pacakge is called Proejct2
I import Projec2 into Project1 using:
import Project2.Cl...
Hey everyone! First off, any help is much appreciated!
I am trying to use Fortify Source Code Analyzer for a research project at my school to test the security for open source Java web applications. I am currently working on Apache Lenya. I am working with the last stable release (Lenya v2.0.2).
Inside the root directory there is a fil...
I'm trying to use the Java Access Bridge to get information about Swing components from inside a C++ app. However, none of the callbacks I register ever get called. I tried enuming the windows an then calling IsJavaWindow() on each handle, but it always returns false. Any ideas on why it apparently is not working?
I presume it's a pr...
I am trying to get JAXB to work with a groovy class of mine, however, it appears it doesn't work but the java version does. Here is the code...
Here are the Scenarios
if 2 and 3 are uncommented it works fine
if 1 and 4 are uncommented I get...
com.sun.xml.internal.bind.v2.runtime.IllegalAnnotationsException:
2 counts of Illeg...
I just want to know for what java.util.Collections.checkedList() is actually used.
I have some code that I know is returning me a List<String> but its being passed through a chain of messaging calls and returned to me as a java.io.Serializable. Is that checkedList call good for me to turn my Serializable into a List<String>? I know...
Greetings all,
In another post I asked about rendering PDF in Jmeter, and it would seem the solution is to use iText.
Using iText requires installing another library and referencing it. Does anyone know how to do this? I can't find a tutorial. Much thanks. iText is also dependent upon bouncycastle
iText: http://www.1t3xt.com/downloads...