How set  ContextMenu in the Header  TableView?

in Swing is table.getJTableHeader().setPopupMenu(....)
or something.

If you want the same ContextMenu in all TableColumns, simply set it in all TableColumn instances you create.Oh, that works . . . so easy . . .
for (TableColumn column : table.getColumns()) {
  column.setContextMenu(contextMenu);
}Kind of surprised that it sets the context menu on just the header rather than the whole column, but that is what the javadoc says as well. Seems to do exactly what giovanni wants.
header return null.You didn't do the lookup after the table had been rendered on a stage.
But Jonathan's solution using a supported api is better than using the lookup anyway . . .

Similar Messages

  • I have just updated to Pages 5.1 and now the templares which I have saved do not displat the header and footer which they were saved with in the previous version.  How can I have the header and footer included when I open a template?

    I have just updated to Pages 5.1 and now the templares which I have saved do not displat the header and footer which they were saved with in the previous version.  How can I have the header and footer included when I open a template?

    That is becuase Pages 5.1 has numerous unnounced surprises for the unwary user.  Among the surprises:
    - it strips out images from headers and footers without warning
    - it strips out bookmarks without wanring (yes, all those bookamrks you laboriously put into a document: poof! Gone.)
    - it strips out alternating left/right margins, without warning.
    There are many more suprises, as you'll see from glancing through these discussions. They fall into two main categories: things that are present in version 4.3 but that are missing in 5.1, things like
    -mail merge
    -meaningful Applescript/Services support
    -non-contiguous text selection
    -ability to set defaul zoom
    -ability to see comments while editing
    -ability to print comments
    -ability to read RTF files
    -ability to drag in hyperlinked ted from a browser
    These about about 90 other features are gone.
    Then there are the bugs.  Hyperlinks do not reliably export to a PDF file any longer. There have been multiple problems with printing report. Some fonts place stray characters in the headers.  Many reports of the program crashing, courrupting files, etc.
    Fortunately for you, the previous version of Pages is still on your system.  Export any documents you may have created or edited with Pages 5.1 (another great surprise: files created with version 5.1 cannot be read by any previous version of Pages: not just 4.3 but even 5.01!).  Then trash 5.1 and use 4.3 until (unless?) it is stable and has a reasonably robust feature set.

  • CRM2007-Display an attribute set (Marketing ) on the header page of BP

    Display an attribute set (Marketing ) on the main view of the business partner
    Only the attributes of a certain attribute set should be displayed. The full mkt attrib tab is available in the standard solution.
    Example: We want to show the attributes of set u201CBP_CUST_CLASSu201D on the header page.
    Regards
    Aashish

    Hi,
    this should be possible. Here a short idea how:
    Create a new view as table view that displays the marketing attributes. Have a look at the standard solution or even copy it. In the ON_NEW_FOCUS method filter out all attributes of different attribute sets than you desire.
    In the BP Details page create a new viewarea and assign your newly created table view to it.
    cheers Carsten

  • How we will display the header data and item data seperately in lists

    how we will display the header data and item data seperately in lists

    REPORT z_alv_list_block.
    TYPE-POOLS: slis. " ALV Global types
    SELECTION-SCREEN :
    SKIP,
    BEGIN OF LINE,
    COMMENT 5(27) v_1 FOR FIELD p_max. "#EC NEEDED
    PARAMETERS p_max(2) TYPE n DEFAULT '02' OBLIGATORY.
    SELECTION-SCREEN END OF LINE.
    DATA:
    1st Table
    BEGIN OF gt_kna1 OCCURS 0, " Data displayed
    kunnr LIKE kna1-kunnr, " Customer number
    ernam LIKE kna1-ernam, " Name of Person who Created
    erdat LIKE kna1-erdat, " Creation date
    name1 LIKE kna1-name1, " Name 1
    END OF gt_kna1,
    2nd Table
    BEGIN OF gt_mara OCCURS 0,
    ernam LIKE mara-ernam, " Name of Person who Created
    matnr LIKE mara-matnr, " Material number
    ersda LIKE mara-e rsda, " Creation date
    brgew LIKE mara-brgew, " Gross weight
    END OF gt_mara,
    3rd Table
    BEGIN OF gt_vbak OCCURS 0,
    vkorg LIKE vbak-vkorg, " Sales organization
    kunnr LIKE vbak-kunnr, " Sold-to party
    vbeln LIKE vbak-vbeln, " Sales document
    netwr LIKE vbak-netwr, " Net Value of the Sales Order
    waerk LIKE vbak-waerk, " SD document currency
    END OF gt_vbak.
    INITIALIZATION.
    v_1 = 'Maximum of records to read'.
    START-OF-SELECTION.
    Read data
    SELECT * FROM kna1
    UP TO p_max ROWS
    INTO CORRESPONDING FIELDS OF TABLE gt_kna1.
    SELECT * FROM mara
    UP TO p_max ROWS
    INTO CORRESPONDING FIELDS OF TABLE gt_mara.
    SELECT * FROM vbak
    UP TO p_max ROWS
    INTO CORRESPONDING FIELDS OF TABLE gt_vbak.
    CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_INIT'
    EXPORTING
    i_callback_program = sy-cprog
    i_callback_user_command = 'USER_COMMAND'.
    PERFORM list_append TABLES gt_kna1
    USING '1'
    'GT_KNA1'.
    PERFORM list_append TABLES gt_mara
    USING '2'
    'GT_MARA'.
    PERFORM list_append TABLES gt_vbak
    USING '3'
    'GT_VBAK'.
    PERFORM f_list_display.
    FORM USER_COMMAND *
    FORM user_command USING i_ucomm LIKE sy-ucomm
    is_selfield TYPE slis_selfield. "#EC CALLED
    CASE i_ucomm.
    WHEN '&IC1'. " Pick
    CASE is_selfield-tabname.
    WHEN 'GT_MARA'.
    WHEN 'GT_KNA1'.
    WHEN 'GT_VBAK'.
    READ TABLE gt_vbak INDEX is_selfield-tabindex.
    IF sy-subrc EQ 0.
    Sales order number
    SET PARAMETER ID 'AUN' FIELD gt_vbak-vbeln.
    Display Sales Order
    CALL TRANSACTION 'VA03' AND SKIP FIRST SCREEN.
    ENDIF.
    ENDCASE.
    ENDCASE.
    ENDFORM. " USER_COMMAND
    ----< /div>
    Form list_append
    FORM list_append TABLES ut_table
    USING u_no TYPE char1
    u_tabname TYPE slis_tabname.
    Macro definition
    DEFINE m_fieldcat.
    ls_fieldcat-fieldname = &1.
    ls_fieldcat-ref_tabname = &2.
    append ls_fieldcat to lt_fieldcat.
    END-OF-DEFINITION.
    DEFINE m_sort.
    ls_sort-fieldname = &1.
    ls_sort-up = 'X'.
    append ls_sort to lt_sort.
    END-OF-DEFINITION.
    DATA :
    ls_fieldcat TYPE slis_fieldcat_alv,
    lt_fieldcat TYPE slis_t_fieldcat_alv, " Field catalog
    ls_sort TYPE slis_sortinfo_alv,
    lt_sort TYPE slis_t_sortinfo_alv. " Sort table
    DATA:
    lt_events TYPE slis_t_event,
    ls_event TYPE slis_alv_event,
    ls_layout TYPE slis_layout_alv.
    ls_layout-group_change_edit = 'X'.
    ls_layout-colwidth_optimize = 'X'.
    ls_layout-zebra = 'X'.
    ls_layout-detail_popup = 'X'.
    ls_layout-get_selinfos = 'X'.
    ls_layout-max_linesize = '200'.
    CASE u_no.
    WHEN '1'.
    Build field catalog and sort table
    m_fieldcat 'KUNNR' 'KNA1'.
    m_fieldcat 'ERNAM' 'KNA1'.
    m_fieldcat 'ERDAT' 'KNA1'.
    m_fieldcat 'NAME1' 'KNA1'.
    m_sort 'KUNNR'.
    WHEN '2'.
    m_fieldcat 'MATNR' 'MARA'.
    m_fieldcat 'ERNAM' 'MARA'.
    m_fieldcat 'ERSDA' 'MARA'.
    m_fieldcat 'BRGEW' 'MARA'.
    m_sort 'MATNR'.
    WHEN '3'.
    m_fieldcat 'VBELN' 'VBAK'.
    m_fieldcat 'VKORG' 'VBAK'.
    m_fieldcat 'KUNNR' 'VBAK'.
    m_fieldcat 'NETWR' 'VBAK'.
    m_fieldcat 'WAERK' 'VBAK'.
    m_sort 'VBELN'.
    ENDCASE.
    IF u_no CA '13'.
    MOVE 'TOP_OF_PAGE' TO ls_event-name.
    CONCATENATE 'TOP_OF_PAGE' u_no INTO ls_event-form.
    APPEND ls_event TO lt_events.
    ELSE.
    MOVE 'TOP_OF_LIST' TO ls_event-name.
    CONCATENATE 'TOP_OF_LIST' u_no INTO ls_event-form.
    APPEND ls_event TO lt_events.
    ENDIF.
    CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'
    EXPORTING
    it_fieldcat = lt_fieldcat
    is_layout = ls_layout
    i_tabname = u_tabname
    it_events = lt_events
    it_sort = lt_sort
    i_text =
    TABLES
    t_outtab = ut_table
    EXCEPTIONS
    program_error = 1
    maximum_of_appends_reached = 2
    OTHERS = 3.
    IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    ENDFORM. " LIST_APPEND
    Form f_list_display
    FORM f_list_display.
    DATA ls_print TYPE slis_print_alv.
    ls_print-no_print_selinfos = 'X'. " Display no selection infos
    ls_print-no_print_listinfos = 'X'. " Display no listinfos
    ls_print-reserve_lines = 2. " Lines reserved for end of page
    CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_DISPLAY'
    EXPORTING
    i_interface_check = ' '
    is_print = ls_print
    EXCEPTIONS
    program_error = 1
    OTHERS = 2.
    IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    ENDFORM. " F_LIST_DISPLAY
    FORM top_of_page1 *
    FORM top_of_page1. "#EC CALLED
    PERFORM top_of_page.
    ENDFORM.
    FORM top_of_page3 *
    FORM top_of_page3. "#EC CALLED
    PERFORM top_of_page.
    ENDFORM.
    FORM top_of_page *
    FORM top_of_page.
    ULINE.
    WRITE : sy-uname, sy-title(56) CENTERED, sy-datum.
    ULINE.
    ENDFORM.
    FORM top_of_list2 *
    FORM top_of_list2. "#EC CALLED
    WRITE 'TOP OF LIST2'.
    ENDFORM.
    END OF PROGRAM Z_ALV_LIST_BLOCK ***********************

  • HT1349 how  do you remove the header and footer from a document

    how  do you remove the header and footer from a document

    It depends upon the app you are using.

  • New ink cartridges in Photosmart C5180 but still not printing clearly. How do I clean the heads?

    I changed all 5 ink cartridges on my HP C5180 Photosmart All-in-One printer, but the print is still as if I'm out of black ink.  How do I clean the heads and realign them?

    steelpony5555 wrote:
    When your printer stops printing one or 2 of the colors it means your print head is clogged. Tech support will have you remove the print head and clean the copper contacts on the bottom, but that is not enough. Hold the head in a rag and shake it, lots of ink will come out of the inside. I saw one case where the guy held his print head under hot water till it ran clear. Not sure of the long term effects on the head if you do that. Mine has clogged twice now and it has been ink inside the head.
    I would absolutely suggest not shaking the printhead.  Ink is required in the printhead, and if air gets into the printhead it can cause printhead failure.  See this page for an ongoing discussion.
    For the C5180 this is moot, since the printhead cannot be removed to shake it in the C5180 with its permanant printhead.  I would suggest three levels of printhead cleaning as described in Step 3 of this page for the c5180.
    Bob Headrick,  HP Expert
    I am not an employee of HP, I am a volunteer posting here on my own time.
    If your problem is solved please click the "Accept as Solution" button ------------V
    If my answer was helpful please click the "Thumbs Up" to say "Thank You"--V

  • How can I list the head texts or texts of position of the invoices created

    hello experts
    I have a consultation.
    how can I list the head texts or texts of position of the invoices created in module sap SD?
    Up to now I can see them visualizing the document SD for transaction VF03, but I need to see a listing of invoices and don't unite in one.
    he/she would thank their collaboration.
    greetings,
    Jorge Silva

    Dear Jorge,
    You can use T-Code VF05 or VF05N to generate list of Invoices with range of selection criterias...
    The concerned tables for the same are VBRK & VBRP.
    Let us know should you require any further help..
    Hope this helps...
    Give points if useful..
    Thanks,
    Jignesh Mehta

  • How do I enable the header to scroll?

    How do I enable the header of my table to scroll with my screen as I'm inputting data in a long table. For instance, if I have a table that has 170 rows, I want to be able to see the header row as I scroll down to row 170 to input data. Is that possible in numbers. A preference maybe?

    Question asked and responded MANY times.
    The response is: we can't do that.
    _Go to "Provide Numbers Feedback" in the "Numbers" menu_, describe what you wish.
    Then, cross your fingers, and wait _at least_ for iWork'09
    Yvan KOENIG (from FRANCE mercredi 21 mai 2008 18:22:51)

  • How can I modify the header quoting a reply?

    I hate the standard header for quoting original message in replies ("On <date> <someone> wrote")
    I like the standard header for forwarding ("original message"/ "Date" / "From" / "To")
    How can I get the same header for replies?

    In '''Thunderbird, Tools|Add-ons|Extensions''' - it really isn't there? You didn't look in Firefox by mistake? ;-)
    I'm a bit wary of this add-on. I've only ever used it in an all-english environment, so I can't comment on any adverse effects on alternative locale settings. I found it rather prone to quoting the wrong message body, and it didn't always honour my header settings. :-(
    I suspect you can set the "standard header" via the Config Editor. I can't recall mine ever using the format you describe, so that is empirical evidence that it can be changed, though maybe my aborted test of this add-on changed it for me.
    Look for ''mailnews.reply_header_authorwrote'' and related config entries.

  • How do you change the header?

    okay, i am somewhat new to Pages.
    what i would like to know is, you know how in Microsoft Word, there is 3 places in the header, like you could write on the side, then press tab and write in the middle, then press tab and write on the right side, example:
    My name could go here... [tab] Something else could go here.... [tab} Something else here....
    but in pages, there is on 2 places to write, the left side, and right side, no middle. =[[
    i would like the middle back. how could i change this?

    It is called alignment.
    +Menu > Format > Align > Left / Right / Centre / Justify+
    Or use tabs to position the text where you want it, setting tabs by clicking on the ruler.
    The first click gets you the default left align tab, each subsequent click on the tab marker advances it to centre, right, decimal and back again to left. Or you can right click on the tab marker and get a pulldown menu with the same choices.
    Peter

  • In Pages '09, how do I remove the header from the first page of the document in a page layout document?

    Working Pages '09, I am trying to set up a multi-page document using page layout  (not a word processing document, because I'll be using lots of graphics and text boxes), with headers and footers, but no header on the first page, as this will be the title page. The layout>section pane has the 'First page is different' option  greyed out (because it's a word processor only option). Help tells me that each page is it's own section in page layout, but there is no way to have one page without a header and all the others with, as far as I can tell. Am I completely missing something or is there a way around this?
    Also, I want to do this again for additional chapters in the document (or else, I believe, be forced to manually start page numbering for each chapter in a new document).
    Cheers.

    Hi, Barry. I don't know why this solution didn't work for me :-\ Does it matter that my page numbers are in the footer and not the header? When I follow your direction, the pages do get numbered differently. My problem occurs with the last step.
    1. Open the Inspector. (Check!)
    2. Click the Layout button (second from left). (Check!)
    3. Click Section. (Check!)
    4. Make the two settings shown: (Check!)
    5. Go to Page 1 and delete the contents of the Header. (When I do this, the content for all footers is deleted...)
    I really appreciate your insight.

  • How do I  change the header on subsequent pages

    I need to change the header on pages after the first page. How do I do this?

    Ok, found the answer in the forun already!
    > inspector
    > T
    > more
    > languages
    and I can manage to change the spellcheck to the language I`m working on!!!

  • How can I remove the header and footer for more space in my Pages docs?

    I could really use the extra space on my docs. How can I get rid of the header and footer?
    Thanks

    Hi Timothy
    Just to detail exactly where to find the options:
    +Inspector > Document > Document > Document Margins > Headers/Footers+
    +commnd option i+ shows and hides your Inspector palette/s.
    Peter

  • How can I include the Header Information....for a File to IDOC Scenario

    Hi,
    I made a File to IDOC Scenario with DEBMDM06 for MDM>XI>SAP R/3. The Header Information in the XML File which is at the XI end is Missing. For that reason In Tcode SXMB_MONI we are getting an Error that <b>"HEADER Information Missing: Message should Start with EDI_DC40"</b> i.e the Header Information.
      My Question is that whether we can do some changes in the Message mapping Step in the Integration Repository. I HardCoded the Few mandatory Fields that were there but it Again gave me the Same Error as above.
    Can you please Suggest some Solution for this. Since the data is Coming in from MDM part the Header information is not there but It actually Important as it has got all the Port Information.
      Kindly Inform me some Solutions.
    Thanks & Regards
    Somnath

    Hi Suraj,
      Thanks for ur Reply, but Since we are Doing a File to IDOC Scenario the IDOC DEBMDM is on the Right Side in Message Mapping and as U know it is Mandatory to Map an IDOC on the Right Part. EDI_DC40 is coming as it is there in the IDOC but our XML File Does not have that. If we Don't Map then it Becomes RED, which is an Error.
      Furthermore in the Receiver Agreement we have put the Necessary Details such as Sender Service and Receiver Service along with the IDOC Communication Channels.
      Can U give as a Better Insight on this Note how to check the Header Part as it is mandatory to MAP.We also tried to HARDCODE it by putting those Values and Mapping them to a Constant but it is Giving the Same Error.
    Thanks and Regards
    Somnath

  • How do you change the header/footer color for MyPage.

    I understand that you can change the type of headers and footer for Mypage using Subportals. If I want to change the 'color' of the header for mypage, do I just have to 'create a new header using a different color' or 'edit and change the color of the existing header portlet in the Brand setting'? Does that mean that I need to create several header portlets of the same type with different colors?

    Couple of points:
    In 5.0, unlike 4.5, individuals can not change the color of their MyPage, and is determined by the Subportal assignment of the user. The MyPage color (and header) can be different for each Subportal, but users only belong to a single Subportal, and Subportals and Subportal assignments are usually only made by the Portal manager.The color can , however, be different on each Community, and that can be controlled by each Community manager.For Subportals, you need to create a new header Portlet for each color scheme.For Communities, you do nothave to create a new header Portlet: Choose an existing Portlet from the Community editor, save your changes, re-open the Community editor, and go back to the Header and Footer selection screen. You will be able to click on the selected header Portlet and change the color scheme for that one Community.

Maybe you are looking for

  • How do I use my iPhone 4s with a new computer without losing all my data?

    Basically long story short my laptop just died, I can't get it past the start up screen and have subsequently lost all my music, files and iTunes Libary - and yes I know it's dumb of me not have a back up and I will not be making that mistake again -

  • Mail and Notes won't enable in Mavericks

    Ok so here's what happened. My "Send to iOS" in Maps wasn't showing up. So I followed the steps to get it to appear. I turned iCloud off and back on. After turning it back on I noticed my Mail and Notes were not activated. Mail tells me: "Your iCloud

  • Error return from JOB_SUBMIT / SUBMIT when running with another  username

    I am trying to run the program RSBDCSUB after setting up a BDC session. Due to our authorisations in the production environment I have to run this program under a generic user (l_ernam) that has the authorisations as most users do not. Here is the co

  • Insert/update in JSP

    i an developing a bc4j JSP application. in my form i have html drop down,poplutaed with values by using show value data tag. The drop down box contains "decription" field. now while inserting/updating,i want to find the corresponding desc_id and inse

  • File Upload JSP Portlet

    Hi, I want to upload files in a JSP portlet. I have java servlet and I can upload files successfully out of portal. How can I use these servlet in a JSP portlet to upload file? Thanks Ali Erkan