I have an application that I've developed. Currently it is deployed with all its config files (including log4j.properties, as used by some external libs I use) in the same dir as my application.
So, I have a bin dir, containing my app.jar, plus a few properties files, plus a lib dir with all my external jars. The external jars are speci...
In one project the use of //TODO, //XXX and //FIXME tags is very common.
The problem is that nobody has an overview of all TODO lines. Only Eclipse shows all tasks in one view.
I would like to display all TODOs with its filename in our daily build report created by CruiseControl.
How can this achieved easily?
...
I couldn't seem to find a similar question to this.
I am currently looking at the best solution solving a grid computing problem.
The setup:
I have a server/client situation where there clients [typically dumb of most logic] and recieve instructions from the server
Have an authorization request
Clients report back information on sp...
I am translating from Java to C# and have code similar to:
Class<?> refClass = refChildNode.getClass();
Class<?> testClass = testChildNode.getClass();
if (!refClass.equals(testClass)) {
....
}
and elsewhere use Class.isAssignableFrom(Class c)... and similar methods
Is there a table of direct equivalents for class comparsion and prope...
Hi,
I have made an application of reading all contacts and its values from android address book, but i am not able to read all the vlaues of contact.
Currently i am getting only its name and mobile number.
How can i get its all phone numbers,all eamil values and address values ?
Thanks in advance...
...
I am using the Batik library, which is very useful to display SVG graphics in Java. For the basic use case of displaying and rendering an SVG document is quite simple to use. However, I want to do some other advanced graphic manipulation and I am struggling as I don't find any good resource that will allow me to perform the following t...
I have not been working on java for a long time, and now I am back; so I am sort of noob, particularly with Netbeans. I am using Netbeans 6.5 on Ubuntu. I want to use the Jaxb support to generate Jaxb binding from an XML schema, as documented at http://wiki.netbeans.org/NB6JAXBSample1 . But the document asks to click on "On Project node,...
I am not able to create EJB 2.1 beans using a wizard in the latest version of Eclipse. I only see options to create EJB 3.0 beans.
I selected 2.1 as the 'EJB Module Version' while creating the "EJB Project". But now when I want to create a session bean, I don't see any option to create a 2.1 bean.
Is there a plugin/setting I need to en...
Hi,
I m MCS 2nd year student.I m doing a project in Java in which I have different images. For storing description of say IMAGE-1, I have ArrayList named IMAGE-1, similarly for IMAGE-2 ArrayList IMAGE-2 n so on.....
Now I need to develop a search engine, in which i need to find a all image's whose description matches with a word ente...
Hi all,
I'm facing an unpleasant issue with an JSF based application of mine.
Right now i have several xhtml-Files which include / make use the following
taglibs:
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:t="http://myfaces.apache.org/tomahawk"
xmlns:...
The Problem
I create a dialog box in swing (JRE 6 update 10, Ubuntu linux). When the user has finished using the dialog box it is hidden. When the users click on a button in another frame, a label on the box is changed according to the button, and then the box is shown again.
The problem I'm having is that the box is shown before the l...
I'm trying to display a local image in package1/package2/myImage.gif in a JTextPane. I first tried to load the resource into a BufferedImage:
BufferedImage image = ImageIO.read(ClassLoader.getSystemResourceAsStream(
"package1/package2/myImage.gif"));
But then I didn't know how to use that in the setText method, so I tried just poi...
I am attempting to embedd webrenderer (a Swing based web browser) within a JDialog that has a default button defined. Hitting return in any of the form textareas within the loaded HTML is causing the JDialog default button to fire and close the dialog.
Due to the nature of the application I can't simply not use a default button on the d...
Hi all,
is there a way to get the dimension of an image without reading the entire file ?
URL url=new URL(<BIG_IMAGE_URL>);
BufferedImage img=ImageIO.read(url);
System.out.println(img.getWidth()+" "+img.getHeight());
img=null;
Thanks
...
I need a Java interface to the OpenOffice document conversion which would equal to a manual (Open... and then Save As...) as well as access to the PDF generation.
The following are some example of what I want to achieve.
1) Open one type of document (fx. OpenOffice Writer document or Microsoft Office document) onto memory and save it i...
For my tests I'm using a base class MyTestBase defining a method setup() that does some base preparations:
public class MyTestBase {
@Configuration( beforeTestMethod=true )
protected void setup() {
// do base preparations
}
}
Now I have some more specific test classes that have to do their own preparations. There a...
Hi,
Is it possible to avoid deploying the artifact that is built according to the project packaging during 'deploy:deploy' processing?
I mean the following:
suppose we have a 'pom.xml' for web application and define packaging type as 'war';
we want to assemble either '.war'_ artifact or '.zip'_ that contains our application as well a...
This isn't a code question for once, but it definitely has me confused.
Basically, my lecturer has told me that we have a project due next semester that involves us to use Java and SQL intertwined with each other.
I had no idea the combining of languages was even possible!
So my mind's really blown.
I've been searching around looking...
Hi All,
I have images stored in a database I need to serve within a tapestry page.
I was about to write a servlet (simple enough) to serve the image like I always have but I figured using an asset or a service was more tapestry oriented.
What would be the simplest/tidiest way to include a dynamic image within a tapestry page?
Bare in...
Let's say I want to declare a function that has this java signature:
public static String getStatusString(ArticleAndStatus aas) {
//...
}
and that ArticleAndStatus is an inner class of org.example.Outer.
How would I declare it in a taglib? These both fail:
<function>
...
<function-signature>java.lang.String
...