I meant that if one Notepad is running a font selector and I have designed the font selector to be a singleton, what happens if I open another notepad and that notepad tries to create a separate font...
Type: Posts; User: javapenguin
I meant that if one Notepad is running a font selector and I have designed the font selector to be a singleton, what happens if I open another notepad and that notepad tries to create a separate font...
I have a question, when you make something a Singleton, how would you make sure that that particular calling application can only have one instance yet also ensure that more than one instance for ALL...
Mainly just because if anybody wanted to make a Notepad program that included those, like the Windows Notepad does, and they used Java, they'd have a slight problem it seems.
Is there any way to get Java to accept Windings 1, 2, and 3, Webdings, Symbol, and fonts like that? Right now they're registering as little rectangles for every character when I try those.
Does anybody have any idea how to access the individual boxes in a JList, a Choice, or a JComboBox? I'm trying to make the font chooser and I was trying to have the first one with an entry of...
Haven't tried calling it in another class but it's compiling.
import java.awt.event.*;
import java.awt.*;
import java.util.*;
import javax.swing.event.*;
import...
How would I ensure that the getInstance() can recognize if another instance is told to be made by some outside application?
Would I always have to check for it in the code of that other...
What's a Singleton Pattern? I've heard that phrase before.
I'm trying to make a FontChooser.
Also, my ExamplePanel isn't being added right now. Is it because all of my stuff is static?
import java.awt.event.*;
import java.awt.*;
import...
I've found that it's okay to have an inner class be static but it throws a fit when I try to make the main class static.
I was aiming to make sure that only one instance could be shown at a time. ...