How to add icon in the background for a button?(Caption should come front)

JButton btn=new JButton("hai");
//now if we scale image icon to btn's size
btn.setIcon(Icon)
//Icon only comin...
but i want the icon to be background and ,caption should come front
waitin
thanks

You could at least tell me what was wrong with my answer
http://forum.java.sun.com/thread.jsp?forum=57&thread=526291

Similar Messages

  • How to add attachment in the background .

    Hi Experts,
    How can we add attachments to a document in the background .
    Example : how to add attachement to a purchase order  in background.
    Thanks in advance .
    Naval bhatt

    check out this weblog
    /people/rammanohar.tiwari/blog/2006/03/25/generic-object-services-gos--in-background--part-ii

  • How to add field to the header for FBL5N ALV report

    Hi,
       I need to add fields to the customer line item display ALV report(FBL5N) header part.Right now there are four fields in the header like customer, company code, name and city, after that I need to add first name last name and phone no. Can any one tell me where exactly I need to add and populate there fields to be appear in ALV output list.
    Thanks in Advance
    Swapna

    Yes I have tried, I have place a break point in that perform but it does not stop. I think that is not the correct place to added and populate fields. That routine is for populate selection screen ranges single and multiple values and parameters only.
    Thanks
    Swapna

  • How to add canvas to the background of a form in j2me

    I am new to j2me. I am developing a mobile application in j2me. Is there a way of adding a canvas object to the background of a form? I tried searching in net with few people suggesting to use "jmepolish". I have no idea what jmepolish is..Is there a way to do this with normal j2me classes?

    Short answer: You can't. There are two types of Displayables (javax.microedition.lcdui.Displayable): Screen items and the Canvas item.
    You have no control of the appearance of Screen items: Alert, Form, List, TextBox. The implementation(phone maker) decided the appearance of those items. You can only alter the appearance of Canvas and GameCanvas.
    If you want to change the appearance of a Form you should check out something like LWUIT or J2ME Polish.

  • How to add image in the background of textarea?

    hello frnds
    i m confused regarding the sticking any png image as a background in the textArea which has a black background by default.
    If any body has any solution then plz do help me out..
    thanx
    kuldeep

    import java.awt.*;
    import javax.swing.*;
    public class TextBackground_Demo extends JFrame {
        public TextBackground_Demo() {
            setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
            try{ image = javax.imageio.ImageIO.read(new java.io.File("c:\\image00001x.jpg")); }catch(Exception ex){}
            scrollpane = new JScrollPane();
            scrollpane.setViewportBorder( new CentredBackgroundBorder() );
            scrollpane.getViewport().setOpaque(false);
            textarea = new JTextArea();
            textarea.setOpaque(false);
            scrollpane.setViewportView(textarea);
            getContentPane().add(scrollpane, BorderLayout.CENTER);
            setSize(600,400);
            setLocationRelativeTo(null);
        public static void main(String args[]) { new TextBackground_Demo().setVisible(true); }
        private Image image ;
        private JScrollPane scrollpane;
        private JTextArea textarea;
        class CentredBackgroundBorder extends javax.swing.border.AbstractBorder {
            public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) {
                x += (width-image.getWidth(null))/2;
                y += (height-image.getHeight(null))/2;
                ((Graphics2D) g).drawRenderedImage((java.awt.image.RenderedImage)image,
                        java.awt.geom.AffineTransform.getTranslateInstance(x,y));
    }

  • Add ICON to the TEXT

    Hi All,
          Could you please tell me how to add icon to the text value.
    Like, var = It is the best one
    we need add Icon at the end of the string value
            var = It is the best one(Icon should come here).
    Please let me know anyone knows.
    Regards,
    Selva M

    Hi Dieter,
                If you check this variable value in debugging mode, it'll be like this
    VARS = It is the best one @P2@. But I want it like this , VARS = It is the best one ¶.
    Solved my requirement's issue by just copy and paste this symbol. we have this symbol in ABAP editor.
    But still I don't know why we can't add ICON at the end of the text in a variable whereas we can add at the front of variable :(.
    Regards,
    Selva M.

  • I currently have a D-Link DI-604 broadband router with windows computers.  How can I add wifi to the network for use with ipad?  Can I use AirPort Express?

    I currently have a D-Link DI-604 broadband router with windows computers.  How can I add wifi to the network for use with ipad?  Can I use AirPort Express?

    Yes. You can directly connect an 802.11n AirPort Express Base Station (AXn) using an Ethernet cable. The AXn would then just need to be configured as a bridge to allow the D-Link to continue to provide both NAT & DHCP services for all network clients connected to either router.
    In this configuration, the AXn would broadcast a wireless network for your wireless network clients to connect to.

  • How to add icon field in the alv grid output

    Hi Experts,
    i need to add one icom column in the alvgrid.That icon if the contract is inacitve then it should shows inactive symbol.if the contract is account assignment lock then it should show that lock symbol.Please send me the any code or approach.
    Thanks,
    Venkat.

    Hello Venkat
    Set<b> ls_fcat-icon = 'X' </b> in the fieldcatalog for the column where you want to display icons. In addition, add the following statement to your report:
    TYPE-POOLS: icon.  " replaces INCLUDE <icon>.
    Do not use the coded values (e.g. '@01@') but the "normal" icon names, e.g. <b>ICON_DETAIL</b>.. In order to see the icon names call transaction SE38/SA38 and run report <b>RSTXICON</b>.
    Regards
      Uwe

  • How to run GR55 reports in background for cost center hierarchies

    1.  I have been asked by our users to create batch jobs to run in the background for some GR55 reports, that can then be sent directly to cost center managers via email.
    I have figured out the process to do this as long as the cost center manager only needs to see a single cost center at a time.  However, if they are in charge of multiple cost centers, we also want to send them a summarized report using the hierarchy we have set up.  I can't seem to make this work, as the job only seem to recognize the last cost center in the group and the report is for that cost center.
    Example.  cost centers 100, 200 and 300 belong to hierarchy abc.  If I run the job just for cost center 100 it is fine.  But if I have a variant to run hierarchy abc, or even if I use the range 100 to 300, all I get is a report for cost center 300.
    We cannot use BW because we only have revenue in BW.  I am being asked to make this work from standard R/3 within the GR55 realm of reporting.
    2.  In addition, the report selection criteria includes two separate plan/forecast versions.  They need to update these each month prior to running the reports and sending them out.  I looked at the variables associated with the versions and tried to set them up with default values that I hoped would update automatically so that they don't have to manually change 50 or so variants each month.  But I don't see any dynamic variables that I can use to have the system make that change without going into each variant individually.
    3.  There is another piece to this equation as well.  There is another report they want sent out in batch, but it is several pages wide in SAP and several pages long.  So when you run it in batch and either spool it or get it sent as an email, it is very ugly in the formatting due to all the page splits horizontally and vertically.  If anyone knows how to get the report to stay together like it would if you had excel integration turned on, it would be very helpful.  I have tried running it with that integration turned on, but the jobs are set up with user batch_mgr and not my id, so it isn't working well.  The batch_mgr id is just a system id, not a dialog id.  We also don't want the jobs set up with a regular user id because if people leave, then the jobs all need to be changed.

    Kim,
    I may have options for issues 1 and 2. In case of 3, what I can tell you is I understand the concern, but this is what  typically happens in some standard CO reports that are not ALV compatible, I don't think there is not much  there to do unless you add some custom code for the output.
    In regards to point 1, yes,  I have noticed that this happens in some standard and custom reporting, not sure what is going on. I came up with a work around that  made the trick for my client in a similar scenario; which is editing the cost center groups. For instance, instead  of having the group set as a range from 100 to 300,  the groups are have  listed the cost centers, 100, 200 and 300. Obviously, the disadvantage of  this option is  that it would require a bit of more cost center group maintenance.
    In regards to point 2,  I understand from your note  that your users already have set up selection variants for the report. One option for you is to get the help from a developer to create a custom period variable and tiny program that runs in batch every month that would update that variable accordingly. Once that's done, you may have to update at least once, the selection variant  attributes to change the period to a selection variable, so everytime from that point of time forward that the variable gets updated,  it will be ready with the right value for every selection variant that uses it.
    Hope this helps.
    GG

  • How to add icons in native menu with text

    Hello Guys
                     Can Anybody guides me how to add icon in nativemenu system tray.Actually i am making a simple application in adobe air and use minimizing the application into system  tray.On Right  click on the icon present in system tray it open naitive menu with open and exit option.
    i just want to add an icon with each menuItem.Please guide how can i do it.please give me some example for it.i am using this
                                     http://www.swamicharan.com/blog/air/minimizing-an-air-app-to-systemtray/
    link for dock and undock my application.And also tell me how to enhace the width of that naitive menu .please help me out.
    Thanks  And Regards
         Vineet Osho.

               the native menu means in ur application menu or flex system menu?

  • How to add spaces at the end of record

    Hi Friends,
    i am creating a file which contains more than 100 records.
    In ABAP i have internal table with on field(135) type c.
    some time record have length 120, somtime 130 its vary on each record.
    but i would like to add space at the end of each record till 135 length.
    Can you please help me how to add speace at the end of record.
    regards
    Malik

    So why did you said that in your first posting? My glass sphere is out for cleaning...
    Instead of type c use strings and add spaces until they have the appropriate length.
    loop at outtab assigning <pout>.
      while strlen( <pout>-val ) < 135.
        concatenate <pout>-val `` into <pout>-val.
      endwhile.
    endloop.

  • How to add a new data element for existing table filed(Primary key field)

    Hi Experts,
    How to add a new data element for existing table field(Primary key field)
    For this filed ther is no foreign key relation ships and even check table.
    while activating table it is giving message like below.
    can you help any one to solve this and wil steps to add new dataelement for existing primary key filed of a table.
    Check table (NAMING SPACE/TABLE NAME(EX:/TC/VENDOR)) (username/19.02.10/03:29)           
    Primary key change not permitted for value table /TC/VENDOR
    Check on table  /TC/VENDOR resulted in errors              
    Thanks
    Ravi

    Hi,
    Easiest way is to download the table eg into an Excel table (if possible) or text table. Drop the table from the database. Build your table with the new key field. Build the database table again and fill it.
    You can do it also over the database into a new table. Drop the old one. Build the enhanced one and fill it. Afterwards drop your (temporary) table.
    Maybe there are other ways, but this works.
    Success,
    Rob

  • How to add request in the buffer

    Hii All,
    How to add request in the buffer in bulk.
    i am using following command.
    tp addtobuffer requestno <sid>
    but after doing it is giving me the following error
    C:\usr\sap\trans\bin>tp         addtobuffer     BWDK900161      BT1
    ^CThis is tp version 340.07 (release 640, unicode enabled)
    E-TPSETTINGS could not be opened.
    EXIT
    ERROR: System : Parameter SAPEVTPATH not set. Batch jobs cannot be started.
    Error in TPSETTINGS: transdir not set.
    tp returncode summary:
    TOOLS: Highest return code of single steps was: 0
    ERRORS: Highest tp internal error was: 0208
    tp finished with return code: 208
    meaning:
      error in transportprofil (param missing, unknown,...)
    Pls help.
    Regards,
    Viren.

    Hi Rolf,
    thax for your reply.
    But still it is not working it shows following message.
    C:\usr\sap\trans\bin>tp addtobuffer BWDK900051 BT1 pf=c\usr\sap\trans\bin\TP_DOM
    AIN_BT1.PFL
    This is tp version 340.07 (release 640, unicode enabled)
    E-c\usr\sap\trans\bin\TP_DOMAIN_BT1.PFL could not be opened.
    EXIT
    ERROR: System : Parameter SAPEVTPATH not set. Batch jobs cannot be started.
    Error in c\usr\sap\trans\bin\TP_DOMAIN_BT1.PFL: transdir not set.
    tp returncode summary:
    TOOLS: Highest return code of single steps was: 0
    ERRORS: Highest tp internal error was: 0208
    tp finished with return code: 208
    meaning:
      error in transportprofil (param missing, unknown,...)
    Regards,
    Viren.

  • How to add filter in the dist. model

    hi,
    how to add filter in the dist. model
    thanks
    Ruban

    Hi,
    Please try this.
    1. Go to transaction BD64.
    2. Click on Change button.
    3. Expand the corresponding model view.
    4. Expand the corresponding message type (i.e MATMAS).
    5. Place the cursor to 'No filter set' and double click.
    6. Click on Create Filter Group.
    7. Add your filter from here ...
    8. Once done, save the model view.
    For more information, please check this link.
    http://help.sap.com//saphelp_470/helpdata/EN/0b/2a611c507d11d18ee90000e8366fc2/frameset.htm
    Regards,
    Ferry Lianto

  • HT5654 how to add videos to the ipad using the latest version of itunes

    how to add videos to the ipad using the latest version of itunes ?

    Hello zaraa90,
    After reviewing your post, I have located an article that can help with syncing content. It contains a number of troubleshooting steps and helpful advice for the issue you are experiencing:
    Sync your iPhone, iPad and iPod with iTunes using USB
    Thank you for contributing to Apple Support Communities.
    Cheers,
    BobbyD

Maybe you are looking for

  • How can I get to read the pixels in an image?

    Please see details of my code below. What I am doing is trying to obtain the pixels for an image. there is an initial image of a certain size, which is then split into smaller portions. The problem I'm getting is that pixels can not be read past the

  • NEED HELP IN CONFLICT HANDLER ERROR ORA-01403: no data found

    Hi All, I am using Oracle Streams to replicate the data... I need to update the records on the destination with some particular condition like if USER_COUNTRY = 'XXX' then the data need to be updated in the destination side else skip ... I wrote the

  • MIGO for multiple PO's

    Hi Experts, Is there any provision for doing GR for multiple Po's in a single MIGO in standard SAP Scenario: Client imports material from Singapore, Vendor clubs the client PO's and sends material in a consignment twice in a month. In customs a singl

  • EEO-4 Report - Defining EEO Functions

    I am trying to find where to configure and assign functions defined in the EEO-4 report for State and Local Governments (RPSEEOU_PBS). The functions defined by EEO are: 1. Financial Administration 2. Streets and Highways 3. Public Welfare 4. Police P

  • Password Protect Attachment file thru Mail from BO

    I am generating WebI report and this report (in the format of excel/pdf) will be send to the list of users through mail. When the user open the attachment, it should prompt for password and open the same once password match.