java - JTabbedPane with banner on the top -


Please help create a layout;

I have tabs (jetabbedpan) and top-graded image (like banner).

"" "" "" "" "" banner
"" "" "" "" "" "" "" " '' '' 'Tab 1 | Tab 2 Tab 3

I have already created

  JetBeadPan tabbedPan = new Jetbaddapane (JetabbedPan.Setter); TabbedPane.addTab ("Tab 1", Make Panel 1 ()); TabbedPan.Datab ("Tab2", Make Panel 1 ()); TabbedPan.Dab ("Tab 3", Make Panel 1 ());  

Now add the tabbedPane to the frame. But the tabs appear in the frame and I have no place for my banner (the image file).

with JPNL with border layout . Place banner in south and tabbedPane in the center . Then add the panel to your frame instead of directly adding tabdpan .


Comments