0

I have some code that uses JTabbedPane java 6 extension (it uses the method indexOfTabComponent(Component)) How can I make this code compatible with java 5?

Please don't tell me to upgrade to java 6, I can't.

2 Answers 2

3

One option would be to extend JTabbedPane circa 1.5 and implement indexOfTabComponent(Component) in your extension, then switch your code to use your new extension.

Sign up to request clarification or add additional context in comments.

Comments

0

You can do a lot with insertTab(), as seen in this example.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.