• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Problem with JToolBar

 
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I writing my text editor in Java, something very similar to Notepad but with more funcionality...i would like to have floatable toolbars which behave same as in other aplications like in Word,so far i have created 3 toolbars and the problem is when user selects and drags out 1 of them for example 2. one in middle last 2 toolbars move to the left end, and now when user closes opened (2. toolbar) he gets back under menu bar but on last postion...I am not sure if I explained it right but I will try to "draw it" down:


---------------------MENU BAR------------------------
|1.FIRST_TOOLBAR_HERE|2.TOOLBAR_HERE|3.TOOLBAR_HERE|


now i take out (drag it) second toolbar

and it looks like this now

---------------------MENU BAR------------------------
|1.FIRST_TOOLBAR_HERE|3.TOOLBAR_HERE|


|2.TOOLBAR_HERE|
-this one somewhere on screen


-after I close my second tool bar it looks like this

---------------------MENU BAR------------------------
|1.FIRST_TOOLBAR_HERE|3.TOOLBAR_HERE||2.TOOLBAR_HERE|


Problem is that now 3. toolbar is infront of 2. which has no sence


How can I fix this problem and keep toolbars floatable at same time?


Thx in advance


Igor Stojanovic
 
Ranch Hand
Posts: 1535
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In the JToolBar api discussion section, second paragraph there is a recommendation for obtaining proper docking behavior. Try this
 
Igor Stojanovic
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thx a lot !

I solved my problem .
 
"Don't believe every tiny ad you see on the internet. But this one is rock solid." - George Washington
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic