Avatar of TheVeee
TheVeee
Flag for United States of America asked on

Class cannot find variables in abstract class

I have two classes CientGui and Test. ClientGui is a abstract and is in package test.tm and then the other class Test is public and extends ClientGui and is in package test.tm.dynm.  Problem Im getting is that when I try to reference a variable in Test from class ClientGui, I get Field is not visible but my editor when I go to declaration.. goes directly to ClientGui and shows me it.  If I change the ClientGui class from a abstract to public... everthing works fine.  The ClientGui class is the base of everything and Im worried about changing the "behavior" from a abstract class to a public class due to the ramifications since it used by gobs of our existing code.  Question is... How do I get it visible the way it stands today as a abstract class to the the Test Class?

Test.java....
package test.tm.dynm;

/**
 public class Test extends ClientGui {
{
}
==============================================================================
ClientGui.java...
package test.tm;
*      This is an abstract class serving as a super class for single table manipulations.
*
*/
public abstract class ClientGui
      extends JPanel
      implements ActionListener, ArcTable {
stuff in side
}
Java

Avatar of undefined
Last Comment
NHBFighter

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
NHBFighter

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck