java

Java GUI libraries

I have been working with the Swing library for a long time, I'm working on a new project for school and due to the nature of the program it can't look like a generic/boring swing gui. So my question is does anyone know of an interesting java gui library that is not swing or awt? ...

Do you use ant's <depend> task?

The documentation for ant's task states: The performance of the depend task is dependent on a number of factors such as class relationship complexity and how many class files are out of date. The decision about whether it is cheaper to just recompile all classes or to use the depend task will depend on the size of your...

Object-Oriented Programming: Java.Polynomial -- should methods be 'destructive'?

I have to implement Java.Polynomial as a school assignment. Part of the methods are add(polynomial), multiply(polynomial) etc. In the case of something like p.add(q); // computes p + q is it better to return void and keep the sum of the polynomials in p? or is it better to return a polynomial and keep the former value of p intact? M...

Where can I find an AS400 to Java interface?

Does anyone have links and resources to connect to an AS400 from Java? I remember years ago, somebody told me about a connector that simulates KeyStrokes from the keyboard and other "purest" approach that connected directly. On the web I have found a lot of links, but I cannot find a complete product to do this (I am probably not usin...

Java Classpath Error

FIXED The problem was fixed by simply telling netbeans to do a clean rebuild of my application. Thanks for your comments guys. I've tried to create a generic Observable class that I can use in my program: public class GeoGolfObserver<T> extends Observable { public GeoGolfObserver() { super(); } public void p...

Any fast way to convert a scriptlet-infected JSP app into Struts?

We've got a legacy app to support. It's pure JSP, i.e. JSP opens connections, does business logic, submits forms (usually to the same JSP), and so on. It's 400+ pages, with some pages are as large as 100K. The app is expected to be extended and modified over the next few years, so we're looking into ways to split presentation and busine...

Java Swing Problem

I have a board with cards in which I have to find matches. I have two variables buttonA and buttonB to keep track of the squares clicked. When they are equal I can remove them from the board by simply adding this code: cards[buttonA].setVisible(false); cards[buttonB].setVisible(false); How can I place the same image on all the button...

JAAS for human beings

I am having a hard time understanding JAAS. It all seems more complicated than it should be (especially the Sun tutorials). I need a simple tutorial or example on how to implement security (authentication + authorization) in java application based on Struts + Spring + Hibernate with custom user repository. Can be implemented using ACEGI....

FlexGantt TimelineObject color change

I'm using the FlexGantt Javax Swing package (http://www.dlsc.com/) to display some Gantt charts. The trouble I'm having is that I can't figure out how to change the color of a DefaultTimelineObject that I've extended into my own class. Actually, about the only colors I seem able to change are the ones that are for the background colors o...

JSF Tuning

Running into an issue where JSF is filling up our sessions. We had a system crash the other day. Sent the Heap to IBM for review and found that we had some sessions as large as 50M. They found JSF components in the session and some very large. So, is there any tuning that can be done? Configuration items to look at? Or other directi...

Regular expression question

I have not been able to write a regular expression, to use in a String.split (Java) expression such as to only split on comma which are not in parentheses. Example: (54654,4565):(45651,65423),4565:45651,(4565,4564):45651 Should yield the 3 strings: (54654,4565):(45651,65423) 4565:45651 (4565,4564):45651 Any help much apprecia...

Need to know some basics of LinkedList class in Java.

package abc; class DependencyDataCollection { private int sNo; private String sessionID; private int noOfDependency; private int noOfRejection; private int totalValue; /** Creates a new instance of DependencyDataCollection */ public DependencyDataCollection(int sNo, String sessionID, int noOfDependency, int ...

Will there be any problem by copying a version of Java from one PC to another instead of installing it

I'd like to embed the directory and subdirectories from a current Java 1.6 update 11 into a software package that I will be installing on several other PCs and will like to know what the cons about doing this are (if any). I want to do that so that my version on Java doesn't override other versions on the PCs. ...

NetBeans Tips and Tricks

I just saw an Eclipse tips & tricks post and was wondering if anyone had any tips & tricks for my IDE of choice: NetBeans. Here's a few I know and find to be useful: Removing a package: After you remove a package in NetBeans, it sticks around as a grayed-out package in your Project view. To get rid of that, switch to Files view and d...

Connecting to a CDMA network IN from Java

hello guys, Am using java to develop program that receives and processes SMS messages. I have been able to code the processing of the SMS Messages received and its working perfectly. Now the challenge i have is receiving the the SMS Messages from the CDMA network. When the application is about to go live, the CDMA network will setup a V...

Spring Framework

What is Spring Framework? What's its contribution to Hibernate? ...

GWT Hosted mode : Connecting to 127.0.0.1

I've recently started to see a hang when testing GWT apps running in hosted mode. It hangs with the message "Connecting to 127.0.0.1" The only solution is to stop and restart a few times. Has anyone else seen this? If so, any ideas about the cause? I wondered if it was a firewall block. I'm using Zonealarm. If you are also seeing this,...

sendRedirect or request Dispatch is more efficient?

SendRedirect or requestdispatch ?Which should be more preferred?Which is more efficient? ...

What happened to Rhino? Is it still under active development?

The last release was in 2008-03-06. What happened to it? Is it still under active development? Are there any replacements? ...

NaN value in float field in MSSQL

I'm working on a java application,use double type to save value of unitprice,qty etc.I found some of these values show in MSSQL are NAN and throws infinite error when I try to reuse it.This is so unreasonable,I can save it but can not use it anymore!I think the NAN value in MSSQL must be valid when it first presence in java,so i can save...