Home > Back-end >  A small problem about Java practice
A small problem about Java practice

Time:09-23

This method, I had a previously defined, why didn't the


And this why can't use setVisible

CodePudding user response:

I didn't study Java graphical, but the way I see along while you which come of? Whether you need inheritance?

CodePudding user response:

And compile error are you sure you can run,,,,,,,,,,,

CodePudding user response:

The language is the inheritance
The import cn. AbstractAdminDialog;

CodePudding user response:

Running is complains

CodePudding user response:

I didn't get to a point where you ah, where is your method defines I didn't see, you can directly without inheritance drop method?

CodePudding user response:

You haven't defined inheritance directly call the parent class method

CodePudding user response:

You define abstract methods have specific implementation

CodePudding user response:

refer to the original poster lameifuck response:
this method, I had a previously defined, why didn't the
And this why can't use setVisible


Haven't seen you from the beginning to the end defined setVisible (true)

If is the swing, we need to inherit container, first class inheritance Jframe
  • Related