Anyone here know much about java? Doing a project for uni where im creating a chat client and server and ive run into a problem where after the user enters their password and username and click ok it throws an exception. The problem is when i use
ChatClient01 chat = new ChatClient01(); chat.setVisable(true);
it tells me to add a method in the chatclient class which i do like this
void setVisable(boolean b) {
show(b);
}
but im getting a red line under show(b) even though im using this approach in a diffrenet class and its working fine. Any help would be appreciated.
the show needs to reference the chat class somehow. If it's a function defined in the ChatClient class, maybe self.show(b)?
>>309762
>java
there's your problem.
>>309767
I know but unfortunately i have to do this shit.
>>309764
Still no luck, do i have to reference the chat class even if the
void setVisable(boolean b) {
show(b);
}
is in the chat class?