Changing the title of the Command Window

How do i change the title of the command window form "C:\Programs\jdk1.2.1\bin..." etc to something more useful like "MyProgram"?
Many thanks
Cath

What I amproposing is that if we all merge on the same chapter and examples then we can ask each other specific questions and all have the same benchmarrk and reference points!!
I plan to advertize this on other lists and if we all use the same text then we are all the much further ahead instead of having questions from all sorts of text and nobody knowing what the other is doing and having completely different code and examples!!
What do yu guys think?
Personally, I am in chapter 8 just staring SWING. But I don't mind going back to the first part to help othere newbies (as long as we have the same text and the examples are from the text).
For example, I have modified example 8-1, so that instead of just showing colors in the background, the buttons show a photo with text, shows text and changes the background, and will do something else ( don't know what yet)! But the whole thing is still based on the example code on page 323.
I had some problems trying to figure how to do this... but if we all work on projects that are based on the code examples for the same text, we stand a better chance of all learning faster...
So Yes, it is a study group using emails or chats...forum.
The main difference is that if a person needs help we can all share code with them (NOT NECESSARILY DOING THE PROJECT...unless you wan to) but with the same book {Core Java2-Fundamentals or Core Java2- Advanced Programming} and with the help of at least one senior programmer that we have on the thread already ... with the otheres like you that want to join...all using the same book....Then no matter what project you are working on (from the book or work or school) we all have the same text to help each other and to reger each other to.
Moreover, there never need to be another instance where the answer comes back: "read the tutorial" or check the docuemtation.... Those are good answers if you know what you are lloking for...but sometimes a person may need an example in working code.... and the tutorials don't answer specific questions where a person may not quite understand.
So,
why not stop by the New Study group that is going?...you can find us in forum New To Java Technology
under the thread of "is anyone learning Java using the Sun Microsystems book...."
In the meantime.... the person that was asking for hel here has not posted anything ... So I wonder if she realy wanted help?
I will hang out here fopr another day or so and see if she answers my questions to her .. If nt then i will assume that this is a dead thread and I will no longer be here. You know where you can find me....
phil

Similar Messages

  • How to set the title of an urxvt window?

    Hello,
    I have read the manpage and FAQ on the urxvt website, but my problem persists:
    When I try to set the title of an urxvt window, for example:
    $ urxvt -title test
    then the new window shows for a second the title "test" and then switches  to "username@hostname:~".
    Yes, I have
    case $TERM in
    xterm*|*rxvt*|Eterm|eterm|rxvt-unicode|urxvt)
    PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME%%.*}:${PWD/$HOME/~}\007"'
    screen)
    PROMPT_COMMAND='echo -ne "\033_${USER}@${HOSTNAME%%.*}:${PWD/$HOME/~}\033\\"'
    esac
    in my .bashrc.
    But I think, the explicit command line option "-title" should break the .bashrc, right?
    The default setting by .bashrc is intentional, but in this specific case I would like to set the window title by hand.
    How can I do that?
    Last edited by indianahorst (2011-06-22 11:01:34)

    I would recommend that you not use the PROMPT_COMMAND to set your bash prompt at all.  Use the PS1 environment variable. By using PROMPT_COMMAND, you are invoking a subshell each time you hit return; which is most likely unnecessary.
    In fact, you are probably already setting PS1 in your .bashrc; and that is what is changing your window title.  You can set PS1 to a different value, and then it will not reset your window title with each command.
    Just set PS1 in your .bashrc to:
    PS1="[\u@\h \W]\$ "
    You can see a more complete list of the available \u, \H, etc. options here.
    If you do wish to reset the urxvt window title by setting PS1, do the following:
    PS1="[\u@\h \W]\$ "
    PS1="\[\e]2;\u \W\a\]$PS1"
    Edit:  As I look at this a little closer, I see that your PROMPT_COMMAND is indeed setting your window title.  You could change it to the following:
    PROMPT_COMMAND='echo -ne "${USER}@${HOSTNAME%%.*}:${PWD/$HOME/~}"'
    But I would still not use PROMPT_COMMAND and just set PS1 instead.
    Last edited by rockin turtle (2011-06-23 03:53:57)

  • Display Server Name on the title of the WINDOW : Best Way to Implement

    our weblogic is deployed in a clustered environment(group of weblogic instances)(say for eg) Server01,Server02,Server03). Every time the request will go to any one of the weblogic instances. Now i need to display the server name on the title of the IE window.
    Web Application : - Server02(request 1)
    Web Application : - Server03(request 2)
    For that i've followed the following approach.
    <filter>
    <filter-name>AppFilter</filter-name>
    <filter-class>com.src.app.AppFilter</filter-class>
    </filter>
    <filter-mapping>
    <filter-name>AppFilter</filter-name>
    <url-pattern>/*</url-pattern>
    </filter-mapping>
    All request will go thro' the filter.
    In filter, dofilter method of AppFilter, set the server name as below.
    request.setAttribute("HOSTNAME", (" " + InetAddress.getLocalHost().getHostName()));
    In all jsp title,do the following.
    <title>WEB Application <%= request.getAttribute("HOSTNAME") %></title>
    This is working fine. I would like to know, if there's any better way of doing this?

    Thanks for all your replies
    user13118480,
    We have one admin server and 3 managed servers.
    3 managed servers are in different machines(sprd01,sprd02,sprd03).
    we have a big ip configured against these managed servers. we expose only the big ip to the end user.
    Based on load, the admin server will route the request to any one of the managed servers.
    Reason for displaying the server name on window
    The reason for displaying the Server Name (m/c name where managed server is running) on the window , is to help the developers to find out
    the current logs.
    log (app.log - logger file - log4j ) will go to sprd01,sprd02,sprd03.
    now if we display the servername on the window, then we can direct go the machine and look for the logs.
    otherwise,developer has to search for all in all the boxes.(sprd01,sprd02,sprd03)
    Questions:
    --Now i would like here more abt the Host HTTP header.
    *1. is my approach to retreive the host machine name is good? is there any other simple way to get the host name?*
    *2. as per your answer, are you asking me to get the host name from httpheader. request.getRemoteHost()?*
    *3. is there any way i can set the title of the browser window from filter itself instead of setting requestAttribute in filter and reading the same in*
    all the jsp's?
    4. Is there any better way to implement this requirement?
    baftos,
    Reason for using a filter.
    Tomorrow if i dont want to display the machine name in the window,
    then all i need to do , is to change the filter statement as follows, instead of changing all the jsp's.
    request.setAttribute("HOSTNAME", "");

  • Displaying the title of the open panel when attached to a window...?

    This is probably a really obvious question... but when displaying the open panel as a panel/sheet attached to another window - is there a way to display the panel's title, or some other way to prompt the user?
    For example, I have a preferences window that the user can click a variety of controls, several of which display the open panel... I'd like some way to remind the user which path to select (eg. "Select the path for BLAH").
    One way around it is to temporarily set the title of the window the open panel is attaching to, but I have several windows, and the panel may attach to any one of them... I'd rather not test for each possibility (because, for example, the nib for that window might not be loaded yet, etc.).
    Any ideas?

    Wow, I should probably get some sleep...
    The answer is obvious... after all, I need to know which window to attach the panel to.

  • Get the title of a specific window not part of your app

    For an app I am writing I need to get the name of the titles of the current programs running .
    Does anyone know of a way to accomplish this (get the title of a specific window not part of your app) in Java?
    Thank you very much.
    Erik

    Crossposted, obviously with no concern over wasting the time of would-be answerers.
    http://forum.java.sun.com/thread.jspa?threadID=686650

  • How to Change Date Format in the Title of the report.

    Hi Everyone,
    I want to change the Format of the Date in the title(Query run Date)taken by report through the variable "&Date" .
    The Format available is DD-MON-YY
    Desired Format is DD-MON-YYYY.
    Please let me know the same as early as possible.

    Hi NP,
    What I try to do is to reformat the default &date inserted into the Title for Discovere Plus and Viewer. When you edit the Title for the report, you can select the date from the Insert dropdown list to display the date when the report was run. The Date (shown &Date in the Title) has a default format of DD-MON-YY. As I have other date parameters displyed in the Title that have the format of DD-MON-YYYY specified by the user, I want to have the &Data in the same format. Please advise me how to achieve this.
    Thank yiou very much,
    J.K.

  • I want the title on the browser to change when one of the frames changes in the Frameset.

    I am using frames (please don't tell me off!) and PHP.
    I want the title on the browser to change when one of the
    frames changes in the Frameset.
    Normally the title of the browser comes from the Frameset,
    But I am sure I have seen websites where the title changes
    depending on one of the frames... how is this done?
    C

    Then don't use frames.
    > Normally the title of the browser comes from the
    Frameset, But I am sure I
    > have seen websites where the title changes depending on
    one of the
    > frames...
    > how is this done?
    Show us one and we'll tell you.
    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
    ==================
    "colinwalton" <[email protected]> wrote in
    message
    news:epuu1t$kgv$[email protected]..
    >I am using frames (please don't tell me off!) and PHP.
    >
    > I want the title on the browser to change when one of
    the frames changes
    > in
    > the Frameset.
    >
    > Normally the title of the browser comes from the
    Frameset, But I am sure I
    > have seen websites where the title changes depending on
    one of the
    > frames...
    > how is this done?
    >
    > C
    >

  • Hiding URL in the title bar of external window

    Experts -
    Scenario:
    On click of 'LinkToAction' element, we are opening up a pdf document (stored on portal content server)
    in an external window, using:
    CALL METHOD LO_WINDOW_MANAGER->CREATE_EXTERNAL_WINDOW
        EXPORTING
          URL            = LV_HOSTNAME
          TITLE          = 'My Title'                             "Does not work
          MODAL          = ABAP_FALSE
          HAS_MENUBAR    = ABAP_FALSE
          IS_RESIZABLE   = ABAP_TRUE
          HAS_SCROLLBARS = ABAP_TRUE
          HAS_STATUSBAR  = ABAP_FALSE
          HAS_TOOLBAR    = ABAP_FALSE
          HAS_LOCATION   = ABAP_FALSE
        RECEIVING
          WINDOW         = LO_WINDOW.
    We have a requirement to hide the location bar and the title of the window (in which the PDF is displayed). We are able to hide the location bar but the URL still appears in the title bar.
    We have tried the following code to set the title, but it is not working.
    CALL METHOD LO_WINDOW->SET_WINDOW_TITLE
      EXPORTING
        TITLE  = 'My Title.                    "Does not work
      LO_WINDOW->OPEN( ).
    Any help on how to achieve this will be appreciated.

    This is not a web dynpro restriction - but one that has been brough about by the browser designers.
    Because of the number of people falling to phishing attacks the designers of browser have all decided to always show the URL of any popup HTML windows. This stops malicious pop-ups from pretending to be something they are not and stealing user's data.
    If the world were a nicer place you could have your pop-up without the URL - but it isn't and it's probably better that your users have a least a little help in identifying if they are being scammed.
    Cheers,
    Chris

  • How can i change the title in the system form 'Sales Order Form'

    hai
    how can i change the title in the system form 'Sales Order Form'  and then how can i call this form?

    Hi Sanjoy,
    You find the form property like this :
    SAPbouiCOM.Form oForm = null;
    oForm = SBO_Application.Forms.Item(pVal.FormUID);
    oForm.Title = "New Title";
    Michael

  • On the most upper left of the Title Bar (the part where the x box is on the right side) where the Firefox icon should be (on the upper left corner) I have a printer icon instead. Why did that happen and how do I change it? Thanks for any help.

    On the most upper left of the Title Bar (the part where the x box is on the right side) where the Firefox icon should be (on the upper left corner) I have a printer icon instead. Why did that happen and how do I change it? Thanks for any help.

    I don't actually have an answer for you, but ditto on changing things that aren't broken. Drives me crazy!!

  • I made a duplicate copy of an imovie HD project and when I updated the titles on the copy, the video stuttered . I'm using Snow Leopard OSX. The length of the movie increased unexpedtedly too.

    I made a duplicate  of an imovie HD project so I could have two different versions. I tried making the copies both by using File> Duplicate and the Save As command in imovie.
    When I changed the title on the copy, the video stuttered when I played it back.  Also the overall length of the movie increased by about 6 seconds throwing off some sync even though the replacement title was exactly the same length in seconds and frames as the one I replaced.
    any thoughts how to fix this?
    I'm using OSX 10.6.8.
    thanks.

    *24 December 2009*
    *Dear Mac Users:*
    Hello. Thanks to AppleMan1958 for answering my question about how to edit an iMovie project
    on another computer.
    Here is a question related to the process of transferring the iMovie '09 project file from my friend's
    computer to an external drive so that I can edit that project in iMovie '09 on my MacBook Pro:
    How do I know if my Smart Disk FireLite portable external drive is formatted to MAC OS X Extended (journaled)? How I do format this Smart Disk FireLite USBFLB80C to MAC OS X Extended (journaled)?
    When I connect the Smart Disk FireLite to my MacBook Pro via USB, open iMovie '09, and select View
    Events By Disk or rather "Group Events By Disk," an icon for the FireLite external drive appears, but there is a yellow triangle with a black exclamation mark on the icon for the external drive. What does this "warning" mean? There are MP3s of music on the same external drive and they open just fine in iTunes. The one iMovie project file that is already on the drive will not open up in iMovie.
    So, how do I properly format this external drive in order to transfer an iMovie project file from my friend's computer so that I can edit it on my MacBook Pro using iMovie '09?
    Sincerely,
    Corey

  • I can't find out how to turn on and off the title of the song, name of artist, and time remaining to a song.

    I can't find out how to turn on and off the window above the iTunes list that includes the title of the song, name of artist, and time remaining to a song. It seems to appear rather randomly on my iMac.

    You can download a complete iPad User Guide here: http://manuals.info.apple.com/en/ipad_user_guide.pdf
    Also, Good Instructions http://www.tcgeeks.com/how-to-use-ipad-2/
    Apple - iPad - Guided Tours
    http://www.apple.com/ipad/videos/
    Watch the videos see all the amazing iPad apps in action. Learn how to use FaceTime, Mail, Safari, Videos, Maps, iBooks, App Store, and more.
    You can download this guide to your iPad.
    iPad User Guide for iOS 5
    http://itunes.apple.com/us/book/ipad-user-guide-for-ios-5/id470308101?mt=11
     Cheers, Tom

  • Importing content when the titles are the same

    Greetings,
    I am trying to import content which spans several CDs. Unfortunately, the tracks on each CD have common names (i.e., CD 1 Track 1 - My Dog has Fleas; CD 2 Track 1 - My Dog has Fleas). Other than renaming the tracks, is there another way to import this content?
    TIA,
    Scott
    Windows 2000
    4th Gen iPod 20g Windows 2000

    A single track will contain fields for the artist name, album name, title, track number and CD number. A multi-CD release will be given the CD number data - CD 1, CD 2, CD3 etc. Also, often the title of the CD itself will contain the CD number ie - Dirty Dog CD 1, Dirty Dog CD 2. Either way, iTunes will be able to tell that 'My Dog Has Fleas' on CD 1 is not the same as 'My Dog Has Fleas' on CD 3.
    If you want to be able to tell which is which without looking at the CD # field, just make sure that the album title contains the CD number. Import the first CD. If the CD name doesn't contain that data just select all the songs from the CD, select Info, and then add the CD # to the CD name.

  • Retrieving the title of the application that has the focus

    This question applies to Windows.
    I wonder if it's possible with java to get the title of the application (this could be any application) that currently has the focus.
    Thank you for any help

    No. You would have to use Windows-specific JNI coding.

  • Need info on how to get the little pictures like Adobe website has next to the title of the page??

    I know how to enter title text but i need to know how to get an image next to the title of the page please help??

    http://alt-web.com/favicons.shtml
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    http://alt-web.com/
    http://twitter.com/altweb

Maybe you are looking for

  • Please help - this computer already associated with an apple id

    We have 5 family members all using the same mac, each with their own login and password.  Each person also has a seperate apple id/ itunes account - and we want to download all the music onto the hard drive. When I go to do that for one of my daughte

  • Use of password file?

    good day ! i am confused and still cannot digest the need to use a password file! can anyone provide me with links or any explaination on why we need a password file! i need the password file so that i can setup dataguard! thnx

  • How to transfer purchased apps from iPhone to macbook

    Hey guys, I'm trying to transfer a couple of apps that I purchased on my iPhone, and I'm trying to get them on my Macbook air without buying them agin. The problem is that I don't know if the method thats been provide for us on apple/support.com is a

  • What is the best preference settings to use for CS5 Suites

    I upgraded my PC a few months back and I'm currently running the CS5 suites.  A few weeks ago I started having issues with the CS5 suites freezing up & in some cases even crashing on me.  I always run Illustrator, Photoshop, Indesign & bridge at the

  • HFM Administration Advice

    I would like some advice currently I am an administrator of Hyperion Essbase/Panning but I will be switching jobs soon and I will administrating HFM.  I have used HFM in a previous job but have never administered that or Enterprise.  I was wanting to