Search:

Type: Posts; User: Cornix

Search: Search took 0.11 seconds.

  1. Thread: abstract class:

    by Cornix
    Replies
    7
    Views
    1,115

    Re: abstract class:

    Right now you would create a new JFrame for each of them, if you have 50 you would have 50 windows popping up.

    Usually people use the MVC design for applications with a GUI. You could read up on...
  2. Thread: abstract class:

    by Cornix
    Replies
    7
    Views
    1,115

    Re: abstract class:

    No, its not a good design to put each class into a separate package, that would be rather pointless.
    But its a bad design to have so many package-private variables, especially if they are not really...
  3. Thread: abstract class:

    by Cornix
    Replies
    7
    Views
    1,115

    Re: abstract class:

    You never create nor add any listeners in the code you have posted so its hard to really tell what you are trying to do.
    Since your variables are package-private you should have access to them as...
  4. Thread: abstract class:

    by Cornix
    Replies
    7
    Views
    1,115

    Re: abstract class:

    If you want to use different values for every subclass of a class you can simply define an abstract method in the super class and have it implemented in each subclass.
    For example:


    public...
Results 1 to 4 of 4