I have a little control-panel, just a little application that I made. I would like to minimize/put the control-panel up/down with the systemicons, together with battery life, date, networks etc.
Anyone that can give me a clue, link to a tutorial or something to read?
...
Hi all,
I have child classes, each carries a different type of value along with other members. There may be a LongObject, IntObject, StringObject, etc.
I will be given a value, which can be a long, int, string, etc., and I have to create a LongObject, IntObject, StringObject, etc., respectively.
Would it be faster to overload a met...
I have a value stored in a DB correlating to a monetary amount, say 10.0. I also have access to the Currency/CurrencyCode. How can I use NumberFormat/DecimalFormat/(other?) to format when I don't know the Locale? According to the docs it will pick a default locale which won't work with a foreign Currency.
...
For example suppose I have a class Vehicle and I wish for a subclass ConvertibleVehicle which has extra methods such as foldRoof(), turboMode(), foldFrontSeats() etc. I wish to instantiate as follows
Vehicle convertible = new ConvertibleVehicle()
so I still have access to common method such as openDoor(), startEngine() etc. How do ...
I'm looking for a java-based (preferable) mailing list application that allows users to opt-in/opt-out of mailing lists. Open-source is preferable but not mandatory.
This product would be used to send email notifications to subscribed people when certain events happen in another application - i.e. when a new record is saved and approv...
I'm relatively new to Java programming (About 2 years) but not to web development. I started out with HTML and ASP (pre .NET), and have recently started messing with J2EE. I feel like I have a good grasp of JSP/Servlets (I find them to be similar to ASP) and have recently begun working with JSF and Facelets. Although I can see why peo...
I have an independent study next semester and would like it to be something that applies to future job prospects. I've interned at a company for the passed several years that uses Spring, Hibernate, and ServiceMix. I'd like to learn these technologies during my independent study so I can hit the ground running if I get hired there. Does ...
In Java, inner classes can be either static or not. If they are static, they do not contain a reference to the pointer of the containing instance (they are also not called inner classes anymore, they are called nested classes). Forgetting to make an inner class static when it does not need that reference can lead to problems with garbage...
Is there a way to configure code_swarm to only create the .png files. I think it would speed up the processing if it wasn't trying to display as it created the images.
I've looked in the FAQ, but didn't notice anything about that in particular.
...
I have this class and I'm testing insertions with different data distributions. I'm doing this in my code:
...
AVLTree tree = new AVLTree();
//insert the data from the first distribution
//get results
...
tree = new AVLTree();
//inser the data from the next distribution
//get results
...
I'm doing this for 3 distributions. Eac...
I have been using maven for a while now. But I've never learnt how to get rid of the snapshot version.
Please share some articles on how to do a release of the artifacts.
i.e. how do I publish my 0.0.1-SNAPSHOT versions to (say) 1.0.0
...
Hi,
I have the following requirement in the porject.
I have a input field by name startdate and user enters in the format YYYY-MM-DD HH:MM:SS.
I need to add two hours for the user input in the startdate field. how can i do it.
Thanks in advance
...
I want to represent threaded comments in Java. This would look similar to the way comments are threaded on reddit.com
hello
hello
hello
hello
hello
hello
hello
As in the example above, responses are nested in the HTML with appropriate indentation to reflect their relationship to prior comments.
What would b...
What's the best open source Java library to add Facebook functionality to a Java web app?
...
I am using struts2, for that my struts.xml file contains code like :
<?xml version="1.0" encoding="UTF-8" ?>
<constant name="struts.enable.DynamicMethodInvocation" value="false" />
<constant name="struts.devMode" value="true" />
<include file="strutsAuthentication.xml"/>
<package name="default" extends="struts-default">
<int...
Is there any way of removing the Component added to the CENTER of a JPanel with a BorderLayout, without having to reference the Component itself?
...
I want to convert MS word formatted documents to images and pdf. I am well versed with Java. I was looking for apis using which I can do the same.
Can anyone please point me to that ?
If you know the best alternatives even though they are for other languages , please update me about that.
...
I've a request to make some changes to a little applet that currently use a JFileChooser.
One of the main complaints is that the file chooser is a pain in the ass to use because it behaves differently than the native widget, especially for navigating up to the root level.
So, knowing that and all the other issue JFileChooser suffer (lik...
I have an application that communicate with multiple hosts at the same time. In this case I need to use multiple keystores to establish communication with other hosts.
In this case setting the system property "javax.net.ssl.keyStore" is problematic. I found an earlier post that discusses the problem well.
Then what would be the best ap...
I want to create a factory which will create a smack XMPPConnection.
The factory should return the real XMPPConnection or a NullObject if the connection could not be made.
However smack's XMPPConnection is a concrete class.
It does not implement any interfaces, so I can't use java dynamic proxy API to proxy the sucker. I could extend t...