Search:

Type: Posts; User: javapenguin

Search: Search took 0.16 seconds.

  1. [SOLVED] Re: How to make a class be static if it's the main class.

    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...
  2. [SOLVED] Re: How to make a class be static if it's the main class.

    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...
  3. [SOLVED] Re: How to make a class be static if it's the main class.

    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.
  4. [SOLVED] Re: How to make a class be static if it's the main class.

    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.
  5. [SOLVED] Re: How to make a class be static if it's the main class.

    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...
  6. [SOLVED] Re: How to make a class be static if it's the main class.

    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...
  7. [SOLVED] Re: How to make a class be static if it's the main class.

    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...
  8. [SOLVED] Re: How to make a class be static if it's the main class.

    What's a Singleton Pattern? I've heard that phrase before.
  9. [SOLVED] Re: How to make a class be static if it's the main class.

    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...
  10. [SOLVED] How to make a class be static if it's the main class.

    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. ...
Results 1 to 10 of 10