java

Connecting to MSAccess with Java

I am developing my project in Java. I would like to know how I can connect to MSAccess. Any links, or small examples would be greatly appreciated. ...

action listening for a JFrame

I am trying to listen tab-in tab-out action for my swing gui that is made by JFrame. I have a JTextField added to the JFrame that will be getting the user clipboard whenever the window is selected so the user may tab between programs, copy some url so when back to my program, this JTextField will be populated by the copied url string. E...

com/jniwrapper/win32/ie/WebBrowser class not found.

com/jniwrapper/win32/ie/WebBrowser class not found. From where can I download jniWrapper library. I have downloaded it from teamdev.com and it has win32 package also but this win32 package doesn't contain ie package. ...

scrollable JPanel in java

Hi all, I'm building this small java applet in which I need a JPanel which will support a scroll bar. I've tried different solutions, including scrollpanes and so forth, they worked fine when I used them in java applications and in IFrames, but from some reason when I moved them to java applets and inside other panels instead of JFrames...

can we implement a java interpreter in hardware that executes Java bytecodes natively?

if we implement java interpreter in hardware then how we can achieve architecture neutrality of java bytecode... does java uses JIT(just in time interpreter) ? and how all this is related to Virtual Machine concept of operating system and java virtual machine(JVM) ...

ArrayList without the copying overhead?

Does anyone know of a List implementation that has a constant time get(int index) (I.e. implements RandomAccess) but doesn't have to copy the whole list when it grows as ArrayList does? I'm thinking the implementation may well be in terms of other lists e.g. public class ChunkedList<T> implements List<T>, RandomAccess { private Linke...

java source code to html with links from uses to definitions

A tool (preferably free or open source) that converts java source code to html with proper links from uses of identifiers to their definitions. ...

How can I access Java heap objects without a reference?

I would like to get a reference to all objects in the Java heap, even if I don't immediately have a reference to those objects in my active thread. I don't need non-referenced objects (those "queued" for garbage collection), but would like to get anything that's still in use. The goal is to serialize and store all the objects to implem...

Simplest Java chart library?

Could someone please recommend a simple (as in very easy to understand) charting library for Java? I just want to add a simple chart into my program and figured I might save some time by learning a library. ...

distinguishing between delegation, composition and aggregation (java OO design)

Hello, I am facing a continuing problem distinguishing delegation, composition and aggregation from each other, and identifying the cases where its best to use one over the other. I have consulted an java OO analysis and design book, but my confusion still remains. The main explanation is this: delegation: When my object uses another ...

java generics - one impl class, multiple views

hi - i have the interface defined as below and is implemented by a single class MatchedAddressImpl. interface MatchedAddress extends HouseHelpData, StreetHelpData, TownHelpData public class MatchedAddressDetails implements MatchedAddress the client should be provided different views (HouseHelpData or StreetHelpData or TownHelpData or...

Java: Inherit constructor

I want to have a constructor with an argument that gets inherited by all child classes automatically. But Java won't let me do this class A { A(int x) { /// } } class B extends A { } class C extends A { } #Implicit super constructor A() is undefined for default constructor. I dont want to have to write B(int x) and C(int x) e...

Command-line java decompiler (alternative to jd-gui)

I'm looking for a program to batch decompile java classes. And i found JAD, but it didn't support some new features of JAVA, and the benefit of this program is that it can execute from command line and generate a *.java file automatically. And i found jd-gui.exe program, it supports most features of java. But the shortcomming is that it...

How to create Java documentation in order of appearance?

I've got one really big .java class file that has a lot of members. How do I create HTML documentation for this so it shows me the members in order of appearance, without sorting by member type? (methods, constants and variables) For example if my Java code is: private int typeOfAction_1; // notice the order: 1,2,3.. public voi...

Java: How to Indent XML Generated by Transformer

I'm using Java's built in XML transformer to take a DOM document and print out the resulting XML. The problem is that it isn't indenting the text at all despite having set the parameter "indent" explicitly. sample code public class TestXML { public static void main(String args[]) throws Exception { ByteArrayOutputStream s; Docum...

Are there libraries for Square Root over BigDecimal?

Are there any libraries for Square Root over BigDecimal in Java? ...

Java: Find .txt files in specified folder

I need Java code that will parse a given folder and search it for .txt files. Any links or code samples will be helpful. Thanks, Sri ...

parsing a XML file in java

I have wrote a SAX parser. It works fine when the attibute values are nested in double quotes. But if i dont use quote it throws a exception. I want my parser to parse the XML file whose attributes values are not inside quotes. I want to parse following type of file: <root> <tag1 attribute1=value1 > my data </tag1> </root> Note t...

Is there an implementation of JSR-303 (bean validation) available?

I know there are non-standard frameworks such as commons-validator, and hibernate validator. I wanted to know if someone knows an implementation of the official standard. ...

How do I get started building web apps with Java?

I want to start web developing with java. I don't know how to start, what to learn, or what is the best web framework to learn and use. Help me out? ...