Imagee besides  title of a frame

How do you get an image besides the title of a frame?Please help?

How do you get an image besides the title of a frame? Please help?To get the icon {@link java.awt.Frame#getIconImage()}
http://java.sun.com/j2se/1.5.0/docs/api/java/awt/Frame.html
God bless ^_^

Similar Messages

  • Title of Page Frame in Browser - How to Change?

    Hello,
    New to this. One quick question....
    When you create a site in iWeb, the page title (or top frame in the browser) reflects the name of the page, and I can't find a way to edit that portion of the page.
    For example, the homepage of my site is called "Home", however, I would rather it say (in the browser frame at the top) the name of the company (for search engine purposes).
    How can this be done? Thanks in advance...

    You would need to use iWebSEO to do this. It allows you to add page browser titles, tags and Google analytics to your site to be search engine friendly.
    Note, you need to publish your site to a local folder on your desktop first and then upload.

  • The arabic title of the frame displayed incorrectly

    hi guys,
    i have a problem in displaying the title of the frame which is arabic string,
    the mainFrame in my application have an arabic title and i wrote the tilte in unicode format , it displayed correctly in win98,winMe but in win2000 Server the title displayed as ????????, i also tried to do the following
    new String(Title.getBytes("8859_1"),"utf-8") but no gain,
    so if you can help me, please do.
    thanks for your efforts.

    You would need to use iWebSEO to do this. It allows you to add page browser titles, tags and Google analytics to your site to be search engine friendly.
    Note, you need to publish your site to a local folder on your desktop first and then upload.

  • Changing the titles of all frames in a running application

    Hi All,
    I've got a 50+ frame application. I have realized that I need to update the frame titles for all the frames based upon some event that can be initiated by any of the frames. Each frame title will be different but will incorporate a bit of knowledge about the event. (Note that when I use the term "event", I'm using it in the normal English language sense, not a Java language sense!)
    I've been considering a few approaches and most look either stupid or a whole lotta' work! I'm looking for how to do this the "right way." ...I don't have a broad enough experience to know what's "common" regarding application architecture, but here's what I've got:
    A "Master" class kicks things off. It instantiates a few things like a database connection and so forth, and then it starts a MainFrame that appears on the users screen. The MainFrame, and all of its children, are actually of a class that's an extension of JFrame.
    It's my supposition that I'd like to create some kind of frame pointer holder in the Master, and all frames "register" themselves. When an event occurrs that warrants changing the frame titles, the Master walks the collected frame pointers and directs the titles be changed, as appropriate. ...OR... Is there already a collection of "children" of the master? How would I get that list and how would I walk it looking for a frame?
    Another idea is to be able to send some kind of notification to each frame and say, "Go Update Your Title!"
    Example code GREATLY appreciated!
    Thanks much,
    Richard

    ... While looking into doing this EventObject thing, I noticed that EventObjects are a heavyweight version of what I want... What it really boils down to is:
    Master defines:
    private static Master M = null;
    Vector myChildren = new Vector();
    Then in the constructor:
    M = this;
    Then in a method:
    Vector v = (Vector)myChildren.clone;
    for (int i=0; i<v.size(); i++;)
    ((JFrame)v.elementAt(i)).updateTitle();
    In each JFrame (in my case, in the class that extends JFrame):
    M.addElement(this);
    and in the right place
    M.removeElement(this);
    Oh yeah, and don't forget a method to set the frame title!...
    public void updateTitle()
    this.setTitle("whatever");
    ...That's it! WAY easier than all that foolishness with declairing your own event listeners and everything... For my needs, this was the way to go!
    Regards,
    Richard

  • Change the colour of title bar of frame

    how can we change the colour of title bar of any frame?

    i want to have control of the title bar.there must be some way out.look & feel gives it colour of that perticular types colour(motif,met,native).but i want my choosen colour for it.if you have any direction to solve it please suggest me that.

  • Renaming the title of a frame from a panel

    Hi,
    I've searched the forum but I could not find anything that help me...
    I want to change the title of Main(a class that extends JFrame) from MainPanel(a class that extends JPanel)
    somewhere in my MainPanel I use:
    ((Main)getParent()).setTitle("A new Title...");Idont have any compiling error, but I get an exception
    Exception in thread "AWT-EventQueue-0" java.lang.ClassCastException: javax.swing.JPanel
            at mw_recipebook.MainPanel.actionPerformed(MainPanel.java:173)
            at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
            at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
            ...I've used succesfully the method:((aClass)getParent()).aMethode();before, when using from a childPanel to call a methode in it's parentPanel, but from panel to frame it does not work.... help! How do I do that?
    Thank's

    ... or else you can try this:
    ( (JFrame)getRootPane().getParent()
    ).setTitle("Title");
    thank's allot
    I tought of getRootPane(), but not getRootPane().getParent()

  • Title on every frame?

    I'm trying to put a title on my movie which will be on every frame. It's a URL as it happens but on another occasion it might be copyright message. I don't seem to be able to find a title that doesn't fade in and out.
    Subtitle without the fading in and out would suit me fine and I can't believe it's not possible. Am I missing something here? Should I be looking for an add-on?
    Tony

    welcome fevrd to the  boards ...
    Kirk's advice is the easiest.. (illustrated How-To here ) ...
    but, 3rd party titles, as 'Place Title'/Slick5, geethree.com allows 'longer' titles.. which go 'over' many clips, ..

  • Why don't livetype titles match FCE frame size?

    Hi
    I've made some titles in livetype and imported into FCE but the frame size comes out smaller than the footage in FCE. Both are set to 720x576 anamormphic but the livetype clip doesn't fill the entire frame, just a smaller square in the middle. Is this an FCE setting or livetype setting that I have to change and if so where am I going wrong?
    Regards
    Adrian

    I use the following settings in LiveType Canvas, for Widescreen PAL titles and whole-screen movies:
    W = 1024 pix
    12.8" at 80 dpi
    H = 576 pix
    8" at 72 dpi
    Frame 25 fps
    Pixel Aspect Ratio = 1
    Uncheck "square pixels".
    Do this immediately on launching LiveType and before doing anything else with it. There is no need to set the anamorphic flag in FCE's Browser. It works for me - the resulting QT movie imports into FCE as Widescreen and fills FCE's canvas.
    BTW, I assume that you have FCE's Canvas set to "fit to Window"!

  • Programmatic to change the Frame title

    Hi all
    It's not possible programmatic to change the Frame title. Is there any way (not-documented) to change it?

    If I am understanding your question, you could do this:
    Set_Window_Property('WINDOW NAME', TITLE, 'ANY TITLE');
    I have used this on the When-New-Form-Instance trigger.
    Edit: Sorry I miss-read your question. My solution is for the window's title not the frame.
    Sure wish there was a way to delete my incorrect post.
    Edited by: Darksky on Mar 18, 2010 10:53 AM

  • Title and frames

    I have made a page with frames, and the title always say:
    "Untitled document"
    How do I change the title, when using frames?

    Change the title of the frameset document, not of the
    individual frames. If
    you are not sure which is the frameset document, then maybe
    you should
    reconsider using frames at all. They are not often the
    optimal choice for
    your layout.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "mariusmellebye" <[email protected]> wrote
    in message
    news:eu824l$3be$[email protected]..
    >I have made a page with frames, and the title always say:
    "Untitled
    >document"
    >
    > How do I change the title, when using frames?

  • How to remove title bar in awt frame?

    how can i remove the title bar of frame and make it fullscreen so as to cover all the desktop?

    how can i remove the title bar of frame and make it
    fullscreen so as to cover all the desktop?foll should suffice in a simple situation
    import java.awt.Window;
    import java.awt.Frame;
    import java.awt.Toolkit;
    public class BigWindow extends Frame
         public BigWindow()
              //get screen size
              int height = (int)Toolkit.getDefaultToolkit().getScreenSize().getHeight();
              int width = (int)Toolkit.getDefaultToolkit().getScreenSize().getWidth();
              //make parent frame invisible
              this.setVisible(false);
              //create a new window without borders and titlebar
              Window window = new Window(this);
              window.setSize(width,height);
              window.setVisible(true);
         public static void main(String args[])
              new BigWindow();
    }

  • How Can you dynamically change a canvas frame title?

    I am looking for a way to dynamically change the title of a frame on a canvas.

    Jim,
    frames on a canvas are graphic objects that cannot be controlled using properties. To obtain dynamic frame labels, all you can do is to have a Display Item instead of the frame label.
    Frank

  • Saving contents of jinternal frame

    Hi, I seem to have a problem saving files from jinternal frames. I created two files, the main GUI which holds the jdesktop pane and the other file (Documento) extends jinternalframe. I want to be able to save the current (active) jinternal frame but I have no idea how to do it. can anyone help me?
    import javax.swing.JInternalFrame;
    import javax.swing.JDesktopPane;
    import javax.swing.JMenu;
    import javax.swing.JMenuItem;
    import javax.swing.JMenuBar;
    import javax.swing.JFrame;
    import javax.swing.KeyStroke;
    import java.awt.event.*;
    import java.awt.*;
    import javax.swing.*;
    import javax.swing.event.*;
    import java.awt.Graphics.*;
    import javax.swing.JOptionPane;
    import java.io.*;
    import java.util.*;
    *This is the main GUI of the program.
    public class mainGUI extends JFrame
                                   implements ActionListener,
                                    KeyListener{
        JDesktopPane desktop;
        Documento frame;
         private Dimension screen = Toolkit.getDefaultToolkit().getScreenSize();
         private JPanel toolbar, editarea, resultarea, blankPanel;
         private JMenu file, edit, project;
         private JMenuItem f_open, f_new, f_save, f_saveas, f_exit, e_select, e_copy, e_paste, p_compile;
         private JTextArea resultfield, editfield,editArea, tstr;
         private JButton bcompile;
         private JFileChooser fc = new JFileChooser();
         private String filepath;
         private ImageIcon bugicon;
         private static int docNum = 0;
         private boolean b_openfile;
         File filename;
        public mainGUI() {
            super("DGJ Program Scanner");
            setSize(800,600);
              setLocation((screen.width-800)/2, (screen.height-600)/2);
            /*Creates the workspace*/
            desktop = new JDesktopPane();
            setContentPane(desktop);
            setJMenuBar(createMenuBar());
            /*Make dragging a little faster*/
            desktop.setDragMode(JDesktopPane.OUTLINE_DRAG_MODE);
          *This function creates the menu bar
        protected JMenuBar createMenuBar() {
             /*Initializes/instantiates the menu bar and its items*/
              file = new JMenu("File");
              edit = new JMenu("Edit");
              project = new JMenu("Project");
              f_new = new JMenuItem("Create new file");
              f_open = new JMenuItem("Open file...");
              f_save = new JMenuItem("Save current file");
              f_saveas = new JMenuItem("Save As...");
              f_exit = new JMenuItem("Exit program");
              e_select = new JMenuItem("Select All");
              e_copy = new JMenuItem("Copy selected");
              e_paste = new JMenuItem("Paste selected");
              p_compile = new JMenuItem("Scan current file for errors");
              /*Adds listeners to the menu items*/
              f_open.setActionCommand("f_open");
              f_open.addActionListener(this);
              f_save.setActionCommand("f_save");
              f_save.addActionListener(this);
              f_saveas.addActionListener(this);
              f_saveas.setActionCommand("f_saveas");
              f_new.setActionCommand("f_new");
              f_new.addActionListener(this);
              f_exit.setActionCommand("f_exit");
              f_exit.addActionListener(this);
              e_select.setActionCommand("e_select");
              e_select.addActionListener(this);
              e_paste.setActionCommand("e_paste");
              e_paste.addActionListener(this);     
              e_copy.setActionCommand("e_copy");
              e_copy.addActionListener(this);               
              /*Creates the icon of the bug*/
              bugicon = new ImageIcon("images/ladybug.gif");
              /*Creates the menu bar*/
              JMenuBar menu = new JMenuBar();
              menu.add(file);
                   file.add(f_new);
                   file.add(f_open);
                   file.add(f_save);
                   file.add(f_saveas);
                   file.add(f_exit);
              menu.add(edit);
                   edit.add(e_select);
                   edit.add(e_copy);
                   edit.add(e_paste);
              menu.add(project);
                   project.add(p_compile);
              /*Disables the save current file menu...(when program starts, no file is open yet)*/
              f_save.setEnabled(false);
              f_saveas.setEnabled(false);
            return menu;
        //React to menu selections.
        public void actionPerformed(ActionEvent e) {
            if ("f_new".equals(e.getActionCommand()))
            { //new
                createFrame(null);
                f_saveas.setEnabled(true);
            else if("f_open".equals(e.getActionCommand()))
            {//open documento
                   fc.setFileFilter(new SpanFilter());
                  int retval = fc.showOpenDialog(mainGUI.this);
                   tstr = new JTextArea();
                   /*This checks if the user has chosen a file*/
                if (retval == JFileChooser.APPROVE_OPTION) {
                    filename = fc.getSelectedFile();
                        filepath = filename.getPath();            
                        openFile(filename, new Point(30,30));       
            else if("f_save".equals(e.getActionCommand()))
                 try {
                      BufferedWriter out = new BufferedWriter(new FileWriter(filepath));
                      String str;
                      str = editArea.getText();
                      editArea.setText("");  
                      int length = str.length();
                      out.write(str, 0, length);
                      out.close();
                       } catch (Exception ex) {}
                       JInternalFrame fr = new JInternalFrame();
                       fr = desktop.getSelectedFrame();
                       Point p = fr.getLocation();
                        fr.dispose();    
                       openFile(filename, p);
            else if("f_saveas".equals(e.getActionCommand()))
                 fc.setFileFilter(new SpanFilter());
                  int retval = fc.showSaveDialog(mainGUI.this);
                if (retval == JFileChooser.APPROVE_OPTION) {
                    filename = fc.getSelectedFile();
                        filepath = filename.getPath();
                        if(!(filepath.contains(".dgj")))
                             filepath+=".dgj";
                      try {
                           BufferedWriter out = new BufferedWriter(new FileWriter(filepath));
                                String str;
                           str = editArea.getText();
                           int length = str.length();
                           out.write(str, 0, length);
                           out.close();
                       } catch (Exception ex) {}
                       Point p = frame.getLocation();
                        frame.dispose();
                   //     editArea.setText("");     
                       openFile(filename, p);
            else if("e_select".equals(e.getActionCommand()))
                 editArea.selectAll();
            else if("e_copy".equals(e.getActionCommand()))
                   editArea.copy();
            else if("e_paste".equals(e.getActionCommand()))
                 editArea.paste();
            else if("f_exit".equals(e.getActionCommand()))
            { //quit
                quit();
        public void openFile(File filename, Point p)
                        /*Reads the file*/
                        try {
                           BufferedReader in = new BufferedReader(new FileReader(filepath));
                             String str;
                             /*empties the textarea*/
                             tstr.setText("");
                             str = in.readLine();
                             /*Copy each line of the file into the temporary textarea*/
                           do{  
                          tstr.append(str);
                          str = in.readLine();
                          /* the "\n" is for the line to appear in the next line in the textarea,
                           * the "\r" is for windows system, wherein "\r" is required for the text
                           * to appear in beginning of the first line*/
                          if(str!=null)
                               tstr.append("\r\n");
                           }while (str != null);
                             /*Opens the new frame*/
                           createFrame(filename, filename.getName(), tstr.getText(), p);
                           in.close();
                       } catch (Exception ex){}
                      b_openfile = true;
                      f_save.setEnabled(true); 
                      f_saveas.setEnabled(true);   
         *Create a new internal frame.
        protected void createFrame(File f) {
             frame = new Documento(f);
         /*     frame = new JInternalFrame("Document "+(++docNum),
                  true, //resizable
                  true, //closable
                  true, //maximizable
                  true);
            docNum++;
              frame.setSize(600,400);
              frame.setLocation(20*(docNum%10), 20*(docNum%10));       
             editArea = new JTextArea();
              JScrollPane scroll = new JScrollPane(editArea);     
              editArea.addKeyListener(this);
              editArea.append("");
              frame.add(scroll);
            frame.setVisible(true); //necessary as of 1.3
            desktop.add(frame);
            try {
                frame.setSelected(true);
            } catch (java.beans.PropertyVetoException e) {}
          *Overwrite an existing internal frame for an open file
        protected void createFrame(File f, String title, String text, Point P) {
             frame = new Documento(title, f, P);
              frame.setSize(600,400);
              frame.setLocation(P); 
             editArea = new JTextArea();
              JScrollPane scroll = new JScrollPane(editArea);     
              editArea.setText("");
              editArea.addKeyListener(this);
              editArea.append(text);
              frame.add(scroll);
            frame.setVisible(true); //necessary as of 1.3
            desktop.add(frame);
            try {
                frame.setSelected(true);
            } catch (java.beans.PropertyVetoException e) {}
        //Quit the application.
        protected void quit() {
            System.exit(0);
         * Create the GUI and show it.  For thread safety,
         * this method should be invoked from the
         * event-dispatching thread.
        private static void createAndShowGUI() {
            //Make sure we have nice window decorations.
            //JFrame.setDefaultLookAndFeelDecorated(true);
            //Create and set up the window.
            mainGUI frame = new mainGUI();
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            //Display the window.
            frame.setVisible(true);
        public void keyTyped(KeyEvent k){}
        public void keyPressed(KeyEvent k)
             if(k.getKeyCode()==10)
                  editArea.append("\r");           
        public void keyReleased(KeyEvent k){}
        public static void main(String[] args) {
            //Schedule a job for the event-dispatching thread:
            //creating and showing this application's GUI.
            javax.swing.SwingUtilities.invokeLater(new Runnable() {
                public void run() {
                    createAndShowGUI();
    }here's the one that extends jinternalframe
    import javax.swing.JInternalFrame;
    import javax.swing.plaf.InternalFrameUI;
    import java.awt.event.*;
    import java.awt.*;
    import javax.swing.*;
    import javax.swing.event.*;
    import java.io.*;
    import java.util.*;
    /* Used by mainGUI.java */
    public class Documento extends JInternalFrame {
        static final int xOffset = 30, yOffset = 30;
         static JTextArea editArea;
         static int docNum = 0;
         static File file;
          *The constructer for a new documento
        public Documento(File file) {
            super("Document "+(++docNum),
                  true, //resizable
                  true, //closable
                  true, //maximizable
                  true);//iconifiable
            docNum++;
              this.file = file;
              setSize(600,400);
              setLocation(xOffset*(docNum%10), yOffset*(docNum%10));
    //        setUI(new InternalFrameUI());
         *The constructor for an existing documento
        public Documento(String title, File file, Point p) {
            super(title,
                  true, //resizable
                  true, //closable
                  true, //maximizable
                  true);//iconifiable
              this.file = file;             
              setSize(600,400);          
              setLocation(p);
    //        setUI(new InternalFrameUI());
        public int getNum()
             return docNum;
        public File getPath()
             return file;
    }I know it's pretty lengthy...it's probably all messed up since I'm lost :p
    Thanks if you could help me!

    I would be glad to help, but first I need a clarification. If I understand properly, you have two Java classes that you have created: the "main GUI" (which is most likely a JFrame extension in which the constructor adds a JDesktopPane to the content pane) and "Documento" (which you say is a JInternalFrame extension).
    My question is this: what do you mean by "save the current JInternalFrame"? Do you want to record its position, location, and identity? Do you want to save its contents?
    Thanks. Good luck. ;)

  • How to get the frame rate of my application

    Hi again...
    How can I get the frame rate of my application?
    I also want the frame rate value to be the title of the frame, updated every second. How do I do that?
    thanks in advance...

    To get the path where your application has been installed you have to do the following:
    have a class called "what_ever" in the folder.
    then you do a litte:
    String path=
    what_ever.class.getRessource("what_ever.class").toString()
    That get you a string like:
    file:/C:/Program Files/Cool_program/what_ever.class
    Then you process the result a little to remove anything you don't want:
    path=path.substring(path.indexOf('/')+1),path.lastIndexOf('/'))
    //Might be a little error here but you should find out //quickly if it's the case
    And here you go, you have a nice
    C:/Program Files/Cool_program
    which is the path to your application.
    Hooray

  • How to contain all windows in Application Frame cs5 MAC

    Hello,
    This is my last resort to hopefully find a solotion to my problem.
    Ive recently switched from PC to MAC, and since the switch I have had some trouble with photoshop (apparently its not the same?)
    Now please bear with mem I have trouble explaining this properly hehe
    Okay...
    When I have two photos open in cs5 in tabs, If i drag one out of the tab and then click on the photo still tabbed the one that isnt tabbed disappears! Its floating in behind photoshop over my desktop. If I minimize photoshop, I can see the file floating there?
    Is there any way to keep all files (windows) contained within the application frame itself, so they no longer "float" behind the photoshop application frame??
    I hope this makes enough sense!
    I never had trouble with windows floating outside of photoshop when I was using PC...

    Hi,
    Do you have the application frame in photoshop cs5 turned on or off?
    Window>Appliction Frame
    A check mark beside the word application frame means it's on.

Maybe you are looking for

  • Optical out (toslink) woes

    Hi, I've been tryin three different Airport Express basestation all with the same result: The optical output that connects to external speakers or digital amps does not seem to work. I tried connecting a B&W Zeppelin and my old iPod Hi-Fi. No chance.

  • Repeating Values on axis (SSRS Chart)

    Hi ,      i have repeating values on axis .i am not sure sure how to get rid of this problem.i did workaround like changing interval property expression to iif(max(count(Fileld))<4,1,0) but it didn't help.i have attached  image file for reference .

  • PE51 -- HR Form

    Hi,       How Do We Add ATtendance And Absencs In Payslip HR Form In PE51.... Plz Reply ASAP ... Thanks In Advance

  • Flash problem in IE - not the usual one.

    I am new to the game here. I've created some pages that use a Flash video player. The user can click on a list of available videos (XML generated), and the video will load in the player and play. Works fine in IE and Safari on Mac. Works terrible in

  • Iphone 4s having so many problems after upgraded to IOS 6.1

    Hi! My husband's iphone 4s was in roaming configuration for 15 months.  He recently got home and he then upgraded his software to IOS 6.1, problems star to pile up!  His signal was becoming unstable, he cannot be contacted even there is a signal prov