JPopupmenu - cannot set the title...

Hai Friends,
I couln't set the title for the jpopupmenu using the following....
JPopupMenu menu = new JPopupMenu("My Title");
Is there any other way... can anyone give me suggestions.....
Regards,
Ciya

From the documentation:
the string that a UI may use to display as a title for the popup menu.
I've never seen a UI that actually uses this field. At least no default UI that comes with the JDK.

Similar Messages

  • How to set the title of pages created in Webcenter Spaces?

    Hi
    I need to set the title of the pages created in webcenter spaces. How can i do that? By default when i create the page in webcenter spaces the page name with which i created the page is coming up on the browser tab. But i want the browser title to be different from the page name. Is there a way to do this? I tried with using javascript and setting "document.title" but it works only partially. That is when the page is loading it shows the text that i have set using javascript but it doesnot remain persistent. As soon as the page loads it again resets back to the name of the page :(
    I also tried adding html markup on to the page in edit mode and tried giving in the <title> tag but it is not getting applied, as soon as i click on apply it just refreshes the page and my changes are gone.
    Please i need some help around this asap as it is critical.
    Thanks

    Thanks for the reply Jaap.
    It was really helpful. But i need further help on this.
    I need to change the browser title based on the tab selected. And here the tabs on spaces page is actually coming from a custom task flow. Any idea how can i achieve this? And there is no page refresh involved.
    Some help on this please.
    Thanks

  • 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)

  • How-to set the title of  a View

    Hi,
    I'm a very newbie of Obj-C and InterfaceBuilder.
    From three days I'm fighting with my iPhone app to set the title of a view.
    I've the MainWindow.xib with a UITabBarController; each tabbar's viewcontroller is on a separate xib (i.e.: the GUI of every button of the tabbar is on a different xib file).
    In IB I set up the top bar property to Translucente etc... In Xcode, in the viewDidLoad I set the self.title to something... but the top bar is never shown!!
    I also tried to set self.navigationItem.title... but nothing...
    To see the top bar do I have to use a NavigationController inside every "button" of the tab bar?? Or is the top bar property of IB not working??
    Thanks to all...

    Wenwen,
    View Function dropdown "standard view" is just making the ALV to display the ALV standard configuration (so it will display the ALV the way is designed).
    now if you want to change that to your OWN VIEW you just need to click in the SETTINGS (ALV TOOLBAR at the right end) and then configure your ALV the way you want to be display. After that click SAVE AS and you can name the VIEW to your own and also you can click INITIAL VIEW checkbox in order to display always that for youl.
    Please note that this is a user base personification so this will be only available for you.
    if you want to have your own view for every user then you need to enhanced the ALV in a POST-EXIT method and do not allowed user personification.
    you can disable user personification at the application level in the parameters tab.
    hope this help!
    Jason PV

  • In iMovie 11 I cannot set the duration of my photos, iMovie 09 allowed this , anyone know what to do?

    In iMovie 11, I cannot set the duration of the photos, iMovie 09 allowed this, anybody know the solution?  I use transitions between photos and want to set the timing because I am setting the whole thing to music.

    I have been unable to find this error on the help pages
    Error 1413 when Updating or Restoring an iPod

  • I wish to set a repeat for an event but I do not get a customise option on my iphone 4s so cannot set the third monday of the month - only day, weekly 2 weekly monthly or annually - how do I resolve the problem ?

    I wish to set a repeat for an event but I do not get a customise option on my iphone 4s so cannot set the third monday of the month - only day, weekly 2 weekly monthly or annually - how do I resolve the problem ?

    Week Cal uses the calender database already on your phone. It's just a different front end.

  • CreateNonModalExternalWindow not setting the title

    Hi,
    I am using createNonModalExternalWindow to open up a document.The document opens up fine but the document name is not the title I set, it's the complete URL. I tried setTitle and I tried using createExternalWindow also but got the same result.
    Any ideas.
    Thanks.
    MS.

    Hi MSR,
        When using a URL to launch a new window with the createNonModalExternalWindow API, the title String doesn't work. I don't know why the API has a title. Since a new browser window is launched with the requested URL the browser will take the title that is set in the HTML file. Since Webdynpro is not generating the HTML in this case there is no possibility of setting the title through Webdynpro.
       You can only set the Title for Webdynpro windows. The setTitle() api will work with Webdynpro windows only. While using the createNonModalExternalWindow or createExternalWindow the title in the browser window will be the same as the one when you directly launch the URL in the browser.
    Regards,
    Sanyev

  • Xcelsius Scenario Button cannot set the Default Scenario

    Hi,
    I am facing a problem with the Scenario Button in Xcelsius the problem is i cannot set the Default Scenario in the Dashboard .
    I can save load delete the the scenario but if i have 3 scenario and i want to make one of them as default is does not work.
    I think there is some browser setting for this and i have already configured the storage setting for the browser .
    Warm Regards,
    Mishra Vibhav

    Hi Thijs
    Thanks for your update, I think this really helps me. And I have one more question.
    I have seen a SAP notes regarding the Scenario function, the content is as below.
    You use the Local Scenario button to save the final result of a specific simulation (created scenario) and return to it in the future. It only saves the scenario on the local machine where it was created. So you can access the scenario from the same machine, but you cannot transfer scenarios from one computer to another.
    As per the note we can't transfer scenarios from one computer to another, my question is: If we publish the dashboard to inforview and save the scenario, the scenario will be saved in the BOE repositary or still on the local PC, and could the scenario be able to share among different users?
    Thanks a lot

  • AMD 3000+ cannot set the fsb in order to boot

    Hi,
    My system below worked fine with an AMD 2100 chip. I recently bought a 3000+ chip and slotted in to my PC - all booted up fine.  I then changed the FSB within bios to 166 - and then rebooted - the machine didn't boot and I had to clear the CMOS.
    I worked out that I cannot set the fsb to anything above 139 fsb else the machine won't boot and I have to reclear the CMOS...I have no idea what to do
    Anyone got any ideas pleaaaaseee?????
    btw I took the cpu down to the dealer and it worked fine there.
    AMD Barton 3000+ (333)
    2 x 256mb PC2700 ram
    MSI 4800 AGP 8X videocard
    Firewire Card
    DVD RW
    CD RW
    80 Gb HD
    120 GB HD
    PSU 350w - +3.3v / 28a
    +5v / 30a
    +12v / 15a

    Hi,
    Sorry my fault...
    but before I give you my system spec - I stuck in a 550W power supply and all is fine.
    However when I clock it up to 166 system crashes - better ram needed I guess.
    But FSb at 160 is fine....
    Considering its warm weather at the mo - my machie hits around 50 -55 degrees when playing something like fs2004.
    Thanks for your replies guys!
    M
    AMD Barton 3000+ (333)
    2 x 256mb PC2700 ram (non branded)
    MSI KTV4-L MB -
    MSI 4800 AGP 8X videocard
    Firewire Card
    DVD RW
    CD RW
    80 Gb HD
    120 GB HD
    PSU 350w - +3.3v / 28a
    +5v / 30a
    +12v / 15a

  • Cannot set the initial size of nested JFrame in NetBeans 5.5.

    For some background; I'm trying to design a small configurable, multi-market clock for Traders of foreign currency. Several international market times will be displayed and each will change color as that market opens and closes. The user will be able to select specific foreign markets and configure several options such as color and size.
    I was trying to use a JFrame for the initial window and an undecorated JFrame to hold the clocks and their labels. In the GUI builder for the initial JFrame, I dragged a JFrame and dropped it outside the original to add an (other Component). My problem is that I can't set the prefereedSize or the minimumSize properties for the nested JFrame. When I run the program, a button sets the second JFrame visible but at (0,0) size which when undecorated is invisible, and when decorated shows only the Min/Max/Close buttons. Am I just going about this all wrong or is this a bug
    I am running Java Version 1.5.0 (build 1.5.0_08-b03)
    Rick

    I have tried to use several different components but I have not been able to get them to appear as a component, undocked from the main window.
    Another idea that I tried was to have the whole program run from the same frame and then just set the window as undecorated and hide the menu bar. Unfortunately decorated state cannot be changed after it is displayable or packed. Besides that, how do you then make it moveable when there is no title bar? So many questions? Any other suggestions?

  • Setting the title font and axis labels in a graph created with the Report Generation Toolkit

    I'm using the LabVIEW Report Generation Toolkit for Microsoft Office to generate Excel worksheets containing plots. Unfortunately, the default font size used in the plots is huge (see attached worksheet). I was able to use Excel Set Graph Font.vi to reduce the size of the axis labels, but there does not appear to be a function to do this to the title and legend. In addition, there does not appear to be a function to set the axis text labels. Before I write my own, has NI released additional functions to perform these tasks?
    Thanks for your help,
    Zach Lerner
    Software Engineer
    OnWafer Technologies, Inc.
    Attachments:
    Test1_-_embedded_graph's_title_and_legend_font_is_huge.xls ‏14 KB

    Hello Zeidan
    The graph title and legend font sizes can be changed by accessing a low level VI (Excel_Insert_Chart.vi) that is part of the excelsub.llb that is located at (C:\Program Files\National Instruments\LabVIEW 8.2\vi.lib\addons\_office). This VI is called dynamically from within the Excel Insert Graph.vi and it uses VI server technology to access the Excel exposed properties. Attached to this post is an image of the block diagram of this VI after I have modified it to set the font sizes of the title and legend to 15. The circles in the image represent what I had to add to accomplish this.
    Best Regards,
    Ayman Kabire
    Attachments:
    Excel_Insert_Chart.JPG ‏99 KB

  • Setting the title for File download dialog when using content-disposition

    I am trying to send a file from server to client (browser). I am setting the content type of the resopnse and using the "content-disposition" header and giving the filename.
    But the issue is, when it is downloading and the dialog box is showing the progress bar, The title of the dialog box is showing something like "40% of localhost:9080.....". It doesn't show the file name in the title bar. Also, if the URL is very long (I am passing some get parameters and the servlet name is also long), I get junk characters like small boxes.
    How to set this title in the servlet?

    Is there a reason why you have to use FileReference.Save versus File.browseForSave?  In Adobe AIR, the File class, which extends the FileReference class,    provides more capabilities and has less security restrictions than the FileReference class.  Using File.browseForSave, it has a title:String parameter which is a string that is diplayed in the title bar of the dialog box.

  • Cannot set the status CLSD

    We cannot assign the status Complete (business ) for some Refurbishment orders.
    We already run the settlement rule but we received the message below:
    "G/L account ABC requires a valid tax code". Please help......
    As I have not much dealt with this kind of issues, If feel there is some setting change in the taxcode.
    How do I check and compare the tax code and other related setting of this GL and the other..

    HI Ritu,
    Check transaction FS00 and maintain * in the Tax field for the G/L account XXXXXXXXX
    Execute FS00 transaction then Enter the G/L account & Company code. In Control data tab , change the Tax category to All tax types allowed or - Only input tax allowed based on your necessity
    Regards,
    Sanjeev

  • Cannot set the default value of an item in the detailed table

    Hi,
    I have Master-Detail group, both are Table formats.
    I need to set the default value of an item in the details row to the value of an item in the selected row in the Master table.
    I tried Default Display Value=#{row.MasterItem}, but it seems it is trying to access current details row instead of the Master.
    I tried #{bindings.MasterGroupColumnName.inputValue}, but it does not work.
    Any ideas
    Thanks in advance
    Mohamed

    I think I now what I'm doing differently, I had the "New Rows" JHS property of the detailed table group "empty" instead of the default "2" value.
    It seems that "Default Display Value" expression works only for the new records specified in the "New Rows" property. But when I try to "Add" new record using the "Add Row" button, the new record inserted does not have the default values generated, only has values populated for the items of the FK (in the view link) but not the ones set through the property.
    I guess in a nutshell, how I can get the details item to behave like the FK columns?
    Thanks much
    Mohamed

  • Cannot set the printBlack printPreference in InDesign

    I am finding myself running into a brick wall and it is upsetting me greatly. It's a problem with setting the printPreferences for a document. Here is the code I have:
        with(document.printPreferences) {
            activePrinterPreset = outputPreset;
            pageRange = outputRange;
            for (var j = 0; j < allInks.length; j++) {
                document.inks.item(allInks[j]).printInk = false;
            for (var k = 0; k < printInks.length; k++) {
                if (printInks[k].toString() === "Black") {
                    $.writeln("Found Black!");
                    printBlack = true;
                    $.writeln("Set Black!");
                } else {
                    document.inks.item(printInks[k]).printInk = true;
            if (offsetJob) {
                // If it's an offset job, we might need to change page sizes.
                if (productType === "HI-N13W") {
                    paperSize = PaperSizes.custom;
                    paperHeight = 12.5;
                    paperWidth = 8.5;
                } else if (productType.subString(3,5) === "PC") {
                    paperSize = PaperSizes.custom;
                    paperHeight = 8;
                    paperWidth = 12.5;
                } else if (couldBeBothJobs.toString().indexOf(productType.subString(3,5)) > -1) {
                    paperSize = "US Letter";
                } else {
                    paperSize = PaperSizes.custom;
                    paperHeight = 8;
                    paperWidth = 25;
    In the first FOR loop, you'll see that I have first turned off ALL of the inks in the document for printing. I then only turn on the ones in the "printInks" array in the second FOR loop. If, however, the word "Black" exists in the array, there isn't an Ink for it, so instead, I want to set the built-in printPreference "printBlack". (Which complements the other three—printCyan, printMagenta, and printYellow.)
    It's just supposed to be a boolean value, according to the InDesign CS6 Object Model Reference. However, whenever the script gets to that point, it halts. Pasting just that small bit of code to a fresh document, just so I can see the error message, gets me this:
        The property is not applicable in the current state.
    Huh? What does this mean? And more importantly, how can I fix it? I know that trapping has to be off before this property can be set, but I've definitely made sure that it is off. Can anyone please help?

    Yes, that took care of it.  Instead of invoking an existing Print Preset, I just created a new, temporary one and gave it all of the properties of the existing one.  Thus, the result is:
                with(document.printPreferences) {
                    tempPreset.printer = Printer.POSTSCRIPT_FILE;
                    tempPreset.ppd = "OYO Imagesetter";
                    tempPreset.pagePosition = PagePositions.CENTERED;
                    tempPreset.paperSize = PaperSizes.CUSTOM;
                    tempPreset.paperHeight = "12.5 in";
                    tempPreset.paperWidth = "6.5 in";
                    tempPreset.colorOutput = ColorOutputModes.SEPARATIONS;
                    tempPreset.trapping = Trapping.OFF;
                    tempPreset.screening = "60 lpi / 600 dpi";
                    tempPreset.sendImageData = ImageDataTypes.OPTIMIZED_SUBSAMPLING;
                    pageRange = outputRange;
                    // Now let's turn off all of the CMYK colors.
                    tempPreset.printCyan = false;
                    tempPreset.printMagenta = false;
                    tempPreset.printYellow = false;
                    tempPreset.printBlack = false;
                    // Then we turn back on BLACK if it exists.
                    for (var k = 0; k < printInks.length; k++) {
                        if (printInks[k] === "Black") {
                            tempPreset.printBlack = true;
                        } else {
                            document.inks.item(printInks[k]).printInk = true;
                    // If this is a four-color process job, then turn back on all of the process colors.
                    if (processJob) {
                        tempPreset.printCyan = true;
                        tempPreset.printMagenta = true;
                        tempPreset.printYellow = true;
                        tempPreset.printBlack = true;
                    // That concludes OYO seps.
                var mydpp = document.printPreferences;
                mydpp.activePrinterPreset = "tempPreset";
    It could still use some work, but otherwise this is quite functional and works great!  Thanks, Jump_Over!

Maybe you are looking for

  • Recently my default program for opening any program changed to opening a safari browser for Dropbox. How do I set it back to iBooks?

    On both my iPad (which had Dropbox) and my wife's (which does not) any file we click to open the current default is to open a safari browser and attempt to sign into Dropbox. I want to restore iBooks as my default but can't find any info on how. Any

  • Executing macro in web dynpro

    hi i am able to pass data in excel. now for this data ,i have created a macro which create a graph as result. problem is how to call this macro in web dynpro. please help me this.

  • Printing out report using pdf

    I am using report 6i.. i have set the layout parameter to landscape for all three sections, header,main,trailer when I put the report on the web,using pdf, i have to use page setup to have the report print our in a landscape.. I thought that the repo

  • Cache spatial data or query

    I have an application where, as expected, the first spatial query is taking longer for users then when they submit the same or similar query layer on in the session. Is there a way to cache that first query before our users even start the application

  • ServletException - Connection reset by peer

    Hi all, I have a Servlet (ModificaCorpoOrdineService.java) with two method: 1) maskEditOrderCorp(req,resp) 2) EditOrderCorp(req,resp) 1) The first method is called when I have to present the page addModCorpoOrdine.jsp and contain the redirect to that