please help me to display double type output. I know it round off, but i don't know now to fix it. Thanks.
Hi,
I have an applet iin a jar file. I included a png image in the jar. How can I load the image image embedded inside the jar from my applet? I'm extending from JApplet and it seems there'...
Hi experts,
I have a problem. I have a file which I put the unicode characters. ðc .
My aim was to return this character to the output stream.
I set the output stream type to utf-8....
Hi,
I want to use java's AffineTransform class to move a point for me. I have a Car class which I'm drawing in a 2D display, from a bird's eye view. The Car has a single current location ce...
I am trying to use Acegi (Spring security) for my website.
The "form-based authentication" requires 2 input field defined.
j_username and j_password.
However, I needs to have another ent...
How do I get the array information to display without having the basic information displayed each time that the array results are displayed. I've been banging my head against a wall trying to ...
hi,
i just wonder how i can make an icon for my project. So when any user double click on that icon, my project can run any system which has java installed.
I have a ant build file as follows:
+++++++++++
<project name="test" basedir=".">
<property name="lib.dir" value="/data/java_library/ext"/>
<path id="project.classpath">
<fi...
Hi,
When we use a CardLayout, we can add and remove cards from the deck. Is there a way to get a list of cards already added to the deck - or if a card was already added, calling add() agai...
Hi,
I have a pretty simple class, something like:
public class Animal
{
String m_name = "Mr. Barky Von Shnauwzer";
}
and I want to serialize it to a String, send it across a ne...
Hello,
I have a bit of regex below, whcih is used to validate input from an email transaction. While I thought it was rfc compliant, some mail servers do not include the space in the command ...
Dear fellow Java developers:
I am developing an application using Lucene and Java where I search through text that is in an XML document. I want this application to work very similarly to ...
Hi,
for a SWT/JFace-Application I want to set the focus to a widget that it is inside a TabItem. When the TabFolder which holds the TabItem shows another TabItem, the Focus is not set to th...
I have a application web form to enter personal inform such as name, address, phone number etc.
I have a function that checks to make sure the input box is not empty amd if it is empty an ale...
tutorial:
http://www.w3schools.com/xml/xml_namespaces.asp
one example is given:
<root
xmlns:h="http://www.w3.org/TR/html4/"
xmlns:f="http://www.w3schools.com/furniture">
<h:t...
Hi,
I am using JDBC connection pooling, I have created a custom class with singleton instance for database access, every caller needs to get that instance and can execute queries. I am retur...
How to develop countdown calendar with the specify events , such as:
1) create event
2) add event
3) delete event
in the JSP coding and whatever the jar file and softwares and tools we c...
Hi,
I currently have a piece of software with various try and catch's installed. However what I would like is if an error occurs (be it from a try-catch, or an unexpected error e.g. nullpoint...
I have a java bean nested like below
class AllocBean
{
private Item itm
String location
String name
.........
//getter
//setter
}
class Item
{
private String itmcod...
I want to develop a desktop application where it can extract contact information from Microsoft Outlook.
How can I achieve by using Java? Is there any example code?
If Java is not recomme...
Hi,
I'm wondering how java handles the final keyword in some instances. For example, with use in threads:
public void testA()
{
Car car = new Car();
car.colo...
Hi guys
I have a VO called customerVO
public class CustomerVO
{
public string name;
public int age;
setName();
getName();
setAge();
getAge();
}
In my backend DAO , i ...
My code is working fine for this JSP page.
However, if bad SQL is passed to the page it will error out with a NULL pointer exception.
I have this catch below to show what the SQL exception...
Hi,
I have a file included inside my jar, how can I open it for reading? I want to do something like:
InputStream is = getClass().getResourceAsStream("res/test0.res");
but the res...
Hi,
What is the best way to popup a pane in Swing that is not a dialog?
I don't need the buttons of a dialog. Just popup a picture
i.e.
User click on the button, and a picture is displayed...