The Artima Developer Community
Sponsored Link

Java Answers Forum
How I stop to creat another instance of appl if one is already open

5 replies on 1 page. Most recent reply: Mar 19, 2004 9:44 AM by Secundino Garcia

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 5 replies on 1 page
Yousuf

Posts: 19
Nickname: saeed
Registered: Mar, 2002

How I stop to creat another instance of appl if one is already open Posted: Mar 25, 2002 3:46 AM
Reply to this message Reply
Advertisement
Hello..
Can any one tell me if one java application is already running ,How i stop to run second instance of same application while one instance is running.?


abhijeet

Posts: 13
Nickname: aaraje
Registered: Mar, 2002

Re: How I stop to creat another instance of appl if one is already open Posted: Mar 26, 2002 2:42 AM
Reply to this message Reply
thanks this will solve my problem

Thomas SMETS

Posts: 307
Nickname: tsmets
Registered: Apr, 2002

Re: How I stop to creat another instance of appl if one is already open Posted: Apr 8, 2002 3:03 PM
Reply to this message Reply
:-/
I don't get the point as there seems to be an answer to this question ot available on the Forum.

Anyway
Use a Factory !
Your problem is simply a variation on the Singelton pattern (Simple variationof the Factory Patterns). I believe you should search for it & then repost if you cannot solve some of the details.

A famous reference about it is th GoF book ("Design Patterns - Element of Software reusable Object - Oriented Software").

Otherwise : http://www.artima.com/designtechniques/booklist.html

I thought Bill had written one (see bottom of the page)...
Works in Progress
The Precise Object: Best Practices in Object-Oriented Design with Java
Bill Venners
This work-in-progress is one of my current writing projects.
See for more : http://www.artima.com/apidesign/contents.html

Kasim Hanif

Posts: 11
Nickname: kasim
Registered: Apr, 2002

Re: How I stop to creat another instance of appl if one is already open Posted: Apr 8, 2002 5:14 PM
Reply to this message Reply
Hey Thomas

You seem like you know alot your the only one answering questions instead of posting them up!!

i was wondering i u could tell me about JComboBoxes

i have tried changing the colors associated with this box but i cannot change the colour (blue) that comes up when u select an item, how do u change this colour and the general appearance of the JComboBox, i.e. focus content area filled etc!

thankyou

Thomas SMETS

Posts: 307
Nickname: tsmets
Registered: Apr, 2002

Re: How I stop to creat another instance of appl if one is already open Posted: Apr 8, 2002 6:07 PM
Reply to this message Reply
Just try to explain simply what you want & I'll work on it tomorrow night.

Please keep it simple & provide a little uncertain ideas... One tend to follow others path & do first there mistake !

Rgds,

Thomas,

Secundino Garcia

Posts: 2
Nickname: sgarcia
Registered: Mar, 2004

Re: How I stop to creat another instance of appl if one is already open Posted: Mar 19, 2004 9:44 AM
Reply to this message Reply
Which was the answer?

Flat View: This topic has 5 replies on 1 page
Topic: Date Formatting Question Previous Topic   Next Topic Topic: Use of Static Variables

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use