How to set currency template in CT04

I'd like to ask a question about how to set currency template in CT04
Coz i have a material classification --- cost
i'd go to CT04 to create ...set data type is CURR Currency Format
but i don't know how to set the template if i want to show like this
<b>HKD 99,999,999.99</b>
coz if i didn't set any template , it will automatically ...show 99,999,999.99 HKD
THX

Hello,
In the transaction CJ02 on the "Basic data" tab you have a field Proj. currency which you can change.
Regards
Marek

Similar Messages

  • How to set a template to multiple pages

    Hello,
    I'm using Oracle Portal 10.1.2.0.2 and I've created a hiearchy of pages and a template with regions for banner, navigation portlet and content area and I want to set up this template to multiple pages. Manually and uncomfortably, I can edit my page and in [Template] tab in [Properties] select my template. But how can I do it for example for a whole page group? Default template for page group doesn't work for me - though I've set up it in page group, in a particular page I still see [Page template]=none with no effect. Is it possible to do it through some sql query? (With specification of region, in which the page will be mapped?)
    Thank you for your advice,
    tb

    Observation:
    Pages from one page group can't see templates from another page group. In case of multiple page groups I have to put my templates in [Shared objects]. Unfortunately I didn't find a way (if even exists) how to copy template from one page group to another, especially to shared objects :(

  • How to set currency symbol correctly in crystal report

    Hi all,
    I am using the Crystal Report 2008, I have one issue regarding the currency symbol in the crystal report.
    it seems the CrystalReport use the System Default currency symbol. e.g.
    ProductA Cost: $1000
    It displays,
    ProductA Cost: £1000
    in euro locale and $ in english locale
    It doesn't make sense in business. The question is how do we set the currency symbol "$" to the report? I google some websites, the SetLocaleInfo may be one option, I would like to know the detail and if there are more solutions.
    Thanks for your help

    Before in our legacy application, we used Crystal Report 9 & VB
    'Crystal Report Designer Components (RDC).
    Set CrxApp As New CRAXDRT.Application
    I can set the crxapp to nothing and recreate this design component.
    Set CrxApp = nothing
    After SetLocaleInfo, if we set the CrxApp to nothing, it will create the RDC and the currency symbol will be updated.
    Now we are using Crystal Report 2008 and C#, the RDC is not supported in 2008
    What can I do?
    Any input is greatly appreciated.
    Edited by: Dennis Zheng on Feb 17, 2009 3:57 PM

  • How to set "choose template" as default when open pages?

    Hi,
    I am new to pages/numbers/keynote. My pages starts with the document browser and not with the "choose template" menu. However, on my second account this is not the case, here it starts with "choose template". Anyone knows how I can change this?
    Thank you very much in advance!
    danipas

    I have set my Pages'09 to open to a standard template, as prescribed, however, every time I open a new document it asks me to chose a template or start a new document. Pages'09 used to just open to the document, with my chosen template, automatically. Is there a way to fix this? The template that I created is what I want 99.99999% of the time.

  • R12 - check printing : How to set RTF template for preprinted stationary

    Hi all,
    We are on R12 instance and have requirement of check printing on preprinted stationary. For this requirement we are customizing standard RTF template.
    Preprinted stationary layout is like upper part ( check nmber, check date) then body part ( invoices details ) and then trailer part ( check amount, supplier name)
    Problem: When I am printing check against only one invoice then print is coming properly but if I print check against more than one invoice then trailer part (check amount, supplier name) is moving forward. I want trailer part to be fixed on same position.
    If anyone have already done this please guide me.
    Thanks n advance,
    Mandar
    Edited by: MS on Aug 26, 2010 8:29 AM

    Try to put them in a Table Columns.
    I Hope they will not move...
    Thanx,
    Deepak

  • How to Set Report Template for CRDesigner control 11.5 (RDC control)?

    Hai,
    I am using the CR Designer control (CR XI R2 RDC) in VB6.0. I have crystal report templates available in Web Server.
    want to load these templates in CRDesigner control through VB6.0, Is it possible?
    Thanks
    Kesavan
    Edited by: kesavan1986 on Jul 22, 2010 8:12 PM

    It does not matter where the reports are. If you can open them up in the CR designer (crw32.exe) you can open them using any CR SDK.
    RDC samples are here:
    https://www.sdn.sap.com/irj/boc/businessobjects-samples
    RDC Developer Help File:
    C:Program FilesBusiness ObjectsCrystal Reports 11.5Helpen
    dcsdk_com_dg_docdoc
    dcsdk_com_dg.chm
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup

  • How to set the table input in Query template?

    Hi all.
    I need to call a Bapi_objcl_change, with import parameter and a table as an input. I have done this, in BLS. I have set the table input in the
    form of xml. In BLS, I get the output(the value gets change in SAP R3, what i have given in BLS).  But if i set the same xml structure  in
    query template, I didn't get the output. Table input parameter does not take that xml source.  How to set the table input in Query template?
    can anyone help me?
    Regards,
    Hemalatha

    Hema,
    You probably need to XML encode the data so that it will pass properly and then xmldecode() it to set the BAPI input value.
    Sam

  • How to set parameter in rtf template

    Hi,
    I've created a data model query using a parameter in BI Publisher Enterprise. When I'm showing the data I'm first ask for the parameter value.
    Now I want to create a rtf template in BI Publisher Desktop. What do I have to do that the user can set the parameter and then see the result? So how to set the parameter in my query?
    Thanks
    chrissy

    Hey Chrissy... i am realy sorry, i have guided u in the wrong way...
    Above which i have explained was about Variable....
    To test passing a parameter value, ff you are using the:
    XML Publisher Runner – on the Setting tab enter a new line containing:
    Name: xslt. InvThresh
    Value: 1000
    Template Builder
    In the config file under <<TEMPLATE_BUILDER_HOME>>/config enter under the Properties section:
    <property name="xslt.InvThresh">1000</property>
    <xsl:param name="InvThresh" select="0" xdofo:ctx="begin"/>
    InvoiceNumber     Inovice Amount
    Grp: Invoice13222-2     $100.00EFE
    Grp: Invoice= <?for-each:G_INVOICE_NUM?><?if:ACCTD_AMT>$InvThresh?>
    13222-2 = <?INVOICE_NUM?>
    $100.00= <?ACCTD_AMT?>
    EFE = <?end if?><?end for-each?>
    Hope this will help u out....
    sorry for tht .....
    Thanks
    Praveen Gollu.

  • How to set border lines in table and also in template in the smartforms ?

    How to set border lines in table and also in template in the smartforms ?
    As I have to create table with following detals
    total row = 3
    row1 = 3 column
    row2 = 6 column
    row3 = 9 column
    for 2nd and 3rd row data to be fetched using coding.
    so can anybody explain me what should i use
    Table or Template ?
    and I want the border like excel format.
    Can anybody suggest me ?
    Thanks
    naresh

    if the data is multiple i.e. line items choose table.
    if the data is single i.e. fixed choose template.
    Create table
    >  Draw u r no lines
    > choose option select pattern
    > select display framed patterns
    Choose u r required one.
    out lined, or full lined. u can choose option.
    same procedure to be followed for template also.
    with regards,
    Kiran.G

  • How to set password on email body in custom Email Template

    Hy,
    I have a Email Template customized in Email Definition>Design Console.
    I need send this 'Email Template' with the password user, but I don't know how to set the variable 'password' in the body of email.
    I searched in Varables>Targets>Variables, but I not found any think variable like password.
    Some has a idea about this? How to set password on email body?
    Regards,
    Piza

    You can use custom Java code. Refer the following:
    Email notification to users after they change their OIM password

  • How to set Password change in Web templates through WEB DYNPRO

    Hello All
    Before dropping my question i will explain you what was the Real scenario, i am using WAD 3.50 Version and server is BW 3.0B.we are not using portal, and Enduser will view the reports in the browser through the WAD execute Http link.
    Question.
    whenever the enduser uses Http link of web template in the browser, he will connect through VPN and they can able view the reports. the question is That Some system Enduser won't have SAPGUI in their system so they wants to change the password because they won't know even if it is expire. is it possble to set password change system through WEBDYNPRO ABAP in the WEB Templates
    Please Help me how to set Change Password in the browser for the WAD Application.

    To do this you will have to use either make use of portal or BSP application or Dynpro..
    It is not possible for the user to change the password just from the web query

  • How to set local currency in AR/Invoice through DI API SAP B1?

    Dear Expert,
    I am using DI API to add AR/Invoice document, but I can't find how to set local currency for BP with foreign currency.
    This my code snip :
            oSO = oCompany.GetBusinessObject(BoObjectTypes.oInvoices)
            oSO.DocDate = dtpPostDate.Value
            oSO.DocDueDate = dtpDueDate.Value
            oSO.TaxDate = dtpDocDate.Value
            oSO.Series = cSeries
            oSO.DocNum = txtNumber.Text
            oSO.DocCurrency = doccur
            oSO.CardCode = txtBP.Text
            oSO.CardName = txtName.Text
            oSO.ContactPersonCode = cntctCode
            oSO.JournalMemo = txtRemarks.Text
            For i = 0 To dgv.RowCount - 2
                oSO.Lines.SetCurrentLine(i)
                oSO.Lines.ItemCode = dgv.Item(0, i).Value
                oSO.Lines.ItemDescription = dgv.Item(2, i).Value
                oSO.Lines.Quantity = dgv.Item(4, i).Value
                oSO.Lines.Price = dgv.Item(5, i).Value
                oSO.Lines.DiscountPercent = dgv.Item(6, i).Value
                oSO.Lines.TaxCode = dgv.Item(7, i).Value
                oSO.Lines.LineTotal = dgv.Item(9, i).Value
                oSO.Lines.Currency = doccur
                oSO.Lines.Add()
            Next
            lRetCode = oSO.Add()
            If lRetCode <> 0 Then
                oCompany.GetLastError(lErrCode, sErrMsg)
                MsgBox(sErrMsg, 16, "Attention")
            Else
                MsgBox("Operation completed successfully.", 64, "Information")
             End If
    When trying to Add, system show error message " Enter valid currency code [OINV.DocCur][Line:1], '$' "
    I am not lucky after trying for a day , wish enlightenment from the experts here, Thank you.
    My machine : SAP B1 9 PL 4
    Best Regards,
    Muh.Ulfah

    Hi
    In the other thread I suggested that you can add document using interface first because there is a possibility that B1 doesn't accept this currency code not because you set it improperly in your code but because of some other reason, for example this currency is not valid for this particular business partner. Despite the fact that this way you can eliminate other possible problems you can also use DI to save an existing document as XML and check what is the actual currency code that B1 itself placed in the document lines object.
    Afterwards you can again try to add document using DI.
    btw
    check this thread:
    How to set local currency in sales order for BP with foreign currency through DI?
    Kind regards,
    Radek

  • How to set default currency and Country in R12 financial modules

    Hi all,
    How to set default currency and Country in R12 financial modules (AR,AP,GL,FA,CE) becuase I found some default settings are shown "USD" & "United States" such as create AR Customer, the Country is shown the default "United States"....
    Can anybody advise ?
    Thanks & Regards,

    Hi,
    Change the below profile for the user to a territory different than the US :
    In System Administrator, navigate to Profiles -> System.
    Select Site, Application, and Responsibility.
    Profile options:
    Default Country
    HZ: Reference Territory
    ICX: Territory
    Regards,
    Raju.

  • How can set a customized search results template and all users see it

    Hi all ,,,,
    I Added new costume template search result
    And when I added this template it’s added only for the user how created this template ,And I need all users see and use this template can anyone tell how I can add template for search result and all users see it or if I can do synchronies for this template.

    I wasn't able to understand what was meant by this post. Therefore, I modified the standard template HeadLine View.
    Columns for this template are defined in the include slim_search_result_table_header_setup (in std_page.htm).
    Here is the modification of the code:
    <$if customTemplateId and not (baseTemplateId like customTemplateId)$>
              <$columnsString = utGetValue("customlisttemplates/" & strLower(customTemplateId), "columns")$>          
              <!-- Modify START by Oracle-->
         <$else$>
    <!-- here add default fields -->
              <$columnsString="dDocName,dDocTitle,dInDate,dDocAuthor"$>
    <!-- here add your custom fields -->
              <$columnsString=columnsString&",xComment"$>
              <!-- Modify END by Oracle-->
         <$endif$>

  • How to set a   background for jFrame?

    Hai.i have a code for background image.i.e
    * TextOver.java
    * Created on June 23, 2008, 1:53 PM
    * To change this template, choose Tools | Template Manager
    * and open the template in the editor.
    import java.awt.Dimension;
    import java.awt.Graphics;
    import java.awt.image.BufferedImage;
    import java.io.IOException;
    import java.net.MalformedURLException;
    import java.net.URL;
    import javax.imageio.ImageIO;
    import javax.swing.JFrame;
    import javax.swing.JPanel;
    import javax.swing.JScrollPane;
    import javax.swing.JTextArea;
    public class TextOver
    private static final String IMAGE_PATH =
    "http://upload.wikimedia.org/wikipedia/commons/b/b5/HMS_Cardiff_%28D108%29_1.jpg";
    private BufferedImage image;
    private JTextArea textarea = new JTextArea(20, 40);
    private JPanel mainPanel = new JPanel()
    @Override
    protected void paintComponent(Graphics g)
    super.paintComponent(g);
    if (image != null)
    g.drawImage(image, 0, 0, this);
    public TextOver()
    URL imageUrl;
    try
    imageUrl = new URL(IMAGE_PATH);
    image = ImageIO.read(imageUrl);
    Dimension imageSize = new Dimension(image.getWidth(), image.getHeight());
    mainPanel.setPreferredSize(imageSize);
    JScrollPane scrollpane = new JScrollPane(textarea);
    textarea.setOpaque(false);
    scrollpane.setOpaque(false);
    scrollpane.getViewport().setOpaque(false);
    mainPanel.add(scrollpane);
    catch (MalformedURLException e)
    e.printStackTrace();
    catch (IOException e)
    e.printStackTrace();
    public JPanel getPanel()
    return mainPanel;
    private static void createAndShowGUI()
    admin_login_code a=new admin_login_code();
    a.setVisible(false);
    JFrame frame = new JFrame("TextAreaOverImage Application");
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    frame.getContentPane().add(new TextOver().getPanel());
    frame.pack();
    frame.setLocationRelativeTo(null);
    frame.setVisible(false);
    public static void main(String[] args)
    javax.swing.SwingUtilities.invokeLater(new Runnable()
    public void run()
    createAndShowGUI();
    i want to give this backgground to my existing jFrame something like
    import java.sql.*;
    import java.io.*;
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    public class admin_login_code extends javax.swing.JFrame {
    String admin_name;
    String password;
    Connection con;
    Statement stmt;
    ResultSet rs;
    public admin_login_code() {
    initComponents();
    jPasswordField1.addKeyListener(new KeyAdapter() {
    public void keyTyped(KeyEvent e) {
    char c = e.getKeyChar();
    if (!(Character.isDigit(c) ||
    (c == KeyEvent.VK_BACK_SPACE) ||
    (c == KeyEvent.VK_DELETE))) {
    getToolkit().beep();
    e.consume();
    jFormattedTextField1.addKeyListener(new KeyAdapter() {
    public void keyTyped(KeyEvent e) {
    char c = e.getKeyChar();
    if (!(Character.isLetter(c) ||
    (c == KeyEvent.VK_BACK_SPACE) ||
    (c == KeyEvent.VK_DELETE))) {
    getToolkit().beep();
    e.consume();
    // <editor-fold defaultstate="collapsed" desc=" Generated Code ">
    private void initComponents() {
    jLabel1 = new javax.swing.JLabel();
    jPanel1 = new javax.swing.JPanel();
    jLabel2 = new javax.swing.JLabel();
    jFormattedTextField1 = new javax.swing.JFormattedTextField();
    jLabel4 = new javax.swing.JLabel();
    jPasswordField1 = new javax.swing.JPasswordField();
    jPanel2 = new javax.swing.JPanel();
    jButton1 = new javax.swing.JButton();
    jButton3 = new javax.swing.JButton();
    setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
    jLabel1.setFont(new java.awt.Font("Tahoma", 1, 36));
    jLabel1.setForeground(new java.awt.Color(255, 0, 0));
    jLabel1.setText("ADMIN LOGIN");
    jLabel2.setFont(new java.awt.Font("Tahoma", 1, 24));
    jLabel2.setText("Admin Name");
    jFormattedTextField1.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed(java.awt.event.ActionEvent evt) {
    jFormattedTextField1ActionPerformed(evt);
    jLabel4.setFont(new java.awt.Font("Tahoma", 1, 24));
    jLabel4.setText("Password");
    jPasswordField1.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed(java.awt.event.ActionEvent evt) {
    jPasswordField1ActionPerformed(evt);
    org.jdesktop.layout.GroupLayout jPanel1Layout = new org.jdesktop.layout.GroupLayout(jPanel1);
    jPanel1.setLayout(jPanel1Layout);
    jPanel1Layout.setHorizontalGroup(
    jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
    .add(jPanel1Layout.createSequentialGroup()
    .add(39, 39, 39)
    .add(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
    .add(jLabel4)
    .add(jLabel2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 161, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
    .add(43, 43, 43)
    .add(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
    .add(jPasswordField1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 190, Short.MAX_VALUE)
    .add(jFormattedTextField1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 190, Short.MAX_VALUE))
    .addContainerGap())
    jPanel1Layout.setVerticalGroup(
    jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
    .add(jPanel1Layout.createSequentialGroup()
    .add(47, 47, 47)
    .add(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
    .add(jLabel2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 34, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
    .add(jFormattedTextField1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
    .add(60, 60, 60)
    .add(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
    .add(jLabel4)
    .add(jPasswordField1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
    .addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
    jButton1.setText("Login");
    jButton1.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed(java.awt.event.ActionEvent evt) {
    jButton1ActionPerformed(evt);
    jButton3.setText("Exit");
    jButton3.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed(java.awt.event.ActionEvent evt) {
    jButton3ActionPerformed(evt);
    org.jdesktop.layout.GroupLayout jPanel2Layout = new org.jdesktop.layout.GroupLayout(jPanel2);
    jPanel2.setLayout(jPanel2Layout);
    jPanel2Layout.setHorizontalGroup(
    jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
    .add(org.jdesktop.layout.GroupLayout.TRAILING, jPanel2Layout.createSequentialGroup()
    .add(38, 38, 38)
    .add(jButton1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 93, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, 110, Short.MAX_VALUE)
    .add(jButton3, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 93, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
    .add(55, 55, 55))
    jPanel2Layout.setVerticalGroup(
    jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
    .add(jPanel2Layout.createSequentialGroup()
    .add(38, 38, 38)
    .add(jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
    .add(jButton3, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 32, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
    .add(jButton1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 32, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
    .addContainerGap(30, Short.MAX_VALUE))
    org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(getContentPane());
    getContentPane().setLayout(layout);
    layout.setHorizontalGroup(
    layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
    .add(layout.createSequentialGroup()
    .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
    .add(layout.createSequentialGroup()
    .add(574, 574, 574)
    .add(jLabel1))
    .add(layout.createSequentialGroup()
    .add(459, 459, 459)
    .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)
    .add(jPanel1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
    .add(jPanel2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))))
    .addContainerGap(521, Short.MAX_VALUE))
    layout.setVerticalGroup(
    layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
    .add(layout.createSequentialGroup()
    .add(149, 149, 149)
    .add(jLabel1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 66, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
    .add(43, 43, 43)
    .add(jPanel1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
    .add(42, 42, 42)
    .add(jPanel2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
    .addContainerGap(250, Short.MAX_VALUE))
    pack();
    }// </editor-fold>
    private void jPasswordField1ActionPerformed(java.awt.event.ActionEvent evt) {
    private void jFormattedTextField1ActionPerformed(java.awt.event.ActionEvent evt) {                                                    
    private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) {                                        
    Object src=evt.getSource();
    if(src==jButton3)
    dispose();
    private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {                                        
    Object src=evt.getSource();
    if(src==jButton1)
    admin_name=jFormattedTextField1.getText();
    password=jPasswordField1.getText();
    try
    Class.forName("oracle.jdbc.driver.OracleDriver");
    con=DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:orcle","scott","root");
    stmt=con.createStatement();
    rs=stmt.executeQuery("select admin_name,password from admin_registration where admin_name='chandana' and password='8989' ");
    while(rs.next())
    if(admin_name.equals(rs.getString(1))&&password.equals(rs.getString(2)))
    admin_registration a=new admin_registration();
    a.setVisible(true);
    dispose();
    else
    JOptionPane.showMessageDialog(null,"Please enter admin name & password ");
    catch(ClassNotFoundException e)
    e.printStackTrace();
    catch(SQLException e)
    e.printStackTrace();
    public static void main(String args[]) {
    java.awt.EventQueue.invokeLater(new Runnable() {
    public void run() {
    admin_login_code a=new admin_login_code();
    a.setVisible(true);
    // Variables declaration - do not modify
    private javax.swing.JButton jButton1;
    private javax.swing.JButton jButton3;
    private javax.swing.JFormattedTextField jFormattedTextField1;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JPasswordField jPasswordField1;
    // End of variables declaration
    Can any one can help me how to set a background for jFrame?
    Thank you in advance.
    Edited by: forums.com on Jul 14, 2008 1:40 AM

    90% of the code you posted is not relevant to your question.
    If you want further help post a Short, Self Contained, Compilable and Executable, Example Program (SSCCE) that demonstrates the problem.
    And don't forget to use code tags when posting code.

Maybe you are looking for

  • Editable issues in sap interactive adobe form

    Hi Experts, we are using AdobeLiveCycle designer to create the pdf form out of sap. After creating the form to interact with sap. When we execute the program automatically pdf will download the particular folder. In that pdf form is not an editable m

  • Nokia Care Centre in London that can help reinstal...

    I have a "3" phone that I unlocked officially by 3.  OS updated on 2nd Feb but Firmware isnt updated and I am tired of waiting, especially that I have intermittent problems that I've described in "100% correlation with main instability and battery pr

  • Fk10n by plant wise

    hi gurus, Is there any report or transaction code which displays Vendor account by Company Code and a specific plant. I know FK10n but it displays the Vendor account Balance for the Company Code and not for the Plant and Company Code. Please Advise.

  • New output needed for posted invoice

    Hi all, The company I am working for posted an invoice via MIRO but there was no output determination configured. This invoice was posted for last year however they now need to print an output for their records. Is it possible to do this? Thanks for

  • My iphone 3  is stuck in recovery mode it says erroe code 3194 when I try to restore

    My 1phone 3gs is stuck in reovery mode and when I try to restore it, it says cannot restore error 3194