Button Shape

Hi All,
I would like to make a button with the shape of an ellipse/ oval shape, how can I do this?
Also, I tried to make an image and put it on the button, but the border of the button still apear, how can I fix this?
Thanks

b) Check out this article:
http://java.sun.com/developer/TechTips/1999/tt0826.htm
That's a decent article, but typically, I would more likely suggest customizing the UI delegate rather than the actual JButton. Some advantages of this are:
1. The user can switch from the rounded look to a normal jbutton look without changing the actual object that is instantiated -- the component heirarchy doesn't change.
2. You can apply the same look and feel to Toggle Buttons, etc, without needing to override those classes as well.
3. Instead of hardcoding how to draw the border, you could create several customized borders, one of which could be installed by the installUI method. This would allow the user to decide to used customized bevel borders, or etched, or matte, etc, borders for his / her rounded button.
4. You can subclass the UI delegate to create several similar look and feels for rounded buttons, which may not necessarily have the same perimeter and bounded area, because you delegate the contains method to the UI contains method. Again, these still all work with a normal JButton component.
5. You can switch UI's DURING the application execution EASILY, becase it doesn't require removing one button and installing another, AND transferring all of the event listeners, resetting all of the stylistic properties, etc, etc, etc.
- Adam

Similar Messages

  • Play movie by clicking a button/shape

    Hi
    How to play movie by clicking a button/shape? The only option I found in keynote is playing movie by clicking the movie rectangle.
    Thanks
    zlf

    I am using TimerTask in my JSP page to print some message:
    <%
                      Timer timer = new Timer();
                      TimerTask monitorTimerTask = new Monitor();
                      timer.schedule(monitorTimerTask,1000,1000);
    %>
    <%!
         private class Monitor extends TimerTask{
              int i = 0;
              public void run(){
                       System.out.println("TimerTask ["+i+"]");
                       ++i;
    %>And to stop the TimerTask daemon, I created the following function:
    <%!
         public void stopTimerTask(){
              if(monitorTimerTask != null){
                   System.out.println("Stopping the Timer Task");
                   monitorTimerTask.cancel();
    %>Now, I am trying to call funtion "stopTimerTask()" by click of a button in JSP page. The function is being called BUT the daemon keeps on printing the text message to the console. It means the above function is not able to stop the TimerTask.
    What to do?
    Please help!
    Thanks,
    sumit

  • ComboBox that has a Button shape !!!

    HI, In the SAP Business One System forms for example in "Sales Quotation" form  we can see (in the Right-Bottom corner) a <u>SAPbouiCOM.ComboBox</u> "CopyTo" that <u>has a SAPbouiCOM.Button shape</u> so can anyone tell me how to create such a ComboBox using the UI-API .
    Thanks

    Hi Roupen,
    That copyFrom Button is not a List Button.  When we click the CopyTo Button combobox will be dropped. This is not special one. In Background its normal Button and ComboBox. When you click the Button, that ComboBox is dropped by the programming.
    Hope its helpfull for you.
    Regards,
    G.Suresh

  • Discarded button shape-- how to relink it?

    I made a project with DVDSP3 a while back that needed to be altered. In opening it (now in DVDSP4) the program tells me that one of the button shapes used (TutorialButton5 (which was used because I liked it) --can't be found, so all References to it will be removed from the project. And they were. The project opens with empty spaces where that button shape should be.
    Yet, the asset for button shape does exist.
    So-- how can I easily relink that button shape?
    and
    Why dosen't DVDSP4 recognize that the assett does exist and is still in the button shape library in the first place so this doesn't happen?
    regards

    Nevermind....
    I re-created the file (in PSD) and placed it in the proper folder. ---so, thanks anyway.

  • Button shape other than square????

    hi all,
    is there any way by which i can have button shapes other than square like oval or round?
    thanx,
    Soni

    Plenty of people ask this question.
    It would depend on your situation but sometimes it's as easy as setting a custom border on your JButton.
    However, I would recommend searching this forum for "round button" before asking for more help.

  • Button shape property.

    hai guys
    I am using 10g forms. The normal button shape is look like rectangle shape. I want to change it as onside rounded(ie. like apps) shape.
    If any one know that please reply.
    thanks

    You need to use a PJC for that. There's one available in the Forms 10g Demo, you can use that one, and it's relatively easy o configure.
    Tony

  • Button Shape in forms

    Hi,
    I need to change the shape of button from rectangular to a 'C' groove/style in the edges/ends in forms 9i (similar to apps). Please let me know what property needs to be set.
    Thanks

    Hello,
    This technique is used in the "Rollover Button" sample dialog in the Forms 10gr2 demos that you can download from OTN.
    The tips is to set the Button's Implementation Class to oracle.forms.demos.enhancedItems.RolloverButton, then use the rounds brackets in the button label to enforce the round corner button - see the Rollover Button demo
    Francois

  • Button shape replacement

    Okay, I have a very basic DVD studio project set up in which I would like to replace (or more accurately, remove) the Shape for a button without getting rid of video asset that is playing within it. Is this possible? Basically, the project has many menus of many many video thumbnails linked to full clips, and the client doesn't like the border that appears around the thumbnails throughout the whole project. It would cost me a HUGE amount of time to go back, recreate and relink all those buttons .... any advice for me? Thanks!

    You can use the PJC that's included in the Forms 10g Demo, just put the jar file in your Java directory and include the jar filename in the archive_jini parameter of your formsweb.cfg file and you're done.
    Whenever you use a " ( " or " ) " in the button label that side of the the button will be rounded.
    You can download this jar file from [Oracle Forms 10g Demo|http://www.oracle.com/technology/sample_code/products/forms/index.html]
    PS: Do not use uppercase letters, it's not polite, use lowercase.
    Tony

  • Button Shape has Odd Colours on Edges

    I finally was able to get my custom shape working. But now when I apply it as a button, the edges of it have random red/yellow/blue pixels on it. How do I get rid of these? Even if I use the shapes that come with DVDSP, these strange edge-pixels still appear. What's going on?

    Hi Phillip,
    We meet again. The problem you are having I think is the colour mapping of your buttons. Click on the button. This should bring up the button inspector box. Here you will see a tab called "Colours". We should be able to adjust the colour mapping to maximise the "cool" factor for your button edges.
    Happy Mapping

  • Preventing Irregular Button Shapes from Overlapping

    I have designed a website using Illustrator and imported it into Flash Catalyst. The design uses triangle-shaped navigation buttons. When FC makes them into a button, it makes it into a half-transparent square instead of a triangle. Unfortunately, since the triangles are staggered, one button will almost entirely cover the button next to it. (you can't see it, but you notice when you try to click on it) Is there any way to use these buttons without resizing/moving them or changing their shape?

    Unfortunately, bitmaps are a little more limited -- the entire rectangular region is sensitive to the mouse.
    If your original design consisted of vector shapes, then it's easy to get around this.  Just delete the bitmaps and import the original artwork back in.  Then, instead of using Rasterize, use Optimize Vector Graphics.  This will still give you performance and memory benefits, but the mouse sensitivity will follow the exact outline of the vector shapes.  (As icing on the cake, doing it this way lets you revert the optimization and edit the individual shapes again later if you want).
    Hope that helps,
    - Peter

  • Custom drop zone shapes and button shapes

    Are there any packages out there of designer created drop zone shapes and botton shapes? I am learning how to create my own, but I'm fairly new to design programs such as Photoshop. Are there designers who have created ones, and are they available to download?

    why pay someone for this when its so easy to create your own custom assests?
    http://www.kenstone.net/fcphomepage/shapes_droptemplates.html
    http://www.kenstone.net/fcphomepage/advanced_dropzones.html

  • Why the shape of submit buttons differ ?

    Hi ,
    We have developed a page which contains certain fields and 2 submit buttons. The shape of one button is round edged and that of the other is rectangle.Does the shape of button change with the change in version of JDK.? We have to instances on which we have JDK 1.3 running and the shapes of buttons differ for all pages and on other instance we have JDK 1.5 running where the shapes of all the buttons is same for all the pages.
    Please help me in this regard.
    Thanks,
    Awanti

    Awanti,
    Button shapes are directly dependent on CSS clas values, it is not at all dependent on Jdk version.Can u confirm Self Service Accessibility Features profile value is set to "Standard Accessibility"
    --Mukul                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Some Buttons in a Custom Page have different shape

    Hi,
    I have a weird issue with the submit button shape.
    In our test1 instance, these buttons are displayed uniformly i.e. the usual submitButton shape sort of oval-like.
    But when i migrated it to test2 instance, some buttons are shaped as they should be but some buttons are rectangular in shape. This is the very first time I saw such rectangular buttons.
    Has anybody experienced that?

    Pekochan
    Just tell your DBA to check X-Display server is ON on your instance or not.
    Try clearing cache from functional administrator responsibility or even bouncing the server.
    Thanks
    AJ

  • Creating custom buttons in Photoshop

    Alright, I've been searching the forum and web all day and done some tutorials but I can't seem to find what I'm looking for or can't make it work so I'm throwing out a life line.
    I would like to create a custom button in Photoshop that I can use in DVDSP 4. I've built a psd file at 300x300 pixels@ 72ppi in a 16bit file. I created the 4 layers and arranged them from top to bottom Icon, Hightlight, Shape, and Mask.
    Imported into DVD studio pro as a custom shape, dragged it into the menu and said make button. Went to the color tab in the inspector clicked simple and change the normal selected and active states but it changes it for the whole button shape not just the shape of the psd file. HELP!!

    Alright, I've been searching the forum and web all day and done some tutorials but I can't seem to find what I'm looking for or can't make it work so I'm throwing out a life line.
    I would like to create a custom button in Photoshop that I can use in DVDSP 4. I've built a psd file at 300x300 pixels@ 72ppi in a 16bit file. I created the 4 layers and arranged them from top to bottom Icon, Hightlight, Shape, and Mask.
    Imported into DVD studio pro as a custom shape, dragged it into the menu and said make button. Went to the color tab in the inspector clicked simple and change the normal selected and active states but it changes it for the whole button shape not just the shape of the psd file. HELP!!

  • Change Quiz Buttons

    Should be as simple as a nursery rhyme, but I can't make the
    gray buttons go away on a quiz slide. If I go to a button's
    properties and change it to an image button, scroll until I find
    one approriately colored for my presentation and click OK, the
    button shape/color changes. However, I need it to say Submit,
    Clear, Back, etc. Since those buttons in my color are not in the
    standard list, I think I have to create a transparent label and set
    it on top of the colorful button.
    1. The label won't go on top.
    2. There has to be an easier way to do this. Should I be
    deleting all the standard buttons and inserting a colorful image,
    merging with the background, applying text, merging that, and
    placing a transparent button over the lot of them? If so, how does
    Clear work?

    Hi all
    If you do a bit of Googling, you can come up with some free
    to use on-line button creator tools. Kevin Siegel's last Captivate
    newsletter lists a site called
    ButtonGenerator.com as
    one to use.
    Personally, I tend to opt for specialized software. Two of my
    favorites are Xara WebStyle
    Xara.com and Vista
    Buttons
    Vista-Buttons.com.
    Cheers... Rick

Maybe you are looking for

  • Replace cd drive in a G4 Xserve

    I have one of the original Xserve with only a cd drive. Can I replace it with a combo or superdrive? It is needed for software installs. If not what is the best way to connect a BOOTABLE DVD drive?

  • Automatic start of the 11gR2 Cluster

    Hey, I try to install 11gR2 on a virtual RAC (2 nodes) in VMWARE ESX4i. The maschines are running and the installation of clusterware and the oracle sw worked fine. But I am struggling with the automatic start of the cluster after a system restart. F

  • The document is not relevant for invoice lists

    Hi SD Experts, When i am creating invoice list (T.Code:VF21),I got the error that"the document is not relevant for invoice lists". i entered  invoice list type per billing document type (transaction OVV7). I already did those settings in the IMg. But

  • Safari 4.0.3 update has problems, AVOID it

    I was browsing Lotus Talk (www.LotusTalk.com) specifically this thread of mine: http://www.lotustalk.com/forums/f100/hod-infineon-7-4-09-ouch-75545/index2.html When I used my Logitech scroll wheel I got the spinning beach ball after every scroll -- o

  • Discoverer viewer is not installed

    Hello, I have recently installed Enterprise edition of 9IAS (1.0.2.2) on windows NT, after that I found discoverer is missing, is there any way just to re-install discoverer or am I missing anything !!! A.Kishore