Wrapper class « Development « Java Swing Q&A





1. wrapper class    coderanch.com

Jesper- I don't think that will do it. See what happens when you test it:

class Test { public void swap(Integer i, Integer j){ int temp = i.intValue(); i = new Integer(j.intValue()); j = new Integer(temp); } public static void main(String[] args) { Integer a = new Integer(1); Integer b = new Integer(2); System.out.println("a: " + a); System.out.println("b: " + b); ...

2. Wrapper class    coderanch.com

hi, i am involved in a project which reqiures creating our own Wrappper classes for our appln. For example, i want to create a button which should not extend or implement ActionListeners directly.i will create my own button class which inside will call the java.awt.button class or any Listeners. i tried to search,but in vain. Can anyone tell me how to ...

3. Wrapper Classes    coderanch.com