Forums Register Login

JTabbedPane method addTab in error

+Pie Number of slices to send: Send
Hi,

I am trying to compile my source file. I have imported javax.swing.JTabbedPane. While compiling I get an error: cannot resolve symbol symbol: method addTab(java.lang.String, MyLoginPanel)

In my code I have:
tabbedPane = new JTabbedPane(SwingConstants.LEFT);
tabbedPane.addTab("Login", m_oLoginPanel);

where m_oLoginPanel is an object I have previously declared to store the instance of my compiled class MyLoginPanel

Can someone tell me what is going wrong here.

Regards,
Shalaka
+Pie Number of slices to send: Send
What is the super class of MyLoginPanel? It seems that it is not a Component.
+Pie Number of slices to send: Send
MyLoginPanel is being called from another class (SampleApplet) which I am currently trying to compile when I encounter this error.
Right! We're on it! Let's get to work tiny ad!
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 844 times.
Similar Threads
Design / Development Question
GUI JTabbedPane
retrieving values from JTabbedPane
JtabbedPane & bringing in other classes
JMenuBar reference being set to null!
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 10:53:46.