How can I build a composite component?

I heard that Java Swing can support composite component, meaning combining several component's
functionalities onto one component. Does anyone know
what class and methods I should choose to build such
a component? Thanks for helping!

Hi,
I use JPanels to construct composite components.
Create a subclass of JPanel, for example as follows:
public class NameField extends JPanel {
    private JTextField tf;
    public NameField() {
        setLayout(new BorderLayout());
        add(new JLabel("Name:"), BorderLayout.WEST);
        add(tf = new JTextField(10), BorderLayout.EAST);
    public String getName() {
        return tf.getText();
}Now use can use this NameField component wherever you like. You could make much more complicated components, of course.
Henri

Similar Messages

  • How can i build a manchester coding in labview signal processing?

    how can i build a manchester coding in labview signal processing?
    mean to say that how can i digitize my audio input.i waqnt to convert my audio input into manchester coded data format!!!
    kindly post related VIs
    regards
    Solved!
    Go to Solution.

    idma-
    Check out the LabVIEW FPGA example http://zone.ni.com/devzone/cda/epd/p/id/6126
    Generate Manchester Signal
    Basic example showing generation of a Manchester encoded data stream. The data to be sent is generated in one loop and passed to a FPGA FIFO. The subVI which generates the Manchester data stream reads the data bytes form the FIFO and passes them to the digital output. The subVI prepends a simple header to each data packet which allows a reader (see next example) to synchronize and acquire/parse the data. The header consists of a thee half bit pulse followed by a one half bit pulse. The three half bit pulse is not a valid component of regular Manchester encoding and can therefore be differentiated from the rest of the protocol. In addition it can be used by the receiver to to easily measure the bit rate of the protocol. By dividing the length of the three half bit pulse in half (3/4 of a bit), the receiver has a measure to differentiate between full and half bit pulses in the rest of the protocol.
    Generate and Read Manchester Signal
    An extension of the previous example which adds a Manchester receiver subVI. You must physically wire the digital output channel to your input channel to loop back the data outside the I/O connector of your FPGA R series card or C series module. The Manchester receiver subVI is expecting the data packet to be prepended by a header as explained in the previous section.
    I will see if the is a more precise example but this should help
    Sam S
    Applications Engineer
    National Instruments

  • 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?

  • How can I include a portal component look and feel in a java servlet

    Does any body know how can i include a portal component look and feel (tables, buttons, etc) in a java servlet?

    Hi José,
    I don't think that is possible. But you can import the css files that ep uses for its look and feel and try to give your web pages similar look and feel. The tables and other controls used in EP are totally different and are done through complex JavaScript coding instead of simple HTML tags. If you want exact lok and feel then i thin you must go for a Webdynpro based application rather then a J2EE application with JSPs.
    Regards,
    Guru.
    PS: Give points for helpful replies.

  • How can I build a LabView application that uses the 2012 runtime, on a development system with LabView 2013 or 2014 installed?

    I need to build a LabView application .exe to run with the 2012 Runtime, for legacy support. I currently have LabView 2013 installed on my development system, and have 2014 available. How can I build an application that uses the 2012 runtime on this development system? Do I have to downgrade to 2012? Thank you.

    We have existing customers that have installed our application that was originally built with 2012 (provided by a contractor that is no longer available).  Due to IT regulations, it is far easier to update these customers by simply replacing the .exe file, than creating an install that their IT department must run.
    If I have to downgrade to LabView 2012, where can I get the installation for this?

  • How can i build RPMs file for my own Java Application?

    How can i build RPMs file for my own Java Application?....I have my own directory that contains all Java Source files and some files that my Application required....I want to build RPMs file like a install File to Linux System, Now my OS is Linux Fedora core 1.....How can i do this?

    I think that in order to create a RPM, you'd need to
    use some C.Nope - the RPM is all about packaging and the "magic" x.spec file. You can have anything you want in the RPM, but you have to use RPM tools to build the .rpm file. One of the features is that you can also indicate (via "install" scripts) modifications to other files or the filesystem to support the installation of whatever's in the RPM.

  • How can i build table with two user name columne  ?

    How can I build view with two columns for user name ( one create and the other
    Can change also ) 
    And to display full name ( the user name is the key but not display  ) ?

    Hi,
    Creating View
    •     From initial screen of data dictionary(T.Code: SE11), enter the name of object i.e. view.
    •     Select view radio button and click on the push button.
    •     Dialog box is displayed for types of views.
    •     Select the view type.
    •     On the next screen, you have to pass following parameters.
    •     Short text
    •     In the table box you need to enter the table names, which are to be related.
    •     In join table box you need to join the two tables.
    •     Click on the TABFIELD. System displays the dialog box for all the table fields and user can select the fields from this screen. These fields are displayed in the view fields box.
    •     Save and Activate: When the view is activated, view is automatically created in the underlying database system. As long as the table exists in the database, the view also exists (Unless you delete it).
    Regards,
    Bhaskar

  • How can you build time series measures in OBIEE without using TODATE AGO fu

    How can you build time series measures in OBIEE without using TODATE and AGO function?
    Please provide steps to build time series
    measures in OBIEE without using TODATE and
    AGO function. Dashboard results not storing
    in cache when using TODATE and AGO functions.
    eventhough its cached users queries not
    hitting cache because queries doesn't match
    exact date time when using TODATE and AGO
    functions. so I want to build queries using
    sysdate and some simple calculations. Please
    send your inputs/ideas for my questions..
    Thanks in Advance

    This can be using Msum function in answers. Use the following formula, here dollars is my metric. Change the formula based on your metric.
    Msum("Sales Measures".Dollars ,2) - "Sales Measures".Dollars
    the report will be cached and better performed compared with time series. check ti
    - Madan Thota

  • How can I execute method of Component for name

    Hello,
    My program has JInternalFrame with some components. Write me please - how can I execute method of Component for name of Component ?
    Like this:
    ... findObject("jTextArea1").cut();
    Thank you in advance.

    just cycle through the container's components until
    you find one where getName equals "jTextArea1"Thank you for your answer.
    I'm creating components in runtime (I add panel+JTextArea in JTabbedPane) and I don't know how many components will be in JTabbedPane.
    I know only it's names.
    I wan't to execute metod JTextaRea_n_.cut() via using JTextaRea_n_.Name.
    How ?

  • How can i build a java parser/interpreter

    How can i build a java parser/interpreter
    i know java offers a tokenizer, how can i use it for build a parser or interpreter that recognize tags like this:
    <query db="db1" select="row1, row2">
    and then perform some actions

    how can i use it for build a parser or interpreter that recognize tags like this:A compiler design class would help understand the issues involved.
    Or as suggested if you are merely trying to parse XML then there are variety of existing solutions.
    Of if not XML and you already understand the principles of compiler design (formally or perhaps with experience with lexx/yacc) then you could use JavaCC
    http://www.webgain.com/products/java_cc/

  • How can I know the right component for a transaction?

    Hi, I have a question
    When creating a new message in Solution Manager, notif_create, how can I know the right component given the transaction code or program name?
    Thanks in advance
    Edited by: María Valdés on Aug 19, 2008 6:25 PM

    Hello Maria,
    Well, in the Support Message window, place the cursor in Component box and press F4. This will brings up another window which contains the components list to which you are authorized. From that list you can choose about which component you want to create that particular support message.
    For example, if you are from Quality department, the following can be visible when you press F4.
    QM - Quality Management
      -- QM-ADB Adobe Forms
           -- QM-ADB-PRN Print Forms
      For the Print Forms, the component will be QM-ADB-PRN
    I hope it helps.
    Cheers,
    Satish.

  • How can I build Windows Like Help In Oracle Developer ?

    Could anyone help me by giving the information that how can I build a windows like help system ?
    Thanks In Advance.
    Saiful Alam

    I remember that in Oracle Develope 6.0 demos there are lots of this kind of help,but I don't know how to do it.If u can solve this problem,pls post it.

  • How can I build and run CDC in Red Hat Linux?

    I downloaded the CDC and CVM(j2me_cdc_fp-1_0_2-src.zip), and wanted to build a VM in Red Hat Linux. But I can't find the Makefile in the "build" directory. How can I build it?

    You should be able to run a J2SE VM with the CDC jar as the bootclasspath, I think.

  • How can I build a sum of two rows in a CNiReal64Matrix?

    How can I build a sum of two rows in a CNiReal64Matrix?

    You could copy the two rows that you want to add into two CNiReal64Vectors via CNiReal64Matrix::CopyRow, then add the two CNiReal64Vectors via CNiReal64Vector::Add or CNiReal64Vector:perator+.
    - Elton

  • How Can I Build Mailing List Portlets?

    I want to make a portal with a mailing list portlet. I need to know how can I build the servlet for my apache server.

    By a mailing list portlet, do you mean a portlet where users can sign up for different mailing lists, or do you mean a specific mailing list that would archive all the messages sent to the list?
    In any case, if you have an existing application that manages a mailing list (like a list on listbot.com), one of the options you could investigate is to integrate that application as an External Application to Portal and leverage the Single Sign On capability.
    null

Maybe you are looking for

  • Problem with nokia n95 lcd. Black screen and flex ...

    Hi i have a nokia n95. I have it since its first year in the market. I am very pleased with the phone but the last month sudenly when i slide to open the phone's screen was not responding. The actual phone was working great. I could receive calls and

  • Oracle 11g XE and SQL Developer

    Hello: Very new here.  I'm not sure where to post anything.  Apologies, but I'm all over the board. I've installed 11g and downloaded SQL Developer (not even sure if this needs to be "installed" as it's just a zip file). Anyway, at the SQL command li

  • Joining two tables with different DB

    Hi We have 2 sources DB2 and Oracle. In DB2 we have two tables which stores. Tbl1 Case_no     Information1     Information2     Information3 11112     sddf     asd     null null 11113     asd     asd     null null Tbl2 Inf     Info1     Code     Info

  • Adobe Creative Suite cs6 downgrade to 5.5

       Good morning, 1. if we buy  CS6 Design and Web Prem 6 can we downgrade to 5.5? our company use cs5.5. 2. If this is possible how can we do it? 3. If downgrade to cs.5.5 (if possible) and we want to get back cs6 (1 year... using cs5.5) we need to p

  • Problems uploading photos to Inkfrog

    The new Firefox version seems to be causing problems with image uploading on the Inkfrog site. I get a simple 'error in upload' message and the upload is aborted.