Win a copy of Zero to AI - A non-technical, hype-free guide to prospering in the AI era this week in the Artificial Intelligence and Machine Learning forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Paul Clapham
  • Bear Bibeault
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Jj Roberts
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • salvin francis
  • Scott Selikoff
  • fred rosenberger

Is it possible to create a compound button in swing?

 
Ranch Hand
Posts: 118
  • Likes 1
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • 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
  • 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
  • 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
 
Look ma! I'm selling my stuff!
the value of filler advertising in 2020
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic