How to display the fields,chkbox and a button

Hi All,
Here is the screen shot I may .
Can anyone let me know the code to display a chkbox, button, textfield and a Jlabel fields on the screen in swing.
Thanks
Smi

Minimalist exampleimport java.awt.*;
import javax.swing.*;
public MyFrame extends JFrame {
  private JLabel label;
  private JButton button;
  private JTextArea textArea;
  public MyFrame() {
    super("frame");
    label = new JLabel("label");
    button = new JButton("button");
    textArea = new JTextArea(10,10);
    Container container = getContentPane();
    container.add(label, BorderLayout.NORTH);
    container.add(textArea, BorderLayout.CENTER);
    container.add(button, BorderLayout.SOUTH);
    pack();
    setVisible(true);
  public static void main(String[] argv) {
    new MyFrame();
}

Similar Messages

  • How to display the fields in ALV Output without using Field catalog?

    How to display the fields in ALV Output without using Field catalog?
    Could you pls tell me the coding?
    Akshitha.

    Hi,
    u mean without building field catalog. is it? I that case, we can use the FM REUSE_ALV_FIELDCATALOG_MERGE.
    data: itab type table of mara.
    CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
    EXPORTING
    i_program_name = sy-repid
    i_structure_name = itab
    CHANGING
    ct_fieldcat = lt_fieldcat[]
    EXCEPTIONS
    inconsistent_interface = 1
    program_error = 2
    OTHERS = 3.
    *Pass that field catalog into the fillowing FM
    call function 'REUSE_ALV_GRID_DISPLAY'
           exporting
                i_callback_program      = gd_repid
                i_grid_title            = 'REPORTING'
                is_layout              = gt_layout
                it_fieldcat             = lt_fieldcat[]
           tables
                t_outtab                = itab.

  • How to display the field "Country" in the Address Book UI ?

    How to display the field "Country" in the Address Book UI ?

    Using an add-on, MoreFunctionsForAddressBook gives you that opportunity.

  • How to display the field name in the tabulated view for a content query web part

    I have added a content query web part changed the web part file to include custom columns imported and reffered itemstyle.xsl
    to include the tabulated view for the content query.
    However the way it is displayed is such that only the content is displayed.
    As i am using a tabular view wto display the data, i want to display their field names as well.

    Hi  ,
    According to your description, my understanding is that you need to display the field in the tabulated view for a content query web part.
    For your issue, please refer to the code as below:
    <xsl:template name="VendorCustomStyle" match="Row[@Style='VendorCustomStyle']" mode="itemstyle">
    <html>
    <table width="100%">
    <xsl:if test="count(preceding-sibling::*)=0">
    <tr>
    <td width="8%" valign="top"><div class="item"><b>Vendor ID</b></div></td>
    <td width="12%" valign="top"><div class="item"><b>Vendor Name</b></div></td>
    <td width="50%" valign="top"><div class="item"><b>Vendor Description</b></div></td>
    <td width="10%" valign="top"><div class="item"><b>Vendor Country</b></div></td>
    <td width="10%" valign="top"><div class="item"><b>Vendor Date</b></div></td>
    <td width="10%" valign="top"><div class="item"><b>Created By</b></div></td>
    </tr>
    </xsl:if>
    <tr>
    <td width="8%" valign="top"><div class="item"><xsl:value-of select="@VendorID" /></div></td>
    <td width="12%" valign="top"><div class="item"><xsl:value-of select="@Title" /></div></td>
    <td width="50%" valign="top"><div class="item"><xsl:value-of select="@Vendor_x005F_x0020_Description" disable-output-escaping="yes" /></div></td>
    <td width="10%" valign="top"><div class="item"><xsl:value-of select="@Vendor_x005F_x0020_Country" /></div></td>
    <td width="10%" valign="top"><div class="item"><xsl:value-of select="@Vendor_x005F_x0020_Date" /></div></td>
    <td width="10%" valign="top"><div class="item"><xsl:value-of select="@Author" /></div></td>
    </tr>
    </table>
    </html>
    </xsl:template>
    For more information, please have a look at the blog:
    http://www.codeproject.com/Articles/756834/Customizing-the-Content-Query-Web-Part-and-Item-St
    http://msdn.microsoft.com/en-us/library/ms497457.aspx
    http://clarksteveb.hubpages.com/hub/Customized-Content-Query-Web-Part-CQWP-in-SharePoint-2007-with-results-Tabbed-Grouped-and-in-an-HTML-Table
    http://blog.sharepointexperience.com/customitemstyle/
    Best Regards,
    Eric
    Eric Tao
    TechNet Community Support

  • How to display the fields in effective

    i have 10 fields names as name,add,code,no.seats......
    I have two choices those are Table, and other one is add fields and JScrollpane to a panel and display it.
    Can any one have other choices to display the fields effectively.

    You are only limited by your imagination. What sort of answer are you looking for?

  • How to display the current Date and time in xslt version 1

    i am using xslt version 1 .i want to display the current date and time in the output xml using xslt(Jdeveloper) ..i just added the namespace xmlns:xp20="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.Xpath20"
         xmlns:ns1="urn:oracle:integration:b2b:7D30046DC68A4FA689956D8241FA3B99">
    and used thsi function <xsl:value-of select = "xp20:current-date()"/>
    but it does not works for me ..help needed????
    Edited by: user9519185 on Jan 20, 2009 3:04 AM

    Use a formula: =NOW()
    Format the cell for Date and Time, with both the Date part and the Time part displayed. Format the two parts as you wish, using the choices in the Inspector's menus.
    The cell will update each time the table is recalculated.
    (Description is for Numbers '09 (Mac), Numbers for iOS will be similar, but not necessarly identical in details.)
    Regards,
    Barry

  • How to display the fields dynamically in OAF

    Hi All,
    I have developed a OAF Page and it has one table region and has 5 rows on it.One of the field on the table is Message Choice.
    The requirement is,If I select "Parts" then Lov Field should be displayed and If I select "Services" then one text field should be appear on that perticular table row.
    I have created a PPR on Message Choice and done the coding as follows,but it is not working;
    Please help me to achive it.
    if("lineChange".equals(pageContext.getParameter(OAWebBeanConstants.EVENT_PARAM)))
    String rowReference =pageContext.getParameter(OAWebBeanConstants.EVENT_SOURCE_ROW_REFERENCE);
    OARow row = (OARow)am.findRowByRef(rowReference);
    String claimCategory = (String)row.getAttribute("ClaimLineType");
    if ("Parts".equals(claimCategory))
    row.setAttribute("ClaimPartNoLovRender", Boolean.TRUE);
    row.setAttribute("ClaimPartNoRender", Boolean.FALSE);
    else
    row.setAttribute("ClaimPartNoRender", Boolean.TRUE);
    row.setAttribute("ClaimPartNoLovRender", Boolean.FALSE);
    Please let me know if there are any other ways to achive the same.
    Thanks in Advance..

    You might have the wrong forum. This forum is on IOP.

  • How to display the fields using field catelog in ALV Report

    Hi,
    I have rquiremrnt in ALV report.I would need to add the new fileld in the ALV output screen.I have added the field but its appearing in the layout set but not directly displaying in the output screen.
    I have written the below logic for field catelog.
    CLEAR wa_fieldcatalog.
      wa_fieldcatalog-fieldname   = 'LOGGR'.
      wa_fieldcatalog-ref_tabname = 'MARC'.
      wa_fieldcatalog-col_pos     = l_pos.
      wa_fieldcatalog-outputlen   = 13.
       wa_fieldcatalog-seltext_s   = 'Log. group'.
      wa_fieldcatalog-seltext_m   = 'Logistics group'.
      wa_fieldcatalog-seltext_l   = 'Log. handling group'.
       wa_fieldcatalog-reptext_ddic = 'Log. handling group'.
      APPEND wa_fieldcatalog TO it_fieldcatalog.
      l_pos = l_pos + 1.
    Please let me know why the added field was not displaying automaticaly in the output screen.
    Regards,
    Reddy

    hi,
             try this
    clear wa_fieldcatalog.
    wa_fieldcat-tabname       = 'ITAB' ( give the internal table which has the field LOGGR)
    wa_fieldcatalog-fieldname = 'LOGGR'.
    wa_fieldcatalog-ref_tabname = 'MARC'.
    wa_fieldcatalog-col_pos = l_pos.
    wa_fieldcatalog-outputlen = 13.
    wa_fieldcatalog-seltext_s = 'Log. group'.
    wa_fieldcatalog-seltext_m = 'Logistics group'.
    wa_fieldcatalog-seltext_l = 'Log. handling group'.
    wa_fieldcatalog-reptext_ddic = 'Log. handling group'.
    APPEND wa_fieldcatalog TO it_fieldcatalog.
    l_pos = l_pos + 1.

  • How to display the height, width and resolution of an EPS file

    Hi friends,
    I have to do a small module.. in that I have to display height, width and resolution of a given EPS file..
    please help..
    Thank you very much..
    Regards,
    krishna.

    Hi friends,
    I have to do display the resolution of an eps file..
    I have to use only Java.
    Can any body know the eps file format...
    I searched through net but I didn't find any best tutorial for that format..
    I am able to find the height and width from the eps file..
    By just opening that eps file.. I found %%Bounding box height width....as in some post posted by our jive member...
    In this way, is there any way to find the resolution..
    if any body knows this details.. please post.. Even if you have the file format tutorial post that one..
    Thank you.
    Regards,
    Krishna.

  • How to remove the standard Exit and Help buttons from the iviews

    Hi All,
    We migrated the ESS application from standalone ITS based on 4.6c to ECC 6 based Integrated one.  After converting that into ICF service and when we created the iview for it in the portal(EP 7)  It is showing two hyperlink items EXIT and HELP by default at the top of every iview.  So, Can anybody tell me how to remove them from visibility.
    And also, the iviews are not showing the table grids etc in the integrated environment.  Is there any change that need to be done, for getting the table grids and all to look as it is in the previous envoronment.
    Thanks & Regards,
    Ravi

    Hello Ravi,
    You should be aware that many of the ESS transaction are not supported on the Integrated ITS, see note 870126 for more details.
    To remove the "Exit" and "Help" you can use the ~webgui_simple_toolbar parameter, please see note 1010519. 
    Some tables have an option to show the gridlines or not.  Please see if there is a table options icon in the upper right of the table to change the configuration.  I'm not sure if what kind of table you're referring to so it may or may not be available.
    Edgar

  • How to relocate the Minimize, Maximize and Close buttons on the window

    I am a right-hand user, and would prefer if all my Minimize, Maximize and Close buttons on the window are relocated to the right hand side of the window. Anyone got any suggestion to do it ?

    This is just something you end up getting used to, at least it was the case for me.
    It is not possible to move this, without the help of third-party software.
    ShapeShifter is offers customisation of the look of the Windows, but I don't know if it can move the buttons.
    http://www.unsanity.com/haxies/shapeshifter
    But I don't know if it is compatible with Leopard yet.

  • In a query, how to display the calendar day and the weekday in the heading

    Hi Experts,
    I am in a situation where I need to have calendar day and the weekday in a heading of a column in a query? we are in BW 3.5.
    Here is an example:
                         04.22.2007
                         Sun
    Branch 001      1,000.00
    Branch 002      2,000.00
    Branch 003      3,000.00
    in my query, this is a restricted key figure with sales qty and calendar day and I have a text variable to show the calendar day. In addition to that, the customer wants weekday as well.
    Not sure how to do this.
    Any help is much appreciated.
    Thanks.
    Jenny.

    Hello ,
          This InfoObject do not maintain the weekday ...so it is difficult to show the Weekday for a date as per the standard way.
              You need to write a Customer exit variable..and you need to use a Function Module : DATE_TO_DAY. This will convert your date to day ie 23.04.2007 = Monday.
          Note: This function module is not available in BW so try to copy this FM from R/3 system.
          I am sure this will solve ur issue:-)
                    --EnjoySAP
    Have a great day!

  • HOW TO DISPLAY THE FIELDS IN ORACLE

    MY PROBLEM IS
    I AM HAVING TWO TABLES IN DATABASE
    1 ST TABLE NAME IS POT_FORCAST_MST
    2 ND TABLE NAME IS POT_FORCAST_TRANS
    I WANT TO SELECT ALL FIELDS FROM 1 ST RECORD AND THE RECORD COUNTS FROM SECOND RECORD OF PARTICULAR FIELD
    WHAT IS THE QUERY PLS GIVE SOLUTION?

    > MY PROBLEM IS
    Your problems are:
    - the fact you write everything in CAPITALS. Please
    don't.
    - in all your previous post (only 4, but still) you
    never answered a question opposed by someone who was
    trying to help you, or thanked anyone who answered
    you.As long as we are correcting English, 'opposed' should be 'posed'. There should be a comma after your closed parenthesis. Your final clause does not require a comma before 'or'. The article 'a' should instead be 'the'.
    - Saish

  • How to get the class name and field name dynamically

    Hi
    I have a class (ex: Contract) the fields (ex : a,b,c) .i need to get the class name and field name dynamically
    ex
    if( validation file for the field Contract.a){
    return contract.a;
    }else if(validation file for the field Contract.b){
    return contract.b;
    how to pass the field name and object dynamically
    Please help me .............
    Thanks in Advance..
    Edited by: 849614 on Aug 11, 2011 6:49 AM

    YoungWinston wrote:
    maheshguruswamy wrote:
    Agreed, but IMO, i still feel its best if there is no tie in between consumer class level details and the database it talks to. A service layer is needed in between them.Sounds like you've done a bit of this before. Me, I've either been a modeller/DBA, doling out data, or a nuts and bolts programmer (and actually more toolmaker than apps, but did a bit of that too).
    Do you know of a good book about the "middle ground" (ie, these service layers)? I understand it empirically, but haven't had a lot of exposure to it.
    Winston
    Edited by: YoungWinston on Aug 11, 2011 10:34 PM
    PS: Apologies. Edited my previous post, presumably while you were composing your reply, when I finally realized what '.filed' meant.Most of my work is in web development, never been a DBA :) . The biggest 'concern' in my shop is 'separation of concerns'. The UI group reports up to a different IT head, the DB group reports up to a different IT head and so on. The looser the coupling between these systems, the lesser the project costs (Integration, QA etc) are. Martin Fowler's books contain good information about separation of concerns in an enterprise environment. The two books which i recommend are
    [url http://www.amazon.com/Patterns-Enterprise-Application-Architecture-Martin/dp/0321127420]Enterprise Application Architecture and
    [url http://www.amazon.com/Enterprise-Integration-Patterns-Designing-Deploying/dp/0321200683/ref=pd_sim_b_1]Enterprise Integration Patterns

  • How to determine the field size

    I am going to make a multiplatform application that hopefully
    will run on linux and windows 2000.If the os is 2000, then I will use
    vb.net/aspx else I'll use java servlets. I make the connection
    to the web server ( through HTTP) not directly to database server.
    So, the resultset will be stored in the String object. The columns
    will be separated by delimeter. Our problem is how to determine
    the size and type of the fields of mssql,oracle and postgres database
    so that we can include it in the String object.
    Ex.
    String sResultSet=new String();
    ResultSet rs=statement.executeQuery(sSQL);
    while(rs.next()){
    sResultset=sResultSet + rs.getString(field1) + "||" + rs.getString(field2) + "||";
    vertical bars acts as delimeter
    supposedly this is the code:
    sResultset=sResultSet + rs.getString(field1) +"_" + rs.getFieldType() + "_"+
    rs.getFieldSize() + "||" + rs.getString(field2) +"_" + rs.getFieldType() + "_"+
    rs.getFieldSize() + "||";
    supposedly this is the code if rs.getFieldType() and rs.getFieldSize() methods are existing
    Anyone can give me an idea how to get the field type and field size of the database?
    thanks in advance

    Yes, but I dont know how to do it.
    Can you give me an example of using it.
    Thanks in advance

Maybe you are looking for

  • Active directory vs OID

    Hi, Can anyone please give me pros and cons of using active directory vs OID. We are in process of centralizing tnsnames.ora. Thanks in advance!

  • C   RunTime Error CS5.5?

    Hi, When I try to start any program from my Adobe CS5.5 I suddenly got the error-message "C++ RunTime Error", what´s the solution for this message? /Micke

  • Back volume too small after permissions repair

    Obviously 220 Gigs of data have been modified, only 75 are free on my external h.d. Can I avoid deleting all older backups and start again from the scratch? Thank you! Peter

  • Creating signed AcroPdfLib etc Dlls

    Hi, I'm attempting to use the Adobe Activex controls to view PDFs in a winforms project (actually WPF, but I'm willing to use the winforms host). The problem I've run into is that the project I'm using this in is signed, and so I need to sign the fol

  • My iMac keeps getting stuck while restarting due to an OS update

    My OS is trying to update, but it won't complete and is stuck halfway through. The computer won't turn on because the update won't finish