sun par

Ranch Hand
+ Follow
since Oct 03, 2002
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by sun par

The Authors are Simon Roberts, Philip Heller and Micheal Ernest. It is the second edition and 2000 publication.
Thanks
Sunita.
I have a book to sell
Complete Java2 Certification Study Guide 2nd Edition.
The book is in good condition without any marks on it and is with the CD.
I am willing to sell for the best offer I get. If any of you are intrested, mail me at [email protected] with the price you are willing to pay.
Thanks
Sunita
[ June 04, 2003: Message edited by: sun par ]
Hi Ranchers,
I am tired of searching jobs here. I was thinking maybe I should move to India and try for a job. Would love to hear from you..
Here's my story -- I completed my MCA in India in 2001 and got an offer with a fortune 500 software company in India(in Java), I completed my academic project there, then due to recession they delayed for a period of nearly 8 months, in the interval I got married and came to the US, and I did not take that job. Then I completed SCJP 1.4 and am currently involved in an volunteer project in Swing.
Where do I stand now in the Indian Job market? I have got an call for test in Infosys, but I do not know if I go just for this, I will get or not and whether there are other opportunities..
Thanks a lot... and sorry for boring u with my life history
[ April 18, 2003: Message edited by: sun par ]
22 years ago
Yes they are good. They are close to the real exam and they give a lot of practice. They have a promotion running there, check out jdiscuss.com.
It does not work, am getting runtime error, the type of component returned is java.awt.dnd.DragSourceContext. so I guess am getting run time error because I am trying to convert it to JComponent.
Just calling setVisible(false) and revalidate() does the job. Thank you.
[ April 04, 2003: Message edited by: sun par ]
22 years ago
Am just curious about the name "The Moose". Does it have any significance?
[ April 04, 2003: Message edited by: sun par ]
22 years ago
I am dragging a component from 1 panel to another in my program. As soon as I drop a component in the destination panel i want to delete the component in the source panel.How do I acheive this. I tried doing this

But its not working . Can someone help please
Thanks
22 years ago
Thanks Raj. It seems to be a good material.
22 years ago
I am new to Swing, so I guess I misinterpreted.. This was what I read from jfc unleashed chapter 2


When evaluating a toolkit, performance measures such as "How long does it take to add ten thousand items to a list?" are often considered. These types of measurements for properly written JFC applications are irrelevant. The reason for this is that ten thousand items are never added to a list. Instead, the data source implements the ListModel interface and is immediately available for display. The difference in these two architectures is demonstrated in the following example:
package com.foley.test;
import java.awt.*;
import javax.swing.*;
/**
* A simple example to time adding items to an AWT List and
* JFC JList components.
*
* @author Mike Foley
**/
public class TestList {

/**
* Application entry point.
* The arguments are not used.
*
* @param args Command line arguments passed to the application.
**/
public static void main( String[] args ) {
//
// Time adding Strings to an AWT List component.
//
long d = System.currentTimeMillis();
List awtList = new List();
for( int i = 0; i < 10000; i++ ) {
awtList.add( "Item " + i );
}
System.out.println( "AWT time: " +
( System.currentTimeMillis() - d ) );

//
// Time creating a ListModel and adding it to
// a JList component.
//
d = System.currentTimeMillis();
ListModel model = new AbstractListModel() {
public int getSize() { return( 10000 ); }
public Object getElementAt( int index )
{ return( "Item " + index ); }
} ;
JList jfcList = new JList( model );
System.out.println( "JFC time: " +
(System.currentTimeMillis() - d ) );
}
}
When running this example on a 300MHz Pentium II processor computer with 128MB of RAM, the AWT List creation averaged a whopping 1.65 seconds while the JFC JList creation averaged approximately 0.015 seconds. The JList was two orders of magnitude faster. This obviously is a jaded example because the objects for the JList are lazily created when requested by the view. However, it approximates many real-world programming examples when the data to be displayed is already in a data structure in memory or can be lazily evaluated when, and if, requested. The JFC architecture gives the application developer the flexibility to store and/or evaluate data in the best way for your particular application. It does not force an assumed structure on the data.


[ April 03, 2003: Message edited by: sun par ]
22 years ago
Am highly confused regarding how to create a transferrable object and by data flavors. Can someone suggest something to look at to become clear in these concepts.
Thanks
22 years ago
I need to learn Drap n Drop capabilities of Swing. Can someone suggest some material for it??
Thanks
22 years ago
I read that Swing is faster becos it uses MVC architecture...
22 years ago
Hi
Am new to Swing.
Are there any significant changes in the Swing over the last few years? I find many books in amazon whose published dates are 1998-2000. So would like to know.
Is there any simple book on Swing?
Thanks
22 years ago
All interfaces have public methods by default. So why in the case of Serializable interface one has to provide the exact methods


Thanks
22 years ago