You are not logged in.

Dear visitor, welcome to Jabaco - Community. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

  • "StefanSchnell" is male
  • "StefanSchnell" started this thread

Posts: 102

Date of registration: Mar 13th 2009

Location: Oberirsen - Germany

Occupation: Senior Software Engineer

Hobbies: Programming aund Photography

  • Send private message

1

Sunday, August 23rd 2009, 11:11am

TabStrip does not work

Hello community and Manuel,

I think there is something wrong with the TabStrip control. I do the following:
1. Open a TabStrip on Form1.
2. Add two UserControls.
3. Add the TabStrip1.Tabs.Add command to main module.
4. Start the project.
5. Now I see the attaching screen (Form1) and
6. and get this exception twice:

Source code

1
2
3
4
Exception in thread "AWT-EventQueue-1" java.lang.ArrayIndexOutOfBoundsException: 0
 at javax.swing.plaf.basic.BasicTabbedPaneUI.paintTabArea(BasicTabbedPaneUI.java:825)
 at javax.swing.plaf.basic.BasicTabbedPaneUI.paint(BasicTabbedPaneUI.java:780)
 at javax.swing.plaf.ComponentUI.update(ComponentUI.java:143)


Perhaps it is my mistake, but I do not know.
Thanks for tips.

Cheers
Stefan
StefanSchnell has attached the following image:
  • Form1.JPG
Visit my personal or commercial site
If you have questions or suggestions, write me an eMail or
meet me here

OlimilO

Intermediate

  • "OlimilO" is male

Posts: 277

Date of registration: Jan 18th 2009

Location: Germany

Occupation: software engineer

  • Send private message

2

Sunday, August 23rd 2009, 9:35pm

Hi Stefan,

in Jabaco Version 1.5.0 unfortunately there is in fact a problem with Tabstrips, the problem is even bigger:
already instantiated usercontrol-objects get deleted if you open your project again later.
But you can see TabStrips working, because you also made a mistake:
between point 2 and point 3 you must place the usercontrol from the Tools-bar to your Form.

go this way:
1. in Formdesigner dragdrop a TabStrip on Form1.
2. in projectexplorer, for every tab Add one UserControl to your project
2.a in every Formdesigner of your usercontrols, design your tabs
2.b back agin to Formdesigner of your Form, dragdrop 1 usercontrol-object per tab from the tools-bar to your form.
3. Add the TabStrip1.Tabs.Add command to (not main module but) Form_Load
4. Start the project

Jabaco Source

1
2
3
4
Public Sub Form_Load()
   TabStrip1.Tabs.Add(TabOptionPath1, "Path")
   TabStrip1.Tabs.Add(TabOptionEdit1, "Edit")
End Sub

Now you should see your tabstrip working :)

OlimilO
OlimilO has attached the following images:
  • Tab1.png
  • Tab2.png
  • Form_w_TabStrip.png
  • TabStrip_ready.png

  • "StefanSchnell" is male
  • "StefanSchnell" started this thread

Posts: 102

Date of registration: Mar 13th 2009

Location: Oberirsen - Germany

Occupation: Senior Software Engineer

Hobbies: Programming aund Photography

  • Send private message

3

Tuesday, September 1st 2009, 12:15am

Hello Oliver,

many thanks for your explanation, now it works better - but not perfect. Hope that the problem, were you are talking about, correct and the handling simplified in a future version.

Cheers
Stefan
Visit my personal or commercial site
If you have questions or suggestions, write me an eMail or
meet me here

OlimilO

Intermediate

  • "OlimilO" is male

Posts: 277

Date of registration: Jan 18th 2009

Location: Germany

Occupation: software engineer

  • Send private message

4

Monday, September 21st 2009, 1:57pm

Quoted

the problem, were you are talking about, correct
fixed since version 1.5.2

Rate this thread
WoltLab Burning Board