What is the method name?

Hello:
I understood that i have to override the paintComponent method.
But my question is that, what is the method declaration by which shall i set the background image? where image name is winter.jpg
I will be highly grateful to u if u kindly give me the proper answer.

The answer was already given to you in your other post.
icewalker2g gave you this site http://www.jguru.com/faq/view.jsp?EID=9691
The code:
import javax.swing.*;
import java.awt.*;
public class BackgroundSample {
  public static void main(String args[]) {
    JFrame frame = new JFrame("Background Example");
    final ImageIcon imageIcon = new ImageIcon("draft.gif"); // <--- change this image to your image
    JTextArea textArea = new JTextArea() {
      Image image = imageIcon.getImage();
      Image grayImage = GrayFilter.createDisabledImage(image);
      {setOpaque(false);}  // instance initializer
      public void paintComponent (Graphics g) {
        g.drawImage(grayImage, 0, 0, this);
        super.paintComponent(g);
    JScrollPane scrollPane = new JScrollPane(textArea);
    Container content = frame.getContentPane();
    content.add(scrollPane, BorderLayout.CENTER);
    frame.setDefaultCloseOperation(3);
    frame.setSize(250, 250);
    frame.setVisible(true);
}In the future please read your post and don't multipost and crosspost.

Similar Messages

  • What's the method name for convert integer to ASCII

    Hi, all:
    I need a method which can convert the integer value to the ASCII character. I just can't find this kind of method. If someone know the name of the method or where I need to find it, please tell me. Thanks in advance!
    he

    Its most simple to use a cast:
    int someValue;
    char someCharacter;
    someValue = 65;
    someCharacter = (char) someValue;
    System.out.println (someCharacter);
    this should display 'A' if I'm not mistaken.
    Jon

  • What are the Table Names

    Hi All,
    What are the table names which Stores the Shopping Cart Data i.e Cart No., created by, approved by, line item details.
    What are the table names which Stores the Shopping Cart approver name.
    What are the table names which Stores the Confirmation data i.e document no. , name of the approver of the confirmation, line item details.
    Please also mention the common used table names in SRM EBP.
    Thanks in advance.
    Regards
    Sridhar

    Hi Sridhar,
    pl. explore the golden txn. BBP_PD in SRM.
    Just Run the txn. choose yr object type i.e. for SC choose BUS2121
    for confn. pl. chk out(i don't have sys)
    put any sample SC or confn no
    execute
    it will give you that BUS object details
    Doubleclick to open all details
    on the relevant field just double click to get the respective table name
    e.g. SC data click on SC no.
    For ready ref following are some tables
    PO no in the tables BBP_PDBEH/BBP_PDBEI from the SC guid
    Tables updated related to Shopping Cart               
    Srno     Tables     Description     H/I
    1     CRMD_ORDERADM_H     Header Table of the Shopping Cart     H
    2     BBP_PDHGP     Business Transaction Purchasing Informatio     H
    3     BBP_PDHSB     Bid Invitation     H
    4     BBP_PDBEH     Backend Specific Header Data     
    6     BBP_PDPSET     Further Procurement Information     
    7     BBP_PDHSC     Header Extension for Customer Fields     H
    8     BBP_PDHSS     Hdr Extension for SAP Internal Enhancement     H
    9     CRMD_ORDERADM_I     Business Transaction Item     I
    10      BBP_PDIGP     Business transaction item-Purchasing infor     I
    11     BBP_PDBEI     Backend Specific Item Data     I
    12     BBP_PDISB     Bid Invitation/Bid-Specific Item Data     I
    13     BBP_PDISC     Item Extension for Customer Fields     I
    14     BBP_PDISS     Item Ext. for SAP Internal Enhancements (IBUs and so on)     I
    15     CRM_JEST     Individual Object Status     
    16     CRMD_PARTNER     Partners     
    17     BBP_PDBGP     Partner Extension Gen. Purchasing Data     
    18     BUT000     BP: General data I     
    19     ADDR3_DATA     Address data     
    20     BBP_PDORG     Purchasing Organizational Unit     
    21     BAPIEKKOL     BAPI -s inofrmation     H/I
    22     BAPIEKPO_ECI     BAPI -s inofrmation     H/I
    23     BBP_BAPIEKKN     BAPI -s inofrmation     H/I
    24     BAPIEBAN     BAPI -s inofrmation     H/I
    25     BAPIEBKN     BAPI -s inofrmation     
    26     BBP_PDACC     Account Assignment     
    27     BBP_PDATT     Document Attachment     
         Additional Tables          
    28     BBP_CATEGORY_FAV     User-Specific Favorites for Product Categories     
    29     STXH     STXD SAPscript text file header     
    30     BBP_PDVIEW_IAP     Item Data: General Purchasing and Purchasing Set     
    31     BBPC_PARTNERFUNC     Definition of Partner Functions
    32     HRP1001     Infotype 1001 DB Table
    33     TSAD3T     Titles (Texts) (Business Address Services)
    34     comm_applcatgrpr     Application Area of a Hierarchy
    35     BBP_FUNCTION_MAP     Function Map for BAPI Dispatcher
    36     SWOTIP     Index Parent Object Types
    37     HRSOBJECT     Index for Standard Objects
    38     usr02     Logon Data (Kernel-Side Use)
    39     usrefus     Reference user for internet applications
    40     spers_obj     Personalization object repository
    41     hrv1222a     View of Attributes
    42     bbpc_partnfunc_t     Description of Partner Functions
    43     CRM_JSTO      Status Object Information
    44     crmc_but_call_fu     Determining FMs for Data Exchange BP
    45     bbpc_actionmap     Assign Method Actions
    46     but000     BP: General data I
    Pl. note I have not checked these all tables myself, you can explore.
    BR
    Dinesh
    <b>Reward if helps</b>

  • What is the Method to get record from DB as Date fornat??

    Halo, i want to know what is the method to get the data from database which is store it in date format.
    Previously, i am using the getDate() to get the data together with the while (rs.next() ) method after using the "select" statement to get the data from data base.
    Here is the example when i retrieve record from database:
    java.util.Date date1 = new java.util.Date();
    String getRecord = "SELECT * FROM employee "
    ResultSet rs = db. execSQL(getRecord);
    while(rs.next() ){
    String name = rs.getString("name");
    date1 = rs.getDate("date");
    }notes: method getDate() had deprecated since JDK version 1.1.
    So, i need to know what is the method to get the date record??
    Thank you.....

    Halo, ...Yeah, Halo! Love that game...
    Um, use getDate(). ResultSet.getDate() is not deprecated. If you think so, then you better go reread the API docs, cuz you're reading the wrong ones.

  • What are the field names for below mentioned

    Hello Friends
    What are the fields names for below tables
    in EKKO
    Purchase Document Date
    Net Value of the purchase document.
    In EKPO
    Item Description
    From which place We bought it. (It means in Sales Items there we can know from which plant we sold the goods, like in EKPO, there is any field like this)
    Please let we are defining the report to find out the stock availability for perticular storage location using select Options plant, company code, material no.
    How many tables involve her to build this report. and also field names, they come under which table.
    Please send me this information ASAP. PLz Plz Plz..........
    Regards
    Praveen

    You can check the fields of these tables via SE11
    Purchase Document Date  -  EKKO-BEDAT
    Item Description  -  EKPO-TXZ01
    Net price per item - EKPO-NETPR.
    Regards,
    Rich Heilman

  • What is the exact name of the cable I need to connect my old hard drive from my macbook pro (it has been taken out of the computer) to my new macbook pro?  I need to transfer files from the old hard drive to the new computer.

    What is the exact name of the cable I need to connect my old hard drive from my macbook pro, which has been removed from the computer, to my new macbook pro?  I need to transfere files from the old hard drive to the new computer.

    No eSATA to USB. Just a SATA/IDE to USB adapter. Google SATA/IDE to USB adapter and you will get tons of links to buy them. Most likely your local computer electronics store has them, although they might be more expensive buying locally than online.
    I have several. You can get either USB 2, which what I recommend, or USB 3. USB is backward compatible so a USB 3 adapter will work on a USB 2 port and a USB 2 adapter will work on a USB 3 port. Backward compatible in both directions.
    I suggest a USB 2 type because there have been some problems with certain USB 3 devices, the USB 3 interface used isn't all that good in those certain devices. USB 3 is still fairly new where as USB 2 has been around for over 10 years.
    synghem wrote:
    Thank you LowLuster,
    At the apple store they said I needed an esata to usb wire.  But looking at wires on line has been confusing.  Is sata the same as esata?  How do I know if I need a usb 3 or usb 2?

  • I started downloading my Upgrade to Photoshop Elements Version 13 and received my upgrade confirmation and cannot locate the download on my PC running Windows 7,what is the exact name of the download and where should I find it?

    I cannot locate the upgrade to Photoshop Elements 11 to Version 13, which I purchased today and started the download as per the Order Confirmation. My order No. is AD014117711. I am running Windows 7 on my PC and cannot locate the Download. How do I find it? What is the exact name of the Download?

    EdWeidman by default the download will be saved to your Download folder.  I do not know the exact name of the file which was provided to you.

  • HT5625 if i have multiple apple IDS and i would like to delete all of them except the one I wish to continue using what is the method

    In case I have multiple Apple Ids and I want to delete all of them except one , what is the method to be followed.??
    Or is it that there is no scope for deletion and the Ids are just disabled

    Sorry, Apple ID's cannot be deleted or merged. All you can do is stop using an Apple ID.

  • What are the methods called while navigating from one applet to another one

    Hi All,
    Could any one brief me about "When you navigate from one applet to another what are the methods called ?".
    Thanks in advance.
    Best Regards,
    N.Madhusudhanan.

    http://forum.java.sun.com/thread.jsp?forum=421&thread=426771&tstart=0&trange=100

  • What are the table names for CRM and APO?

    hi friends,
    what are the table names for CRM and APO?
    Regards
    suneel.

    hi Suneel,
    check in crm forum
    Re: SAP-CRM Tables
    BUT051 BP Relationship: Contact Person Relationship
    Similar to BUT050 , additionally contains Contact Person’s Address data
    BUT0BK Business Partner: Bank Data & Details
    BP Number, Bank Key, Bank Country Key, Bank Account Number
    BNKA Bank Master Data
    BUT100 BP: Roles
    ADR2 Telephone Numbers (Business Address Services)
    ADR6 SMTP Numbers (Business Address Services)
    Contains Email – Id of the BP.
    ADRC Addresses (Business Address Services)
    BP’s Complete Address Details- City, Country, Post Code, District, Street, Title No Etc
    TSAD3T Table containing the Title text against a Title No.
    COMM_PRODUCT Master Table for Product
    CRMM_BUAG Master table for Business Agreement
    CRMM_BUAG_H Header Data for Business Agreement such as Tax Category, Tax Characteristic, Form key, Business Agreement Class. Data in this table correspond to ISU CRMD_ORDERADM_H Contains the Header Information for a Business Transaction.
    Note:
    1. It doesn’t store the Business Partner
    responsible for the transaction. To
    get the Partner No, link it with
    CRM_ORDER_INDEX.
    2. This table can be used for search
    based on the Object Id(Business
    Transaction No).
    CRMD_CUSTOMER_H Additional Site Details at the Header Level of a Business Transaction
    CRMC_PROC_TYPE Master table Business Transaction Type
    CRMC_PARTNER_FCT Definition of Partner Functions
    SCPRIOT Priorities for Activities with priority text.
    CRMC_PROC_TYPE_T Text for a transaction type
    CRMC_ACT_OBJ_T Objective Number and Text for Activities
    TJ30T All the status code and text
    CRMC_PR_ASSIGN : Transaction Type and its Transaction Type Object.
    IBIB : Installed Base/Ibase
    IBIN : Installed Base Components
    COMM_PRODUCT : Products
    CRMC_T077D : customer account groups
    CRMD_ORDERADM_H (for header) CRMD_ORDERADM_I (Item data)
    CRMD_ORDERADM_H Business Transactions CRM
    CRMD_ACTIVITY_H Activity
    CRMD_OPPORT_H Opportunity
    BUTOO : Customer details
    BUT001 BP: General data II
    BUT100 BP: Roles
    BUT150 BP relationship: Attribute table (test
    different
    BUT_HIER_TREE Business Partner Group Hierarchy
    CDBC_T_PRODUCTID Mapping: Product Id
    CDBD_ORGMAN Business transaction - organizational unit -
    set
    COMC_PRODUCT General Product Settings
    COMC_R3_FIELDS Assignment of R/3 material master fields to
    CFOP
    COMM_CATEGORY Category
    COMM_CFGMAT Basic Data for Materials
    COMM_HIERARCHY Category Hierarchy
    COMP_TYPES Hierarchy Tool: Comparison Type Check
    Table
    CRMC_CPRICPROC Customer Pricing Procedures
    SMOKVBEZ15 Assignment employees to positions
    CRMMLSGUID: GUID entry (should match GUID in CRMPRLS)
    CRMM_BUT_CUSTNO : Also GUID table (GUID here should match GUID in R/3 table CRMKUNNR)
    SMOFSUBTAB : Mapping & Parameters
    SMOFDSTAT : Download Monitor (R4AM1)
    SMOFFILTAB : Filters (Should match filters in R3AC1 & R/3 Table CRMFILTAB)
    SMOFOBJECT Definition of Objects for Download
    SMOFOBJPAR Parent Objects of an Object in Table
    SMOFPARSFA Middleware Parameter
    SMOFQFIND Queue Finder Table for MW-Queue finder
    SMOFTABLES Definition of Tables for Download

  • What are the methods available to modify standard reports?

    What are the methods available to modify standard reports?

    <b>Hi,
    I think you can copy those reports into Zreports</b>

  • What is the method used for upload of  data

    Hi All,
    What is the method used for upload of  Data from excel spread sheets to SAP HR.
    it is Bulk Data from many countries.LSMW or BDC Session Method?
    what are country specific infotypes used for PA and OM.
    can u plz give the list of country specific infotypes used for PA n OM Module.
    Thanks
    Archana

    Hi Archana,
    To Upload bulk data I think BDC is the best and effecient way.
    Regarding Infotypes we dont have any country specific Infotypes in OM & PA. In Payroll we do have according to country wise.
    I hope you had understood the point
    Regards
    Pavani
    Remainder: Points to be given on answers

  • How to get the method names in a class

    hi  friends,
    Could any of you tell me the report or function module  to display all the method names in a given class.
    thanks in advance.
    regards,
    kumar

    Hi Kumar ,
    Open ur class in SE24 transaction ,there is a tab for methods ..
    u'll get the list of methods form there ... n in source u'll get their operative details
    Regards
    Renu

  • What is the table name for Workload analysis?

    Hi All TechGurus,
    We need to create an ABAP program in which it displays some information of Transaction (STO3n), Report for the same (SAPWL_ST03N)
    We want  to create an ABAP program to get the output in excel format?
    What is the table name for Workload analysis?
    Many thanks in advance!!

    Hi  Keshav,
    Thank you for your reply.
    As per my requirement, i want to create an ABAP program in which it displays some information of Transaction (STO3n) and want to send the output in excel format. however I don't understand how to start with it.
    Below are the conditions -
    1. display data for today's date
    2 .In transaction profile,  task should be Dialogue.
    from where should i fetch data which is getting displyed after executing t.code ST03n?
    Please help me with your suggessions...
    Thanks

  • I'm tring to allow a pop up so I can change my address on my drivers license. everytime I enter the address for the document , I get."what is the host name?" I'm clueless as to the host name

    I am trying to disable my pop up's in order to allow an address so I can change the address on my drivers license. When I enter the address that allows the document that I need to appear, I get, "what is the host name? I don't know what they mean by host name.

Maybe you are looking for

  • Parallel currency in Report painter

    Hi I need help around the Report Painter report. One of our company code is located in Hong Kong and there are three currencies set-up for this entity. Local currency is CNY, Group currency is in USD, and Third currency is in HKD. Our report painter

  • Did you know this?

    I ordered my first book from Aperture. I was surprised to find out that the front cover of the book is not actually a "cut-out", but a photo PASTED on. This looks terrible. I would imagine that the corners of this cover photo will eventually curl up,

  • Problem about using the airplay?

    I want to know that is that the airplay can connect to the klipsch gallery G-17 by using the ipad apps just to play the video sound like example good player apps?

  • After upgrading to OS X Yosemite 10.10.1, Unsharp Mask and Adjust Sharpness do not work

    Since upgrading to OS X Yosemite 10.10.1, I have found that the Unsharp mask and Adjust sharpness tools are not working. Sometimes at extreme settings they work, but at other times, they don't work at all. Does anyone have any advice, please?

  • RMS Buyer packs

    Any one on Buyer Packs RMS help.