I am trying to insert an icon via JLabel to the left side of my Jtabbed pane bar..but problem is what ever i insert at the left of my widnow it makes it a new tabe pane..How to insert icon showing in image..?
Asked
Active
Viewed 156 times
-1

Andrew Thompson
- 168,117
- 40
- 217
- 433

Haseeb Wali
- 1,181
- 3
- 14
- 34
-
1For better help sooner, post an [SSCCE](http://sscce.org/) - hot-link to an icon or generate an image in code. – Andrew Thompson Dec 26 '12 at 06:48
-
i am using net beans so putting net beans auto generated code here, i do't think is a good idea. – Haseeb Wali Dec 26 '12 at 06:51
-
Using Netbeans when you don't know how to program Java or override the defaults of your IDE is also not a good idea. Voting to close. – Andrew Thompson Dec 26 '12 at 06:52
-
i am a bit good at swing for time saving,i preffered net beans over coding..and i have changed many look and feels via coding in my application so it's not a big problem for me. – Haseeb Wali Dec 26 '12 at 06:54
-
Good for you, and good luck with it. – Andrew Thompson Dec 26 '12 at 06:55
-
I agree with you there are a lot of problems in selecting net beans and i learnt my lesson that's why will never go for it...but for this project i can not go back to drawing board and start coding. – Haseeb Wali Dec 26 '12 at 06:58
1 Answers
1
use
JSplitPane
with oneJPanel
(left side) andCardLayout
withJTabbedPanes
(forCENTER area
)put
JToggleButtons
withIcons
(leftJPanel
)put
JTabbedPanes
by usingCardLayout
(CENTER JFrames area
)use proper
Borders
for nicer output to the screen

mKorbel
- 109,525
- 20
- 134
- 319