How to add pop up menu on the column name of a jtable

hi all,
i am naive to swing .
i want to know that how can i open a pop up menu on the right click of the column of a jtable build in frame.i mean to say i on th eright click on the header of table which has column names.

[url http://java.sun.com/docs/books/tutorial/uiswing/components/menu.html#popup]How to Use Popup Menus.

Similar Messages

  • How to add a dropdown menu to the search box (the 'search this site' box that appears on all subsites)

    Hello there,
    I know that in the search center you can add search verticals. Then you can configure the search box so it has a drop down menu so you can specify the result source you want to search. 
    But my question is about the 'search this site' box which appears on all subsites, so not the one in the search center. Is it possible to add the same dropdown menu to this box as in the search center?
    Thanks in advance!

    Hi,
    According to your post, my understanding is that you wanted to add a dropdown menu to the search box.
    You need to look at the Search Settings page that is located under the Site Collection Administration of the Site Settings.
    Here are some similar blogs for your reference:
    SharePoint 2013 Search Settings and Search drop down menu
    Customizing Search Navigation on a SharePoint 2013 Publishing Site  
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • How to add a dynamic menu to the Portal?

    Dear all,
    I am restructuring the company's Intranet on which I plan to put a left-side vertical menu. On the menu, most links are accessible to all Intranet users except some KPI (key performance indicators) links which are only accessible to managers.
    I am evaluating a third-party dynamic menu builder so called "Sothink DHTML Menu" which is javascript based and provides features for connecting to database via JDBC in jsp.
    For static menu scenario, "Sothink DHTML Menu" is perfect for Oracle Portal in the sense of easy development and deployment.
    For dynamic menu scenario, if I really want to use "Sothink DHTML Menu", I need to put the codes in jsp file and then place the jsp file on the Portal page. Here is the tutorial http://www.sothink.com/product/dhtmlmenu/store/jspdb/jspdb.htm
    I still can't figure out how to do that. Can any experts here tell me how or suggest other alternatives for generating a dynamic menu on Portal?
    Thanks
    George (HK)

    Hi
    I also use SoThink menus in Oracle Portal, but for static menus (I upload them in the HtDocs of Apache and then refer to them with an URL Item).
    In my previous version of Portal I also had to display some kind of dynamic menus, some parts should only be visible to some users/groups. But I didn't use Sothink at this moment but "DHTML Menus" from an other company.
    Starting from an example and using their libraries I wrote my own menu in javascript. In this .js I wrote some functions
    - 1 that document.write(s) the start of the menu and the public part of the menu
    - 1 that document.write(s) the reserved part of the menu
    - 1 that document.write(s) the last part of the menu.
    Then in a navigation page I defined 3 regions, each region contains some jscript code that launchs the function/menu part of the same range. And I used the item level security to set right access to the second region/menu part.
    It worked fine, I just had to add some /* at the end of region 1 ent */ at the beginning of region 2 to remove the HTML code Portal writes between the regions.
    But it was very time consuming if your menu changes often.

  • How to add two X Axis in the Column chart?Need Help

    Hi,
    I have a requirement to add two X axis in the SSRS column chart.Can someone please help how to add two X axis. I tried the secondary axis for horizontal axis but current x axis is shifting to other side, second X axis is not coming.
    Regards
    Jon

    Hi Jon,
    According to your description, you want to add secondary X axis for one series in a column chart, right?
    The secondary axis is useful when comparing two value sets with two distinct data ranges that share a common category. In Reporting Services, it’s not supported to create two X axis for one series. We can create secondary X axis when there are two series
    in a column chart. As we tested in our local environment, we can add secondary X axis for specific series. Please refer to the screenshots below:
    So I would like to know what’s your exact needs about creating two X axis for one series. If possible please share some detail information about your data and expected looking of the chart.
    Reference: Plot Data on a Secondary Axis (Report Builder and SSRS)
    If you have any question, please feel free to ask.
    Best regards,
    Qiuyun Yu

  • How to add YYMMDD format date to the file name

    Hi,
    I need genrate the file with date suffixed to its name in YYMMDD format. The add time stamp is adding it till YYYMMDD-HHMMSSS.
    How can I change this format to the required one? Any suggessions.
    Thanks.
    Sri

    hi,
    you can create the whole filename (whatever you need)
    in the mapping (in a UDF) using adapter specific message attributes
    there are many blogs describing how to do that Dynamic Configuration of Some Communication Channel Parameters using Message Mapping
    Regards,
    Michal Krawczyk

  • How to add only highest values in the column

    Hello All,
    We have report where I need to add only highest values in 'Price' column.
    Ex:
    Group  Mat      Price
    Grp1    Mat1    50
               Mat2    75
               Mat3    100
    Grp2    Mat1    50
               Mat2    100
    I need my result as 200...
    Any input is appreciated!
    Thanks in advance !!
    Venu.

    Sriman/Surendra,
    Unfortunately, this approach does not work because the Calculate Result As --> Maximum applies not only to the subtotals but also to the grand total. Therefore, the result in Venu's example will be:
    MAX(Grp1) = 100
    MAX(Grp2) = 100
    MAX(All Grps) = 100
    We have the same requirement as Venu, but have not found a satisfactory solution yet. The only way we have solved such problems in the past is to use VBA in workbooks, but the report we are using now is a Web report.
    Hope this helps to clarify the issue...
    Bob

  • How to resize Labels size based on the column margin changes in JTable??

    I have a constructed JTable with 4 columns. Accordingly, I added 4 JLabels for each column. JTable and JLabels are attached to a scrollpane. That in turn, attached to a JFrame.
    What I need is, at the runtime, when I change the column margins of a column in JTable, accordingly, the size/margins of the Labels should change..
    I am extending AbstractTableModel in order to populate the data in the table, as I should have a checkbox in the constructed JTable.
    Please, help me out in finding a solution for this...

    Hi pritam,
    The “maintain proportions of window for different monitor
    resolutions” property will maintain the proportional size of the front panel
    (its x and y sizes) when opened in a different resolution. The front panel
    objects will not be resized and will appear larger (and may not fit inside the
    front panel) when saved in a higher resolution, and moved to a lower
    resolution. You can use the “Keep window proportions” property to achieve the
    same results.
    To have both the front panel dimensions and front panel
    controls scale, you need to have both the above property and the “scale all
    objects on front panel as the window resizes” selected. The labels will not be
    resized by this.
    I tried using both properties on two monitors and noticed
    that the change does not occur when the resolutions between the monitors are
    different. I had to lower both monitors’ resolution to see the change work
    properly.
    Please post back if you have any questions. Have a great day!
    Ryan D.
    District Sales Manager for Boston & Northern New England
    National Instruments

  • JTable : How to display an icon near the column name ?

    Hi all,
    I'd like to display an icon near the column name of my JTable when an user click on the column; the icon specify the sorting applied to the data of JTable.
    I know that i have to write a render, but how ?
    Cheers.
    Stefano

    Hi all,
    I found the solution at http://exampledepot.com/egs/javax.swing.table/IconHead.html
    Cheers anyway.
    Stefano

  • I am using Photoshop CC2014 15.00.  In the pop-up menu for the Fill command there is a place for Scripted patterns.  Within that part, the tree and the picture frame are grayed. Why?   I've seen demonstrations on how to use the feature but mine doesn't wo

    I am using Photoshop CC2014 15.00.  In the pop-up menu for the Fill command there is a place for Scripted patterns.  Within that part, the tree and the picture frame are grayed.
    Why?   I've seen demonstrations on how to use the feature but mine doesn't work.  I checked the updates and I have the current version.
    Thanks.      LM

    I am running CC 2014.2.1 and I've updated to Yosemite. Not seeing tree or frame as an option in the menu. Coworker still on Mavericks has it.

  • Pop-up Menu in the Table

    I have a problem with a pop up menu in the table control. Currently, I have set my table to HOT and i have 3 columns in my table which are set to Indicator, which allows me to select/highlight the cell but yet dosen't change the content in the cell.
    But when i highlight let's say 3 cells in the same column and right click, a popup menu appears with 3 functions. Goto, Find and sort. I think this came together with the table control. I would like to disable the sort function as it rearranges the cell which are highlighted but not the rest of the cells in the next 2 columns. In my case this is not very good for me as all 3 columns are related to each other like column 1 = Name, column 2 = value, etc... Is it possible to disable to the sort function??
    Cheers
    AL

    It seems strange to me that the built-ion popup menu appears after your own menu is displayed: how are you displaying your popup menu? If you are using RunPopupMenu to handle the right-click event and display your menu it is possible that it fires the built-in menu also.
    If you don't need the built-in popup menu you do not need to remove every single item from it: you can use SetCtrlAttribute (panelHandle, PANEL_TABLE, ATTR_ENABLE_POPUP_MENU, 0); instead.
    In every case, this is a control attribute: you must isse this line for every single table you want to customize: SetAttributeForCtrls ( ) from the Programmer'sToolbox is very useful in this matter.
    As already mentioned in this thread, to add items to the built-in menu you can use NewCtrlMenuItem ()
    Proud to use LW/CVI from 3.1 on.
    My contributions to the Developer Zone Community
    If I have helped you, why not giving me a kudos?

  • How to add a radio station to the library

    just loaded itunes 6 (windows box) and can't find out how to add a radio station to the library

    If your current stations in WMP are .pls or .m3u URL's, they may work in iTunes also. Use the "Open Stream" command from the Advanced menu and put in the URL that includes .pls/.m3u. If the URL is a .mwv variety, those are Windows proprietary format and not supported by iTunes. Same with .ra streams (Real Audio).
    .pls & .m3u usually indicate MP3 based streams supported in iTunes. It's up to the original radio station/streaming site to select the format and make it available. Shoutcast.com & Live365.com are great resources for mp3 based streams.

  • Can I change the fill color of an entire row based on what's selected in a pop-up menu in the first cell?

    I have a pop-up menu in the first cell of every row with three choices (and I may add more at a later date).  I want the fill color of the row to change depending on which thing is selected.  Is this hard to do?

    Hi,
    In essence the same as Wayne's answer, but with a slight modification to fit  to duplicate your 'color the whole row' specification. The final result, with Table 2 slid behind Table 1, is shown.
    Table 2 is a single column table with the same number of rows as Table 1. The table is resized to match the full width of Table 1.
    In A2, use the formula =Table 1::A2 to copy the value from that cell in Table 2. Fill the formula down through the rest of the column.
    Select all the cells in Table 2 (except the header row), and apply conditional formatting rules such as those below.
    Note that the Conditional Format rules are set to apply the same colour to text and fill in the cell, so that the text disappears.
    When Table 2 is ready, select it, then go Arrange > Send to Back.
    Before sliding Table 2 behind Table 1, Select Table 1 and use the Table Inspector to set the Cell Background to None (see red arrow in illustration). If This table has a Header column, you need to select the header cells independently and again set the Cell Background to None.
    Now select Table 2 and drag it to a position partially under Table 1. When you see the blue alignment guides on both sides, or at the top and bottom, of Table 1, release the mouse button and use the arrow keys to nudge Table 2 into its final position.
    Regards,
    Barry

  • How to add a dropdown menu in flash document (.swf, .fla) ??

    How to add a dropdown menu in flash document (.swf, .fla) ??
    as i am developing a website for my semester proj, i need to add some flash contetn in the website..
    here is the link, http://www.mediafire.com/?wnx1jkwkkx9c118
    Check Out..
    the thing is i want a dropdown list/menu in "language selection - tab " (check the html page in above link).. plz help me out..
    Thank You,
    sairam

    For Flash questions check the Flash Forums. 
    http://forums.adobe.com/community/flash
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb
    http://alt-web.blogspot.com/

  • Choose Plot Columns as Series or Plot Rows as Series from the pop-up menu in the bottom ba

    I am trying to construct a 2D graph in Numbers 3.5 (2109) that shows at two time points the voting intentions by political party. The instruction given by Help is below, but I cannot find the bottom bar or the pop-up box.
    Switch rows and columns as data series
    When you add a chart, Numbers defines default data series for it. In most cases, if a table is square or if it’s wider than it is tall, the table rows are the default series. Otherwise, the columns are the default series. You can change whether rows or columns are the data series.
    Select the chart.
    Choose Plot Columns as Series or Plot Rows as Series from the pop-up menu in the bottom bar.
    Bar showing options to plot rows or columns as series
    Click Done.

    Hi Phil,
    Click once on the chart (graph) to select it. Then click on Edit Data References. The pop-up appears bottom left of the Numbers window.
    Regards,
    Ian.

  • Put "Background from Layer" in the pop-up menu of the layer

    Sometimes you need to convert a layer into a background. There is an option "Background from Layer" in the Layer menu and it is good where it is, but I think it would be good and very intuitive to add it also to the pop-up menu of the layers in the layers palette in the same way that a background layer has the option "Layer from Background..."

    In the meantime, I've found it easy to write and action and assign an f-key to it. 
    With CS6 it's important to keep in mind that if you change your bottom layer to Background AND you've cropped your image using the new crop tool, you will lose the "hidden, but still there" part of your image. When the layer once again becomes "Background" you have, in effect, used the old crop tool and lost your way back to the hidden pixels.
    It becomes a decision of what you want for that particular image: a larger file size but a way back to the original or a smaller but final file size with no way back.

Maybe you are looking for

  • ORA-03113: end-of-file on communication channel while executing a query

    Hi all, I am getting following error while executing one of the query. ORA-03113: end-of-file on communication channel The query involves subqueries. At one point, in the second last condition of the whole query is the cause. what makes the query to

  • Not showing GoogleMap with Rich Form (gmaps4jsf-1.1.4 and jdev 11.1.1.4)

    hi, I am working with jdeveloper 11.1.1.4 and gmaps4jsf-1.1.4 This page JSF don't work: ?xml version='1.0' encoding='UTF-8'?> <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java

  • External Actionscript File not being Included

    Odd problem: Myself and a colleague are working on a project. We're both using Flash 8. We've both downloaded the latest Flash player. The project involves a series of perfume bottles, all lined up in a row. When you press a key on the keyboard, the

  • Maintaing a default value for a particular field in the selection screen

    Hi all, How to maintain a default value for a particular field in the Selection Screen of a Standard report Regards Ajay

  • UDF Requiremnt

    Hi Experts Please help me in this mapping through writing a UDF My scenario is iDOC to File we have to count the occurance of the Segment and than map the fields. i have one iDOC WPDBBY01 and it has segment named E1WPBB03 which initself has one more