Which component creates a titled border

Which component can I use to create a titled border around a group of radio buttons. I can't seem to find which component it is.
Thanks

How to Use Borders
http://java.sun.com/docs/books/tutorial/uiswing/misc/border.html
Create a panel, set the border and add your radio buttons to the panel.

Similar Messages

  • Color of a titled border

    - I created a panel with a titled border.
    - I have a background image.
    - There is a gray rectangle around the title in the border that I don't
    want to have because I want to see the background image.
    How can I handle this?? With panel I used setOpaque(false) but what can I do with border?

    Hi,
    How do you create the titled border? Are adding a border to your titled
    border?
    If you haven't, try this:
    jPanel.setBorder(new javax.swing.border.TitledBorder(null, "TITLE", javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Dialog", 0, 11), new java.awt.Color(51, 0, 102)));
    I've just pasted this from one of my apps, and I don't have any gray rectangle arround the title...
    Hope it helps,
    ANeto

  • Component in adf like titled border

    Hi,
    I'm using jdveloper 11.1.2.3.0
    I'm looking for a component in adf like the titled border in java swing:
    http://docs.oracle.com/javase/tutorial/uiswing/components/border.html#demo
    any idea?
    Thanks!

    Hi,
    you can use af:decorativeBox. Unlike in Swing the border is not controlled by properties but CSS (skinning). What af:decorativeBox gives you though are default color schemes you can set using properties
    Frank

  • Facing isssues while recreating the studio page in endeca 3.1 which was created in studio 2.4

    Hi All,
    I re-created the studio page on Endeca 3.1 which I created on Endeca 2.4 but I am facing below issue.
    1. In endeca 2.4 we have added range filter component but I cannot find the same in Endeca 3.1. Has it been renamed .
    2. In endeca 2.4 in serach box the drop down shows as all,events,codes but in endeca 3.1 it shows as OPSM(ALL),OPSM(Events).Can these be re-named and can their order be changed?
    3. In all the graphs in Endeca 2.4 in series metrics we have column EVENT_ID(sum), where we have entered Event Count as the Custom name and selected count as the Aggregration method, in endeca 3.1 I cannot find aggregation method count .Can you please let me know how can i get aggregation method count.
    Thanks in Advance.

    I was able to get the custom axis title for the metric to display on a bar chart on our 3.1 instance here.
    I'll just go throught the steps again - is this what you're doing?
    On the Chart Configuration tab, you click the edit icon for the entire metric group (not just the edit icon for the individual Record Count metric).
    On the Metric Group dialog, under Axis title, click the Custom title radio button, then enter your custom title. Click Apply to apply the change, then click Save to save the changes to the Chart component.
    Your custom axis title should display on the chart.
    If these are the steps you are using, and the custom title is not displaying, then I'm not sure what's happening.
    As I said, because bar charts can display groups of metrics (for example, you could show both the Record Count and some other value at the same time), you can customize the axis title. For charts where there aren't groups of metrics, you cannot customize the axis title. You also cannot customize the axis title for the dimensions.

  • How do I create a title, that behaves like a button?

    Hi,
    I'm using XML to load data from asp to flash. Here's the XML
    example:
    1. <?xml version="1.0" encoding="iso-8859-1"?>
    2. <news>
    3. <item>
    4. <headline>Flash XML Based News reader out
    today!</headline>
    5. <date>05/09/1986</date>
    6. <message>Today my new xml based flash news reader
    came out, I am so excited!</message>
    7. </item>
    8. <item>
    9. <headline>One day until the Flash XML Based News
    reader is out!</headline>
    10. <date>05/08/1986</date>
    11. <message>Tomorrow my new xml based flash news
    reader comes out, I am so excited!</message>
    12. </item>
    13. <item>
    14. <headline>Two days until the Flash XML Based News
    reader is out!</headline>
    15. <date>05/07/1986</date>
    16. <message>The day after tomorrow my new xml based
    flash news reader comes out, I am so excited!</message>
    17. </item>
    18. </news>
    And here's the ActionScript part:
    1. // Initialize the xml object that our news will be loaded
    into
    2. var news_xml : XML = new XML();
    3. // ignore all whitespaces inside of our xml file
    4. news_xml.ignoreWhite = true;
    5. // when the xml recieves a return from the load() function
    call, execute this function
    6. news_xml.onLoad = function( success : Boolean ) {
    7. // if the xml file was successfully loaded
    8. if ( success ) {
    9. parseNews(this);
    10. }
    11. }
    12. // call the load function on the xml object, passing in
    the url of your xml file
    13. news_xml.load("xmlTutorial.xml");
    14. // this function will take our news xml object and parse
    it
    15. function parseNews( _xml : XML ) : Void {
    16. // first we create an array that holds all the values of
    the item nodes
    17. var items : Array = _xml.firstChild.childNodes;
    18. // now we want to iterate over every item in the items
    array
    19. // and parse the nodes as we see fit
    20. for ( var i : Number = 0 ; i < items.length ; i ++ ) {
    21. // here we set the text of the text field ( news_txt )
    22. // the first thing we add to the textfield is the
    headline then a line break
    23. news_txt.htmlText += "<b>" + items
    .childNodes[0].firstChild +"</b><br>";
    24. // next we add the string date followed by the date value
    in the xml file
    25. news_txt.htmlText += "Date: " +
    items.childNodes[1].firstChild + "<br>";
    26. // now we add the message, then two line breaks, only for
    formatting
    27. news_txt.htmlText += " " + items
    .childNodes[2].firstChild + "<br><br>";
    28. }
    29. }
    So far is everything clear to me. But what I want to do now
    is that after a user clicks on title, next happens:
    the current swf unloads
    the flash sends data to asp (ID of an article and ID of an
    author, which movie to load next).
    How do create a title/button?I know how to make a title to
    behave like a link (just add the
    http://... in the headline tag in XML
    document. But this,..... I just don't know how to do that.
    THX for any help

    2m, you are right. I should tell you about my concept. It's
    all on the paper yet, because this is how I work - first I write
    down everything on paper, study it and the next step in trying to
    make it work on computer.
    I have a main swf, I call it system.swf. System.swf receives
    the info about the swfs, it must be loaded from html tag
    <object><param>. The ID of the movies is send from
    flash to asp and then via <object>back to flash. Does that
    make sense? Is there a better way for that?
    So, the system.swf is loaded for the whole time - let's say
    it on level1. On level 2 are then loaded other swfs.It depends
    which content the user wants to see.
    About the article part:
    first the user sees the list of last articles (title, date
    and short description). When he/she clicks on the title, all the
    action happens:
    flash sends the data which article the user wants to read to
    asp, asp searches in data base for the requested article and
    creates xml, where are title, date and the whole content of the
    article.
    At the same time asp also sends via <object>tag in html
    the id of the swf that must be loaded and the id of the author of
    the article, so the swf, where the pictures of the all authors are,
    will know what picute must load (this is the second swf that is
    loaded on the article part - it's created like a gallery; the
    author of the active article is bigger and if the user wants to
    read the last article of other author, he/she just closes the
    picture and then the images are moving in a slider way and when
    he/she clicks on an image, it get larger and the last artcle of
    this author is loaded).
    And I wonder how can I make this all to happen: when the user
    clicks on a title, all the var action happens?
    If you have better idea how to create this, please, advice.
    THX for the help so far

  • Changing the text color of a titled border

    Hello everyone,
    I have an applet that I have created. The background color of the applet is black. My jpanels have titled borders. I cannout figure out how to change the color of the titled border text to a different color other than black. Can anyone tell me how to do this please?
    Dave

    Hi,
    Not exactly sure what you are putting a border around, but here is one example of using a border and changing the color and the placement of the title. In this instance editor is a JTextPane:
    TitledBorder tb = new TitledBorder("Title");
    tb.setTitleColor(new Color(128,0,0));
    tb.setTitleJustification(TitledBorder.LEFT);
    editor.setBorder(tb);
    Joel

  • Determing which component from a custom TreeCellRenderer was clicked on

    hi,
    i've been experimenting with finding which component has been clicked on in a JTree which has a custom tree cell renderer. I've got a piece of code that appears to work, but am unsure if this is the proper way to go about doing this, and whether it might fail under some circumstances.
    any help appreciated,
    asjf
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.tree.*;
    import javax.swing.event.*;
    public class JTreeTest1 {
       public static void main(String[] arg) throws Exception {
          final JTree tree = new JTree();
          final TreeCellRenderer renderer = new MyRenderer();
          tree.setCellRenderer(renderer);
          tree.addMouseListener(new MouseAdapter() {
             public void mouseClicked(MouseEvent e) {
                int x = e.getX(), y = e.getY();
                int row = tree.getRowForLocation(x,y);
                TreePath path = tree.getPathForLocation(x,y);
                if(path!=null) {
                   Object o = path.getLastPathComponent();
                   Rectangle r = tree.getPathBounds(path);
                   // how to detect what component has been clicked on?
                   // simplification: pretend all boolean state has no effect on renderer (which is true for the renderer below)
                   Component renderedComponent = renderer.getTreeCellRendererComponent(tree, o, false, false, false, row, false);
                   renderedComponent.setBounds(r);
                   int _x = (int) ((double)e.getX() - r.getX());
                   int _y = (int) ((double)e.getY() - r.getY());
                   Component clickedUpon = SwingUtilities.getDeepestComponentAt(renderedComponent, _x, _y);
                   if(clickedUpon instanceof JLabel) {
                      JLabel jl = (JLabel) clickedUpon;
                      System.out.println(jl.getText());
          JFrame frame = new JFrame("JTreeTest1");
          frame.getContentPane().add(tree);
          frame.pack();
          frame.setVisible(true);
    class MyRenderer extends JPanel implements TreeCellRenderer {
       JLabel custom;
       public MyRenderer() {
          super(); // flow layout
          add(new JLabel("Hello"));
          add(custom = new JLabel());
          custom.setOpaque(true);
          custom.setBackground(UIManager.getColor("Tree.background"));
          custom.setForeground(UIManager.getColor("Tree.foreground"));
          add(new JLabel("World"));
       public Component getTreeCellRendererComponent(JTree tree, Object value, boolean isSelected, boolean expanded,
                                                     boolean leaf, int row, boolean hasFocus)
          custom.setText("("+value.toString()+")");
          return this;
    }

    My only advice would be to remember that rendered components are not actually added to the tree, so they are not a child of the tree... they actually cannot be clicked on. The rendered components are quickly used just to paint and specific image and then discarded (which is why you don't typically want to create new ones each time). When you click on the tree, there is no "rendered component" there, just an image that was painted.
    Hope this helps
    Josh Castagno
    http://www.jdc-software.com

  • How do I create this title?

    How do I create a title with a blur in the background like this?

    for me this looks like one of the -zillion of free Title-designs avail across the net ...
    but to re-enact such a look, one option which comes to my mind is:
    • added a title to project, in red
    • alt-drag title-clip to create a copy of it
    • the lower one set to yellow
    • applied a Gaussian blur, played with some settings, see screen-shot above: 80% transparency, lots of blur, lots of 'boost'…
    … maybe not the most elegant way, but … close.

  • Creating a title..Please help

    Hello everyone,
    Could someone please tell me which program I can use to create the title "Steve Jobs -Apple's CEO" that is in Apple Special Event? I like the way it appeared and I am about to create something like that soon.
    Thank you very much for your instructions in advance
    Best regards,
    James

    I believe that you are referring to a "lower third?"
    Is that what you wish to do?
    If it is, and you don't know how to do that, it might be prudent to get a basic book on motion graphics and get some background on how these things are done.
    Motion, LiveType, After Effects, FCP, and dozens of other programs can create lower thirds

  • How do I create a title whose size matches my video frame size?

    How do I create a 1920x1080 title?
    I'm using Premiere Pro CS4 on Windows 7.  I created a default title.  If I right-click on the title in the Project Explorer and select properties, it says:
      Title Size: 720 x 480
      Pixel Depth: 32
      Pixel Aspect Ratio: 0.9091
    If I drag this title onto a sequence onto a sequence created from the "AVHCD 1080i30 (60i)" preset then the title is automagically scaled to try to get it to fit into the 1920x1080 frame, resulting in a tiny title centered in the frame.  I can make things better by right-clicking the title in the timeline and selecting "Scale to frame size", but that's not a particularly elegant solution (and the title, as displayed in the title editor, still doesn't exactly match the title displayed in the previous monitor).
    How do I create and edit a title whose size matches my video frame size?

    Thanks guys!  I created the first title in a 640x480 sequence and didn't notice that I had the option to fiddle with the frame size when I created it.  Subsequently, I created new titles by duplicating a previously created title (which I had set up with desired font, effects, etc.) and just changing the title text in the title designer.  This worked great as long as I was making titles for a 640x480 sequence.  But when I tried to use a copy of this title in a different sized sequence then things got weird on me.  I spent way too long trying to find the option to resize the title before I finally gave up and decided to spend the time to figure out how to post a question in this forum.
    Just to verify how things work, I verified that the size of a new title does, indeed, default to the size of the currently selected sequence.  No idea what would happen if I had multiple sequences displayed simultaneously.
    Any idea how to change the size of an existing title?
    Bob

  • Custom Component Creates Unicode Files instead of UTF-8

    We have a custom component running in our SAP Enterprise Portal. The component creates a XML Outputfile encoded in UTF-8 since we force the component to so so. In the environment we're using right now, the output is in Unicode, which is obviously wrong. In what way can we amend the settings of our WebAs to switch the output format to unicode? Where/with what means do we have to do that?
    We are using Enterprise Portal 6.0 SP2, therefore WebAS 6.2.

    Alexander,
    Were you able to find the answer to your question?  I am experiencing the same issue and need to know how to create an XML output file in UTF-8 encoding.
    Thanks,
    Shannon

  • Hello,  I have a strange file in my Users folder, named PortDetect.log I have no idea which app created it and it reappears when I delete it.  Has anyone got the same file? Or know where it may originate from?  Thanks in advance!

    Hello,
    I have a strange file in my Users folder, named PortDetect.log
    I have no idea which app created it and it reappears when I delete it.
    Has anyone got the same file? Or know where it may originate from?
    Thanks in advance!

    know where it may originate from?
    The Huawei wireless modem driver.

  • Somebody has created an apple id using my gmail id. So I gave forgot password option and reset the password of the id. But for resetting the security questions, link is going to some other email id which is created by the other guy.How can I resolve this?

    When I tried to create and apple id using my gmail account i found that somebody has already created an apple id using my gmail id. So I gave forgot password option and reset the password of the id. But for resetting the security questions, link is going to some other email id which is created by the other guy. Now the problem is that the other guy also can reset my password and access my account.
    I contacted apple customer care and they are not ready to help me saying that I need to give information about the last device I logged in using this id. How can I give it when I did not create it?:) Also they are saying this account has been verified and that could happen only if someone has hacked my gmail account and verified the id using the link sent by apple.
    Later I did some experiments and found that this is a security flaw from apple. Somebody has created the id and never used it(I tried to loggin to icloud and it was saying this account was not used it any apple device). The account became verified when I reset the password.(This is a bug, account should be verified only when we click on the verification link sent by apple).
    The other mistake apple did is that they allotted my gmail account to someone before it's verified eventhough it cannot be used unless verified. Actually apple should allot the account id only after verifying the email address.
    Apple customer care is not ready to help and I am tired of fighting with them. Can any of you guys suggest any means of getting back my gmail id to use it as apple id?

    I don't think you're going to be able to. I would guess the other person used your address by accident, and when he found he couldn't access the account (because you'd changed the password) he abandoned it. Your GMail address is now locked to that account and even if it was changed you can't use it to create another.
    You already have an Apple ID, which you use to log in here; you can use that to create an iCloud account if that's what you are trying to do. If you want to create a different Apple ID just get another free address such as a Yahoo one.

  • How to delete all TABLEs in Schema SYS which are created since 09:15?

    Unfortunately a script created lots of tables in the wrong Tablespace (=SYSTEM) and Schema (=SYS).
    How can I delete (in one DDL command) all TABLES which are created inTablespace=SYSTEM and SCHEMA=SYS
    during the last 3 hours resp. since 09:15 of 25th Sep 2011 ?
    Alternatively: How can I move these TABLEs to another Schema (e.g. ATEST) and Tablespace (USERS)?
    Is this possible with Oracle XE or only with Oracle Enterprise?
    Peter

    user559463 wrote:
    Unfortunately a script created lots of tables in the wrong Tablespace (=SYSTEM) and Schema (=SYS).
    How can I delete (in one DDL command) all TABLES which are created inTablespace=SYSTEM and SCHEMA=SYS
    during the last 3 hours resp. since 09:15 of 25th Sep 2011 ?
    Alternatively: How can I move these TABLEs to another Schema (e.g. ATEST) and Tablespace (USERS)?
    Is this possible with Oracle XE or only with Oracle Enterprise?
    PeterYou can query dba_objects and join it with dba_tables where tablespace_name='SYSTEM' , then drop the tables result of the query; the idea is to use the following query;
    SQL> select OWNER, OBJECT_NAME from dba_objects where OBJECT_TYPE='TABLE' and OWNER = 'SYS' and CREATED >= sysdate - 3 / 24;Please consider marking your questions as answered, when it is the case;
    Handle:      user559463 
    Status Level:      Newbie
    Registered:      Feb 18, 2007
    Total Posts:      583
    Total Questions:      266 (186 unresolved)Edited by: orawiss on Sep 26, 2011 4:03 PM

  • How can we delete the composition which is created by AEGP_CreateComp()?

    Hi,
    I have created a composition using AEGP_CreateComp( ) method under PF_Cmd_SEQUENCE_SETUP command. The composition is displaying in project folder. I have to delete the same composition from project folder under PF_Cmd_SEQUENCE_SETDOWN command.
    we can delete the layer using AEGP_DeleteLayer( ), but how can we delete a composition from project folder which is created by AEGP_CreateComp( )?

    Im getting the crash on 10th line when I delete the composition
         PF_Err err = PF_Err_NONE;
        AEGP_ItemH    item = NULL;
        AEGP_ItemType itemType;
        AEGP_SuiteHandler suites(in_data->pica_basicP);
        err = suites.CompSuite6()->AEGP_GetItemFromComp(compPH, &item);   
        if (item != NULL)
            err = suites.ItemSuite6()->AEGP_GetItemType(item, &itemType);
            if (itemType == AEGP_ItemType_COMP)
               err = suites.ItemSuite6()->AEGP_DeleteItem(item);
    What could be the reason?

Maybe you are looking for