How to insert a component (like button, textfield) onto a panel ?

i have a toolbar where i have used image icons for various controls...now, on click of a particular icon, i want to display the corresponding component...for eg, if i click a buttonimageicon, i want to display Button component on the panel...what should my actionperformed method look like? kindly help me....

panel.add(new JButton("test"));

Similar Messages

  • How can i add Facebook likes button on my mac mail?

    How can i add Facebook likes button on my mac mail?

    You must create a custom signature.
    Find a guide here

  • Moving object (like button, textfield ,label,.....)

    if I have an object in the applet area like (button , textfield, label,....) and if I want to move the object buy simply click on the object and drag it to move it.
    if someone a solution send to me on :
    "[email protected]"

    if I have an object in the applet area like (button ,
    textfield, label,....) and if I want to move the
    object buy simply click on the object and drag it to
    move it.
    if someone have a solution send it to me on :
    "[email protected]"

  • How to Insert special character like 'Б б В в Г Д  ж Ğ ğ € ₧ š Ž ž'

    Hi All,
    My database NLS_CHARACTERSET is ABLAUT and my sql client setting is AMERICAN_AMERICA.AL32UTF8.
    when i try to insert the special character like 'Б б В в Г Д ж Ğ ğ € ₧ š Ž ž' in oracle it shows question mark or square box
    can any one help me how to insert the above character and view the same in database while retrieving.
    Thanks in advance.
    By
    Chells

    I'm not sure.
    Perhaps UNISTR() or TO_NCHAR() will be helpful.
    select level, unistr(concat('\', TO_CHAR(Level, 'FM000X'))) from dual connect by level < 300;

  • Does anyone know how to delete a facebook 'like-button' code from 'EDIT' page of ADOBE CONTRIBUTE?

    Hello
    I cannot delete the 'LIKE' BUTTON icon from the 'edit' section of the user-interface in ADOBE CONTRIBUTE, can anyone please help?
    I can delete anything else from the page but the 'like' icons remain static and cant be moved or deleted, very bizarre, anyone know how to remove them?
    Thanks

    Did you look in that forum?
    http://forums.adobe.com/community/contribute

  • How to insert a pdf export button in a module

    Hi,
    I would propose a way for my students to realize easily a pdf export of one screen. The goal is that students save a file with a drag and drop exercice in order to re-use after.
    So, I tried :
    - Use a shape and execute Javascript, window.print(). I had think to say students to use pdf export instead of print. In my case, print works only in html5. In flash, only the background is displaying.
    - Use the print widget of captivate. It works but it's hard to use it. Student needs to edit properties to choose layout / paper size. Otherwise, some part of the screen are not displaying.
    So I'm looking a solution to insert a pdf export button. Idealy a student clicks up the button and screen will be export in pdf format.  I try this wdiget (http://captivatedev.com/2012/07/25/adobe-captivate-6-x-widget-dynamic-pdf-export/) but we can export only variables.
    Anyone has a good idea to share ?
    Best regards.
    Clément

    Thank you Pat. The thing is that i can´t upload any document to the web server because it belongs to "Jimdo". They give the option with a kind of Plugin and the Pdf comes directly from your browser to be download from the visitors, but it look ugly. That´s why I inserted a link to go to another page (different server) where I can upload documents. I think a need someone who know Jimdo.
    Thank you

  • How do I click the '1st' button in the character panel for texts?

    I'm having trouble figuring  out how to click the '1st' button in the character panel because i need to write 25th anniversary and needs the 'th' to be lowercase on the side. I'm new so please help! thanks.

    I think the availability of Oridinals depends on the font.
    Quote from the Reference:
    Typefaces include many characters in addition to the ones you see on your keyboard. Depending on the font, these characters can include ligatures, fractions, swashes, ornaments, ordinals, titling and stylistic alternates, superior and inferior characters, old-style figures, and lining figures. A glyph is a specific form of a character. For example, in certain fonts, the capital letter A is available in several forms, such as swash and small cap.
    But one can achieve something similar by changing the font size and baseline shift for the affected characters.

  • How to insert JSF component  between selectItems

    I want to implement a interface like below
    (HTML outputs)
    <inpu type="radio" name="type" value="1"> current <br>
    <inpu type="radio" name="type" value="2"> use my input <input type="text" name="other"><br>
    <inpu type="radio" name="type" value="3"> no
    but i cannot write code like this, for f:selectItem doesnot allow other components inserted in
    <h:selectOneRadio value="#{bean.type}" layout="pageDirection">
    <f:selectItem itemLabel="s1" itemValue="1"/>
    <f:selectItem itemLabel="s2" itemValue="2"><h:inputText value="other"/></f:selectItem>
    <f:selectItem itemLabel="s3" itemValue="3"/>
    </h:selectOneRadio>
    how to implement this?
    Thanks
    David.

    <h:outputText id="outputlabel1" value="LabelText"/></td>
        <h:selectOneRadio id="selecValue" value="#{backingBean.destinationValue}">
         <f:selectItems value="#{backingBean.selectionList}"/>
         </h:selectOneRadio>this is if you have a backing bean which contains a List of javax.faces.model.SelectItem's and the destination Value for your selection (of course the same kind of value).
    or
    <h:selectOneRadio id="selecValue" value="#{backingBean.destinationValue}">
         <f:selectItem id="val1" value="value1">
         <f:selectItem id="val2" value="value2">
         <f:selectItem id="val3" value="value3">
         <f:selectItem id="val4" value="value4">
    </h:selectOneRadio>I hope this helps and solves your problem. (if I got your question right =) ..)
    fb

  • How to insert special character like trademark and registered mark.

    I have tried using prepared statment, but characters like � (registered mark) are not inserted properly, in fact i tried using some debug statements before inserting. the data that is coming from html form fields it self shows that � - such characters are converted to ? . So on consol instead of � i see ?. How do I make sure that data passing from html form will pass � in a right manner and not ?. Also how do i insert these symbols in database

    What database are you using, and what is the character set use for storage in that database?
    What character set is your HTML page using?
    You may have a character set mismatch somewhere. The registered symbol � is character 174 in Unicode and LATIN-1, so it cannot be displayed using just the ASCII character set.
    If you have the character in a java String, it should be passed to the database properly with a PreparedStatement. Strings are Unicode in java.
    Scott
    http://www.swiftradius.com

  • How to insert ole object like word doc at runtime

    To insert word doc into crystal report

    Hi Vinod,
    To add an OLE object in reports follow the steps given below-
    1- In CR environment open a Report in which OLE object needs to be added.
    2- Click on insert and click on OLE object.
    3- A wizard pops up - choose appropriate file for e.g- Microsoft World Document.
    4- two buttons will be there-
    a> Create new - creates a new world document.
    b> Create from new - Includes a exsisting file.
    5- one more option is their in wizard -
    Show icon(check box) - shows the OLE object as an icon in report.
    6- Click on ok and place the object at required position in report.
    Hope it works.
    Regards
    Amit

  • Does any one know how to create "carousel-component" like in the attached link?

    In the link
    http://www.adobe.com/devnet/
    (under the "Features" tab)
    there is an element that is called "carousel-component" (I
    have looked in the sorce code and they call it that way...).
    I realy love it! I reffer to the element that enables the
    surfer to go next and previous to see more features...
    please help me...
    How can I make such thing?
    thanks in advance!

    I'm sure Adobe is going to make that available in their Spry
    collection. It
    is, however, very poorly conceived and can easily make
    content inaccessible
    if text is resized or set larger in a visitor's browser. I
    would advise
    using such a thing only if the content inside consists only
    of images.
    All that glitters (or flickers in this case) is not gold :-)
    Al Sparber - PVII
    http://www.projectseven.com
    Extending Dreamweaver - Nav Systems | Galleries | Widgets
    Authors: "42nd Street: Mastering the Art of CSS Design"
    "no far" <[email protected]> wrote in
    message
    news:fepc2e$hck$[email protected]..
    > In the link
    http://www.adobe.com/devnet/
    (under the "Features" tab)
    > there is an element that is called "carousel-component"
    (I have looked in
    > the
    > sorce code and they call it that way...).
    >
    > I realy love it! I reffer to the element that enables
    the surfer to go
    > next
    > and previous to see more features...
    >
    > please help me...
    > How can I make such thing?
    >
    > thanks in advance!
    >
    >

  • How to insert single colon xml text in the xml table

    Dear Sir,
    how to insert special characters like single colon text example (don't) xml text in to the xml table
    please see the following example its giving me error quoted string is not ended properly
    SQL> insert into ftr_ctl values (1,
    2 xmltype('<po:root xmlns:po="http://www.oracle.com/FC.xsd"
    3 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    4 xsi:schemaLocation="http://www.oracle.com/FC.xsd
    5 http://www.oracle.com/FC.xsd">
    6 <row>
    7 <UniqueIdentifier>urn:x-gcs:def:featureType:GFDD::FT_DFDD_100565</UniqueIdentifier>
    8 <AlphaCode>ZB032</AlphaCode>
    9 <Name>Baseline Point</Name>
    10 <Status>Submitted</Status>
    11 <Definition>A location that serves as a point on, and which partially defines a segment
    of, a national boundary baseline.</Definition>
    12 <Description>May be monumented or unmonumented. A national boundary baseline is used fo
    r defining the landward edge or margin of a nation's various contiguous zones such as the 3 and 12 n
    autical mile limits and the Exclusive Economic Zone (EEZ).</Description>
    13 </row>
    14 </po:root>'));
    ERROR:
    ORA-01756: quoted string not properly terminated
    how to solve single quotation like (nation's) in xml data insertion
    please give me reply as soon as possible
    Thanks
    Kabeer

    Hi,
    Use &#x7B;code} tags to post formatted code on the forum.
    That way, your code will be more readable for everyone, and more importantly here, everyone will be able to clearly see what's bothering you :
    &apos;sThe single quote was encoded with the character entity reference "&amp;apos;".
    The conversion is not mandatory but it happens Oracle is doing it in this case.
    It shouldn't be a problem though.
    If you want to extract the value afterwards, it'll come as expected :
    SQL> create table ftr_ctl (id number, doc xmltype);
    Table created
    SQL> insert into ftr_ctl values (1,
      2  xmltype('<po:root xmlns:po="http://www.oracle.com/FC.xsd"
      3  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      4  xsi:schemaLocation="http://www.oracle.com/FC.xsd
      5  http://www.oracle.com/FC.xsd">
      6  <row>
      7  <UniqueIdentifier>urn:x-gcs:def:featureType:GFDD::FT_DFDD_100565</UniqueIdentifier>
      8  <AlphaCode>ZB032</AlphaCode>
      9  <Name>Baseline Point</Name>
    10  <Status>Submitted</Status>
    11  <Definition>A location that serves as a point on, and which partially defines a segment of, a national boundary baseline.</Definition>
    12  <Description>May be monumented or unmonumented. A national boundary baseline is used for defining the landward edge or margin of a nation''s various contiguous zones such as the 3 and 12 nautical mile limits and the Exclusive Economic Zone (EEZ).</Description>
    13  <Alias xsi:nil="true"></Alias>
    14  <SourceItemIdentifier>100565</SourceItemIdentifier>
    15  <SourceReference>DGIWG DFDD BL 2011-1.00</SourceReference>
    16  <SourceURL>https://www.dgiwg.org/FAD/fdd/view?i=100565</SourceURL>
    17  </row>
    18  </po:root>'));
    1 row inserted
    SQL> select extractvalue(doc, '/po:root/row/Description','xmlns:po="http://www.oracle.com/FC.xsd"')
      2  from ftr_ctl
      3  where id = 1
      4  ;
    EXTRACTVALUE(DOC,'/PO:ROOT/ROW/DESCRIPTION','XMLNS:PO="HTTP://WWW.ORACLE.COM/FC.
    May be monumented or unmonumented. A national boundary baseline is used for defi
    ning the landward edge or margin of a nation's various contiguous zones such as
    the 3 and 12 nautical mile limits and the Exclusive Economic Zone (EEZ).
    {code}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • How to insert special character from Oracle form builder 10g

    Dear all,
    I need help. how to insert special character like 'Superscript or Subscript ' from oracle form builder 10g. I had try in Oracle form builder 6i with press ALT+ASCII code in the text item and it work, but in the oracle form builder 10g this method doesn't work... would you like to help me...somebody please...
    Best Regard,
    Dedy P.T.

    What do you mean by insert ... from Forms Builder? Do you mean you want to add it as text in a string of pl/sql code or as part of boiler plate text (label) or a value on the Property Palette?
    For special characters you would need set NLS_LANG to something that would support the characters you want to use. For the Builder to see the change, you would need to set NLS_LANG to something like:
    NLS_LANG=AMERICAN_AMERICA.UTF8
    This can be done in the Windows Registry or system. As I mentioned, this will only apply to the Builder and will have nothing to do with a running form. For running forms you would need to set this in default.env. As for things like super and sub scripts, these are font formats and not necessarily characters. For the most part, I don't believe these are supported in Forms.

  • Facebook like button integration after Facebooks July '13 migration

    I am trying to add a like button to blog posts at jayowenhouse.com. I am following the instructions here
    http://kb.worldsecuresystems.com/kb/add-social-media.html#main_Obtaining_the_plugin_code_
    Even using {tag_itemurl_withhost} the "like" button "likes" the entire domain not the individual blog post. It looks like this facebook social plugin update has messed up BC's system for displaying like buttons, comments etc. I am experiencing the same issue with the tweet button and facebook comments. Maybe Im doing something wrong..
    The Facebook developer page reads,
    "After July 2013 migration, the Like button required an absolute URL in the href parameter."
    The code in the tutorial does not have the absolute URL. How can I make my "like" buttons like individual blog posts with the absolute URL in the code that facebook gives me?
    I would appreciate any insight.

    I'm assuming your facebook module code looks like this then:
    {module_facebooklike,moduleTemplateGroup="Default",language="en_US",url="{tag_itemurl_withhost}",layout="standard",showFaces="true",width="300",verb="like",font="",colorScheme="light",s end=""}
    If this is not working i might suggest looking at the source code of the page you want to do this on. Check in the <head> tag and see if you have any <meta property="og:url" /> tags where the url provided is anything other than the specific url you want to like. If you do have such tag, remove it from your template, and only use it on pages you need the facebook like to work.
    If it's still not working I would suggest looking into http://www.addthis.com. It's worked better for me than the Business Catalyst social modules.
    I hope this is helping.

  • Facebook like button error

    Hi .
    I'm trying to insert the facebook like button as a html web content .
    I saved the html page using dremweaver , but when I start to upload the article using folio producer the indesign takes forever and freeze !
    here is the html code I'm using  , I created it using the facebook like button generator .
    please help!
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <html >
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    </head>
    <body>
    <iframe src="//www.facebook.com/plugins/like.php?href=http%3A%2F%2F3eesho.com%2Fmagazine%2Findex. html&amp;send=false&amp;layout=standard&amp;width=450&amp;show_faces=true&amp;action=like& amp;colorscheme=light&amp;font&amp;height=80" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:80px;" allowTransparency="true"></iframe>
    </body>
    </html>

    ok ,this is what I've been doing , step by step :
    1. I get the link from facebook like button generator  , I choose "iframe" code
    2. open a  dreamweave html file and paste the code I have after the <body>  , save the file as html .
    3. in the indesign ,I open a place holder " 450* 80 px " I changed the size as well  but nothing happened" , I use webcontent from the overlay panel , I choose the html file I already saved .
    4. I test the article in the content viewer on desktop and ipad , it appears as a white blank rectangle . nothing else !
    what's wrong??

Maybe you are looking for