• 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

Is it possible to create a compound button in swing?

 
Ranch Hand
Posts: 118
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
compound button, or what ever you might call it, is it possible to create a button or group of buttons to look like this?



the said button should be able to act as individual buttons like,
button_north, button_center, button_south, button_east and button_west.

looking forward to possible hints on how to come up with the said component.
thanks in advanced.
 
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Well, to my knowledge, there is no *inbuilt* feature for such things in swing, but if you wish, we could try to implement one ourselves. Maybe myself

But I have Q. here, why do you want to implement this ? As a control for a kinda media player I guess ?
 
Kocha Sapam
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I've implemented one but am unable to upload it, javaranch aint allowing me.
 
Aron Jhed Amiscosa
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
yes it is for a media player i'm trying to make.

i don't really need the code that you made, i just need at least the idea how you made it.

 
Kocha Sapam
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Oh ? thats cool, and the idea behind is, well you better see the code I better upload it somewhere. And please download it, I really want to help...........
And one more request, if you have too much time, please help me on my bleeps project hosted at googlecode. Thanks.

Regards - Kocha

Edit : here is the app in zip http://loneapps.xtgem.com/compoundbuttons.zip
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic