Displaying image in the Title bar

hi ,
can any one help me to display image in the JFrame Title Bar Left Corner, Right Corner, orMiddle ..

double post http://forum.java.sun.com/thread.jsp?forum=57&thread=554453

Similar Messages

  • Is it possible to add a button with image on the title bar(IDR)?

    I look through all the buttons in the example, All of them does not with an image on them.
    Is it posslbe to put a image on the title bar?
    Best regards?
    Blake Le

    hi, Julia,
    Sorry for the misleading. I want to add a button below the IDR area. And for common button it's OK.
    Now the situation changed , i need to add an icon to a button , to make the user interface more beautiful.
    Is that possible?
    Best regards,
    Thanks very much for your help.
    Blake Le

  • How to insert image in the title bar?

    Hi experts,
    how to insert the image or icon in the title bar of a screen, similar to the screen below.
    Att.,
    Luiz.

    Hi Luiz,
    You can create them in GUI Status. If you are using a module pool program uncomment SET PF-STATUS '<STATUS-NAME>' statement, double click on  <STATUS-NAME> and you will be directed to the screen for setting your GUI status.There you can create buttons with desired icons. If it is a report program add SET PF-STATUS '<STATUS-NAME>'  statement to your program and follow the same procedure.
    Refer the wiki for more details.
    GUI Status of A Program using Menu Painter - ABAP Development - SCN Wiki
    Regards
    Anoop

  • Displaying Jtimer in the title bar of jframe

    we have an urgent requirement to display Time (should run continously) and Date in the title bar of the java
    application. Please give input..

    To update a frame's title, call setTitle:
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class TitleUpdater {
        public static void main(String[] args) {
            final JFrame f = new JFrame("TitleUpdater");
            JButton btn = new JButton("press here");
            btn.addActionListener(new ActionListener(){
                int count = 0;
                public void actionPerformed(ActionEvent evt) {
                    ++count;
                    f.setTitle("pressed: " + count + " times.");
            f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            f.getContentPane().add(btn, BorderLayout.NORTH);
            f.setSize(400,100);
            f.setLocationRelativeTo(null);
            f.setVisible(true);
    }

  • To change the image by the title bar.

    Hi,
    I have been trying to change the existing image in the title of the report.
    I tried reducing the image size through paint. And once i add this image in the title, it is showing the cross mark with letters 'LOGO'.
    Thanks,
    Sindhu

    Have you restarted the services after updating your image?
    You might have to use below syntax for calling the image
    fmap:location/image_name
    location->something like
    s_oracle/Images
    Ex: fmap:Images/newlogo.gif
    If this is not helping can you share your screenshot of the Title thru email or any other form.
    If helps mark
    Edited by: Srini VEERAVALLI on Feb 12, 2013 9:36 PM

  • Set image in the title bar been shown distorted

    I have an 16x/16x gif image that I am placing before title in a JFrame using setIconImage();
    The code I am using is
    this.setIconImage(
    Toolkit.getDefaultToolkit().createImage(
                                  ClassLoader.getSystemResource("GIF.gif")));However the image comes up very ugly.
    Please I need your help with this one.

    I dont see nothing wrong with your code it has to be the image you are useing try another image and see if it works
    import java.awt.*;
    import javax.swing.*;
    public class c extends JFrame  {
    public c() {
          setSize(300,300);
          setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
          setVisible(true);
          this.setIconImage(Toolkit.getDefaultToolkit().createImage(                              ClassLoader.getSystemResource("gem3.gif")));
        public static void main(String[] args)  {
           c h = new c();//constructor

  • Setting an icon in the title bar of a JFrame...

    Hi,
    how do I set an image (icon) in the title bar of a JFrame (in the top left corner)?
    In JInternalFrame there is a method
    public void setFrameIcon(Icon icon)to set an image in the title bar of this internal frame - but in a JFrame I didn't find any method like this...
    Thanks in advance
    - Stephan

    Thanks ICE, that works for me...
    this.setIconImage(new ImageIcon("img\\foo.jpg").getImage());- Stephan

  • Displaying an icon in the title bar of a web page

    Hi Friends,
    Pls temme how 2 display a given icon in the title bar of a web - page, i mean in the title bar of the web - browser which loads the page.
    Thanks in advance,
    Kottayam Achayan

    Hi Friends,
    Pls temme how 2 display a given icon in the title bar
    of a web - page, i mean in the title bar of the web -
    browser which loads the page.
    Thanks in advance,
    Kottayam AchayanIn web.xml, you can use the <icon> element to specify the image to be used.
        <icon>
            <small-icon><!-- Specify a 16X16 GIF or JPG --></small-icon>
            <large-icon><!-- Specify a 32X32 GIF or JPG --></large-icon>
        </icon>Hope this helps.
    Annie.

  • Is there a way to modify the name displayed in the Title Bar at the top of the Audition Window?

    It's not uncommon for me to have a copy of Audition versions 1.5, 2.0 and 3.0 all open at the same time if I'm doing some editing for a complex project. 
    It would be handy for me to quickly see which window I have open without having to recognise the icons of the different versions.  At the moment, each Title Bar just displays the Audition icon and the words "Adobe Audition".  I'd like to add the version number to the name, if it's possible.  I'm happy to edit the Windows Registry, if that is what is needed.
    Does anybody know where the Title Bar information is stored?

    I have an answer you might like Howard.
    You could simply export one title to a PRTL file, then duplicate it using an Excel VB macro to change the name of the file based on a list in an excel file. You could type in a couple of dates, then just drag down to the 365th row and all of the dates would be there waiting for the macro to rename the file. Then, if you are really talented, you could find the appropriate text in the XML file and change it to match the name of the title, but without the PRTL extension.
    That way the font and position and style would all be right and the effort would be in a file you could share with the world.
    Hmmm. I might have to try that myself one of these days. Could come in handy. If you are more comfortable with Word than Excel, create the dates in Excel and paste them into a table in Word. Just be careful not to mess up the
    Edit: Oh, and of course, you import the titles back into Premiere Pro.

  • How do you make the title bar display different text than the page title?

    I'm looking for a way for the title bar display of my web page to be different than the text in the actual nav bar created by iWeb. For instance, I'd like the nav bar to just say Home for my main page, but in the title bar in the browser say "blah blah blah."
    I know there has to be a way to do this. iWeb has actually done it on one page already, but I can't figure out how. I think it picked up the title bar text from the first text box in the page. For instance, the page name in the navigation bar is "blahs for today" but the browser title bar when you open that page says "blah blah," which happens to be the first line of text on the page. The page title in iWeb.app, though, is "blahs for today." But if I look at the source code it lists title as "blah blah."
    I'm guessing I might be able to work around by making an invisible text box with the text that I want in the title bar as the very first thing on the page, and hope iWeb makes that the title bar text. I'd rather have a more correct way of doing it.
    Is there a way of doing this in the source code without having to change a lot of stuff?
    Thanks for any help.

    Richard Kirkman1 wrote:
    I think it picked up the title bar text from the first text box in the page. (...) I'm guessing I might be able to work around by making an invisible text box with the text that I want in the title bar...
    Richard ~ The key is the default Title box that iWeb creates for every new page — it's that which you need to edit, not another text box you've created. And to make the text in that Title box invisible, see here.

  • Displaying our own icon at the title bar of a frame.

    Hai,
    How do i display an Icon of my choice at the title bar of a frame or a dialog box.
    Thank you.

    Thank you shahidjava for the kind reply,
    I tried your code as follows but I'am getting an exception saying "wrong number of arguments in the method.".
    Can you please help this out.
    import java.awt.*;
    import java.awt.event.*;
    public class testIcon extends Frame
         public testIcon()
         setVisible(true);
         setTitle("mohammad afzal....!");
         setBounds(100,100,200,200);
         getIconImage("afzal.gif");
         public static void main(String args[])
         testIcon ti=new testIcon();
    }

  • Odd action using the icon in the title bar of image in psCS5--???????

    i use imac, lion.
    by accident, i discovered that, clicking on and dragging the icon at the left of the title bar (actually within the title bar to left of file name),  i can sometimes open the
    image in ACR,  as hosted by BRIDGE (which is not running. i do not use bridge).
    sometimes the image will be duplicated following this dragging of icon, the new duplicate lying atop the image of the background layer, in the same window, and shows the diagonal bars awaiting resizing. if i just click the ("checkmark")  in the options bar to accept this new layer,  or, if i  press enter, i am looking at a new layer, which is a duplicate of the background layer. this new layer is a "SMART OBJECT", and functions as such.
    this happens only with JPG and TIF files, not with RAW.  i have ACR prefs set to open all supported jpg and tif files.
    i should note that none of this occurs if the image has been edited in any way. in fact, after any edit the icon in the title bar is not movable.
    i am having some difficulty describing a simple and quick process. i don't know if this is a bug, a feature, or the result of too much RED BULL!  i Just reread post and it does seem delusional.
    can anyone help?

    it seems to work with or without the shift key.
    I work with OS 10.6.8 and you are right that it works without shift, too.
    My surmise is that the title bar’s icon of non-dirty files (files that have no History steps save the Open-step or have just been saved) behaves like the file’s icon in the Finder as the behaviour seems to be exactly like a drag-and-drop from the Finder (as a Smart Object if set in the Photoshop > Preferences > General > Place or Drag Raster Images as Smart Objects, not if set otherwise) and works across files, too.
    I don’t think I had noticed that previously, but that behaviour may well be fully intentional.

  • Displaying the username in the title bar of jframe

    hi
    how to display the username entered by the user in the title bar of jframe

    I'm not sure what you mean by 'entered' but does the following help?
    import javax.swing.*;
    public class DisplayUserNameInTitleOfJFrame extends JFrame
        public DisplayUserNameInTitleOfJFrame()
            setTitle(System.getProperty("user.name"));
            setSize(640, 480);
        public static void main(String[] args)
            new DisplayUserNameInTitleOfJFrame().setVisible(true);
    }

  • Why do the title bar on Firefox and taskbar on Windows 7 leave distorted image when a list of bookmark folders crosses either one ?

    I use lots of folders in my bookmarks list. I have noticed that with both AMD and Nvidia based video cards, that if I am using a folder in my bookmarks list that has lots and lots of bookmarks, the list of bookmarks will cross both the title bar area of Firefox and the taskbar on Windows 7 at the bottom. When this happens, both the title bar on Firefox versions 8-10 and the taskbar at the bottom will leave images from the bookmark list that don't go away (unless I use F11 view fullscreen to clear away the image and restore to normal ). If I am using a Matrox video card, this doesn't happen. Why is this?

    Hey cor-el,
    Wow. That did it. You are a genius! Thank you, thank you. It's very important that I be able to use the folders with saved bookmarks feature for my business which I rely on daily.
    I unchecked the "use hardware acceleration feature" where you said it was in Firefox 9 browser and it resolved the problem immediately. I am using an Nvidia GS8400 video card. I was having the same problem on the new ATI/AMD video cards too (haven't tested though on ATI computer yet). My Matrox M9120 doesn't do that at all though. Do you have any idea why that is ? Is it a software conflict between Nvidia or AMD drivers and Firefox?
    One more question on your response solution, why do you recommend upgrading to current video card drivers since un-checking the "hardware acceleration" feature in Firefox works? The video card drivers on the disc that came with the card I am using were supplied by the manufacturer and released last year. Shouldn't that be good enough?

  • Display number of line items in my report at the title bar

    hi,
    i would like to ask, how am i going to add in the number of line items to be display under the title bar above of the SAP. example similar to SE16, where it will show you the number of lines under the bar above.
    may i know how am i going to program it for my report? thanks

    Hi,
               check out the following code........copy-paste....and then....................
    data : it type STANDARD TABLE OF vbak,
           wa type vbak.
    data : ctr TYPE sy-dbcnt.
    data : str(20) type c.
    select * from vbak into table it UP TO 10 ROWS.
      ctr = sy-dbcnt.
      move ctr to str.
    set titlebar 'LIST' OF PROGRAM sy-repid with str.
    loop at it into wa.
      skip 1.
      write wa-vbeln.
    endloop  .
    ................create the title-bar 'LIST' as 'List Details : &'.
    (double-click on 'LIST' ....... 
    give 'TITLE' as 'List Details : &'. ).
    run.....& get solved !!!!!
    Rewards points if helpful..............

Maybe you are looking for