aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes many new frames Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "many new frames" Watch "many new frames" New topic
Author

many new frames

Stoyan Georgiev
Greenhorn

Joined: Sep 07, 2004
Posts: 3
So i have a DefaultListModel and when i have a new socket connection to teh server ,some information about the client is added to the List model. After that � wont when i click twise over one of the objec to open a new frame application(chat console)

if(e.getClickCount() == 2){
int index = list.locationToIndex(e.getPoint());
Client client = (Client) StoringData.vector.get(index);

try {
new Console(client);

so far everiting is OK, but when i start >2 Console applications only the last one is active and i cant work with the others.
Any ideas why is like this and any prepositions
Craig Wood
Ranch Hand

Joined: Jan 14, 2004
Posts: 1535
Stoyan Georgiev
Greenhorn

Joined: Sep 07, 2004
Posts: 3
Thanks, it is working now.
The secret is(or atleast it's working for me) to invoke method rather than new class. I saw that in your example is also like this.
Thanks again
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: many new frames