JTable resize header (and change mouse in between headings)

Hi,
I notice that i have the ability to resize my headings in the JTable but is there a way to get the mouse pointer to indicate something similar to what Excel does when you put your mouse over the divide (between two heading cells)?

Here's my simple test program:
import java.awt.*;
import javax.swing.*;
import javax.swing.table.*;
public class TableTest2 extends JFrame
     public TableTest2()
          JTable table = new JTable(3, 3);
          table.setPreferredScrollableViewportSize(table.getPreferredSize());
          JScrollPane scrollPane = new JScrollPane( table );
          getContentPane().add( scrollPane );
     public static void main(String[] args)
          TableTest2 frame = new TableTest2();
          frame.setDefaultCloseOperation( EXIT_ON_CLOSE );
          frame.pack();
          frame.setLocationRelativeTo( null );
          frame.setVisible(true);
}

Similar Messages

  • Is it possible to share 1 bluetooth keypad and 1 mouse pad between two computers in target mode?

    Is it possible to share 1 bluetooth keypad and 1 mouse pad between two computers in target mode? Grab a drink and let me tell you my story.
    I purchased two computers... an iMac 27" i7 3.4 16GB RAM and a Mac mini 2.3 i5 8 GB RAM. Both have Thunderbolt capability and are in fact connected by thunderbolt. I have 3 problems...
    1. My Mac mini WILL NOT recognize any bluetooth keyboard. Let me back up for clarification. I set my iMac up first. No problems there. I then went on to set up my mac mini. A couple of interesting things happened concering bluetooth activity. First thing is that the keypad, which was already paired with my iMac wouldn't be recognized by the mac mini, and yet my bluetooth mouse which was paired with my iMac became paired with my mac mini and thus wouldn't be recognized by my iMac anymore. I had to go to my back room and dig out my other bluetooth mouse so that my iMac would at least recognize my second mouse. So now I have two "mice"presently. One for the mac mini, the other for the iMac. Thankfully I also had a USB keypad for my mac mini. My bluetooth keypad is still paired with my iMac but won't pair with my mac mini, which brings me to another question....
    2. CAN 1 KEYPAD AND 1 MOUSE PAIR WITH TWO DIFFERENT COMPUTERS SO THAT WHEN I GO INTO TARGET MODE VIA THUNDERBOLT I CAN USE THE SAME KEYPAD AND MOUSE FOR BOTH COMPUTERS? Anybody have some thoughts on that problem?
    3. WHY IN THE WORLD IS MY MOUSE CURSOR DISAPPEARING EVERYTIME I EXIT TARGET MODE VIA PASSWORD AND COMMAND F2. I'm using target mode to access my mac mini. But when I exit target mode to get back into my iMac I'm looking at my iMac screen but I can't see the mouse pointer! I can move the pointer around even though I can't see it. Wierd. And this has apparently been going on for some time with other users for over a year. I am presently completely up to date on Lion updates. Both systems are running 10.7.4. Does anyone have a solution or heard a rumor of a solution coming soon regarding the invisible mouse cursor "curse". I hate having to restart my iMac everytime I exit out of target mode just so I can get my mouse cursor visible again.
    Food for thought.... Wouldn't it be really cool to have a target mode capability to see your other computers desktops in seperate window screens on your main display. You then could go back and forth from each window by just double clicking or by certain key commands. You could drag and drop from desktop to desktop. Tell me this is coming soon.
    Thanks

    There was a duplicate post of this question answered at:
    http://exchange.ni.com/servlet/ProcessRequest?RHIV​EID=101&RPAGEID=135&HExpertOnly=&HFORCEKWTID=8448:​5&HOID=50650000000800000065190000&UCATEGORY_0=_26_​%24_13_&UCATEGORY_0=_26_%24_13_&UCATEGORY_0=_26_%2​4_13_&UCATEGORY_S=0

  • Problem with i-Planet and change mouse cursor

    Hello, I know how change mouse cursor using Toolkit.getdefaultToolkit().createCustomCursor(Imagen,new Point(0,0),String) and setCursor. It works in a local applet but it doesn`t in my aplication. This aplication attach a i-Planet web server and displays the following error:
    java.lang.NoSuchMethodError: java/awt/Toolkit: method createCustomCursor(Ljava/awt/Image;Ljava/awt/Point;Ljava/lang/String;)Ljava/awt/Cursor; not found
    Where's the problem? Maybe an incorrect jdk version. I don�t think so because I use 1.3.1 version and this method works since 1.2 version.
    Thank you for all.

    hi,
    iplanet has its own jar files in \Netscape\Server4\bin\https which contains the same jar files as it is in jdk dir...so importing ur jar files thru the environment might create a similar problem

  • Auto Resize Header and Content Within?

    I want a header that is always 20% the height of the webpage, so that when I resize, the porportions always stay this same. This isn't so hard to figure out. However, I also want the content within the header (buttons, etc.) to resize. Can anybody help? Here's my code.
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>Untitled Document</title>
    <style type="text/css">
    <!--
    body {
              margin: 0; /* it's good practice to zero the margin and padding of the body element to account for differing browser defaults */
              padding: 0;
              text-align: center; /* this centers the container in IE 5* browsers. The text is then set to the left aligned default in the #container selector */
              color: #000000;
              font-family: Verdana, Arial, Helvetica, sans-serif;
              font-size: 100%;
              background-color: #191919;
              background-image: url(../Images/repeat.jpg);
              background-repeat: repeat;
    /* Tips for Elastic layouts
    1. Since the elastic layouts overall sizing is based on the user's default fonts size, they are more unpredictable. Used correctly, they are also more accessible for those that need larger fonts size since the line length remains proportionate.
    2. Sizing of divs in this layout are based on the 100% font size in the body element. If you decrease the text size overall by using a font-size: 80% on the body element or the #container, remember that the entire layout will downsize proportionately. You may want to increase the widths of the various divs to compensate for this.
    3. If font sizing is changed in differing amounts on each div instead of on the overall design (ie: #sidebar1 is given a 70% font size and #mainContent is given an 85% font size), this will proportionately change each of the divs overall size. You may want to adjust based on your final font sizing.
    .oneColElsCtrHdr #container {
              width: 100%; /* the auto margins (in conjunction with a width) center the page */
              border: 0px none #000000;
              text-align: center; /* this overrides the text-align: center on the body element. */
              margin-top: 0;
              margin-right: auto;
              margin-bottom: 0;
              margin-left: auto;
              background-color: #FFFFFF;
              background-image: url(../Images/repeat.jpg);
              background-repeat: repeat;
              color: #FFC;
    .oneColElsCtrHdr #header {
              width: 100%;
              padding-top: 0;
              padding-right: 0px;
              padding-bottom: 0px;
              padding-left: 0px;
              background-color: #DDDDDD;
              background-image: url(../Images/headerwlogo2.jpg);
    .oneColElsCtrHdr #header h1 {
              margin: 0; /* using padding instead of margin will allow you to keep the element away from the edges of the div */
              background-attachment: scroll;
              background-image: url(../Images/headerwlogo2.jpg);
              background-repeat: no-repeat;
              padding-top: 0px;
              padding-right: 0;
              padding-bottom: 0px;
              padding-left: 0;
              height: 140px;
              width: 100%;
    .oneColElsCtrHdr #mainimage {
              background-color: #FFFFFF;
              width: 100%;
              margin: 0px;
              padding: 0px;
    .oneColElsCtrHdr #yellowbar {
              background-color: #FFFFFF;
              width: 100%;
              background-image: url(../Images/seperatebar.jpg);
              background-repeat: repeat-x;
              height: 15px;
    .oneColElsCtrHdr # {
              background-color: #FFFFFF;
              width: 100%;
    .oneColElsCtrHdr #mainContent {
              background-color: #FFFFFF;
              background-image: url(../Images/repeat.jpg);
              background-repeat: repeat;
              padding-top: 0;
              padding-right: 22px;
              padding-bottom: 0;
              padding-left: 22px;
    .oneColElsCtrHdr #footer {
              padding: 0 0px; /* this padding matches the left alignment of the elements in the divs that appear above it. */
              background:#DDDDDD;
    .oneColElsCtrHdr #footer p {
              margin: 0; /* padding on this element will create space, just as the the margin would have, without the margin collapse issue */
              background-image: url(../Images/footer.jpg);
              background-repeat: repeat-x;
              height: 140px;
              width: 100%;
              padding-top: 0px;
              padding-right: 0;
              padding-bottom: 0px;
              padding-left: 0;
    -->
    </style>
    <script src="../SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
    <link href="../SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" />
    </head>
    <body class="oneColElsCtrHdr">
    <div id="container">
      <div id="header">
        <ul id="MenuBar1" class="MenuBarHorizontal">
          <li><a class="MenuBarItemSubmenu" href="#">About the Project</a>
            <ul>
              <li><a href="#">Project Overview</a></li>
              <li><a href="#">The Collaborators</a></li>
    </ul>
          </li>
          <li><a href="#" class="MenuBarItemSubmenu">Earthwork Sites</a>
            <ul>
              <li><a href="#">About the Sites</a></li>
              <li><a href="#">Media Gallery</a></li>
            </ul>
          </li>
          <li><a class="MenuBarItemSubmenu" href="#">Interactive Badges</a>
            <ul>
              <li><a href="#">Badge Overview</a>          </li>
              <li><a href="#">Lifelong Learning</a></li>
    </ul>
          </li>
          <li><a href="#" class="MenuBarItemSubmenu">Get Involved</a>
            <ul>
              <li><a href="#">Blog</a></li>
              <li><a href="#">FAQ</a></li>
              <li><a href="#">Contact</a></li>
            </ul>
          </li>
        </ul>
      </div>
      <div id="mainimaget">
        <img src="../Images/mainillustrationbig.jpg" width="100%" height="auto" />
      <!-- end #mainContent --></div>
      <div id="yellowbar">
         </h1>
      <!-- end #mainContent --></div>
      <div id="mainContent">
        <h1> WELCOME TO EARTHWORKS</h1>
        <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Praesent aliquam,  justo convallis luctus rutrum, erat nulla fermentum diam, at nonummy quam  ante ac quam. Maecenas urna purus, fermentum id, molestie in, commodo  porttitor, felis. Nam blandit quam ut lacus. Quisque ornare risus quis  ligula. Phasellus tristique purus a augue condimentum adipiscing. Aenean  sagittis. Etiam leo pede, rhoncus venenatis, tristique in, vulputate at,  odio. Donec et ipsum et sapien vehicula nonummy. Suspendisse potenti. Fusce  varius urna id quam. Sed neque mi, varius eget, tincidunt nec, suscipit id,  libero. In eget purus. Vestibulum ut nisl. Donec eu mi sed turpis feugiat  feugiat. Integer turpis arcu, pellentesque eget, cursus et, fermentum ut,  sapien. Fusce metus mi, eleifend sollicitudin, molestie id, varius et, nibh.  Donec nec libero.</p>
        <h2>H2 level heading </h2>
        <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Praesent aliquam,  justo convallis luctus rutrum, erat nulla fermentum diam, at nonummy quam  ante ac quam. Maecenas urna purus, fermentum id, molestie in, commodo  porttitor, felis. Nam blandit quam ut lacus. Quisque ornare risus quis  ligula. Phasellus tristique purus a augue condimentum adipiscing. Aenean  sagittis. Etiam leo pede, rhoncus venenatis, tristique in, vulputate at, odio.</p>
        <p> </p>
      <!-- end #mainContent --></div>
      <div id="footer">
        <p> </p>
      <!-- end #footer --></div>
    <!-- end #container --></div>
    <script type="text/javascript">
    <!--
    var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"../SpryAssets/SpryMenuBarDownHover.gif", imgRight:"../SpryAssets/SpryMenuBarRightHover.gif"});
    //-->
    </script>
    </body>
    </html>

    I want a header that is always 20% the height of the webpage,
    Web Page height is ALWAYS determined by content; not explicit values.  If I increase/decrease text size in my browser, it will change the height of your page.  So page is height is an unknown variable.
    I also want the content within the header (buttons, etc.) to resize.
    Why do you think you need this?  Your browser's Zoom feature is fully capable of re-scaling images and text on screen.
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb
    http://alt-web.blogspot.com/

  • How do I make a JTable's header sorting actually change the actual table?

    How do I make a JTable's header sorting actually change the actual table?
    Currently, I'm using
    table.setAutoCreateRowSorter(true);to allow the user to sort the table.
    However, I want to be able to load something based on the selected row's index. The problem is that when the table is rearranged, the change appears to only be local, in other words, the actual table isn't changing.
    For instance:
    index 0 "A"
    index 1 "B"
    index 2 "C"
    Sorted in reverse gives me
    "C"
    "B"
    "A"
    But C is still index 2 (instead of 0).
    Thanks in advance.

    Cross posted and answered in the Swing forum.
    [http://forums.sun.com/thread.jspa?threadID=5353865]
    I see this is not your first incidence of cross posting. In future, please post a question once only.
    db

  • [QEMU/KVM] Use KVM switch to switch mouse/kayboard between host and VM

    I finally have my QEMU/KVM setup running and working as I want it, except for one thing. I have a KVM switch (a piece of hardware not the hypervisor ) to switch audio and video. It also offers the feature to switch mouse/keyboard between to Computers. Here is the relevant excerpt from my lsusb:
    Bus 002 Device 048: ID 046d:c52b Logitech, Inc. Unifying Receiver
    Bus 002 Device 047: ID 0557:8021 ATEN International Co., Ltd CS1764A [CubiQ DVI KVMP Switch]
    Bus 002 Device 046: ID 046d:c52b Logitech, Inc. Unifying Receiver
    Bus 002 Device 045: ID 0557:8021 ATEN International Co., Ltd CS1764A [CubiQ DVI KVMP Switch]
    The device named "Logitech, Inc. Unifying Receiver" is the dongle for my mouse and keyboard. The first problem is that both devices (in both states of the switch they both appear) have the same device id 046d:c52b. This can be solved by telling qemu to identify the device by #bus.#device instead of the id. The problem is that after each switching the device number increases. This makes sense as for the system the switching process is as if the device was unplugged and plugged in in a different usb port. Therefore the device would probably be disconnected from the VM when it was assigned on the VM's startup (is there a way to add usb devices on the fly to a vm without typing an add_usb command in the qemu shell). Do you have any ideas what I could do?
    EDIT: Just found about QMP. Would it be possible to save an initial condition (mouse/keyboard is on host) and fetch new devices busses after switching (udev?) and switch the saved sate? If the state is now "m/k should be on the vm" one could send qemu an adequate add command.
    EDIT2: I found out that my mainboard's usb is organized using 3 usb controllers (2x2.0, 1x3.0 each with 4 ports). I want to pass one of those PCI controllers to the VM but all I get is a black screen.
    EDIT3: I tried the other usb controller and it worked. Well, kind of. I moved the mouse in a circle and made a right click. Than I was not able to use the mouse or the keyboard anymore. Should I consider buying a PCI USB2.0 controller as that might be easier to forward?
    Last edited by fkoehler (2015-04-29 23:50:07)

    This article has someinteresting information in the comments. You don't have to use a kvm switch neccessarily. I for one prefer a software solution.
    Okay, so to make things clear: I do not switch keyboard/mouse. I keep them shared between both OS, using Synergy. The host OS runs a web server, and the guest OS runs a client – they exchange mouse position information, so that at any time only one of them receives ‘clicks’. This is great for both multi- and single-monitor setups.
    Another story is that I have two video outputs connected to a single monitor, and I would like to switch between them without using the buttons on the monitor itself. For this, I use the I2C that is embedded within HDMI or DP.
    Almost all monitors support DDC, but there are scarce apps that can make us of it. There is DDCcontrol for linux, but it is completely outdated, and failed to work with my particular monitor. So I ended up getting to know the VESA DDC standard, reading the source of that tool and several similar ones, and created a simple C program (source) that works in case of my setup. Most likely it will not work elsewhere, but it should give you a nice starting point for communicating with the monitor. The fragile spots are line 41 – you may need to change the i2c bus number the the one correct for your system, and you may need to prepare other data to send to the monitor (68 and 71) if you want to switch between other outputs than I do. Refer to the standard in order to prepare them.
    As for how to change his source code to help you, I am not of much help right now as I do not know the DDC protocol. Hope that helps.
    Last edited by noctlos (2015-04-30 16:01:45)

  • (simple q) how do I change the font in a JTable column header?  thanks

    how do I change the font in a JTable column header?
    thanks

    JTableHeader header = yourTable.getTableHeader();
    // Set to serif, bold, size 12...
    header.setFont( new java.awt.Font( "serif", 1, 12 ) );
    // you can set others like color and border, too.
    header.setBackground(Color.white);
    header.setBorder( new EmptyBorder(15,2,15,2) );

  • How to change header and footer in login page in oracle apps r12

    Hi all,
    how to change header and footer in login page in oracle apps r12 and login button background color, please help me
    thanks
    saran

    how to change header and footer in login page in oracle apps r12 and login button background color, please help meTips For Personalizing The E-Business Suite R12 Login Page (MainLoginPG) [ID 741459.1]
    How to Personalize Login page in R12? [ID 579917.1]
    R12 Login Page: How to Personalize the Logo ? [ID 849752.1]
    Thanks,
    Hussein

  • Changing Header and Footer in Discussion Channel

    Hello,
    I need to change the header and footer graphics and links for the page that displays when you search for Discussion Channel topics and displaying Ciscussion Channel posts. I have been looking in the DiscussionProvider directory and I am now looking through the SearchProvider directory. Does anybody have an idea of the locations of the Header and Footer files?

    I am sure someone in this forum has had the desire to change the headers from the default of SUN ONE Portal Server and has accomplished this throughout their implementation. Please help! I have succeeded in some containers like the JSPEditContainer so when someone edits bookmarks from a BookmarkProvider channel they see a header that I define, but not in the SearchProvider nor the DiscussionProvider directories. I have seen no mention or <include header.jsp> tags in the jsp files for either of these providers, and I have copied header.jsp and menubar.jsp to both of those directories but it is not picking up the files. Do these containers find the header and menubar.jsp file contents from another location?

  • Change header and footer in one jsp impact on all jsps

    If i change header and footer in one jsp page it show reflect the changes in all jsps can any one help me .

    Manually i shd not change in all jsp pages.Once if
    i change in particular page then all pages shd be
    e reflected with the changesyes, my previous reply does the same way you want.
    You have to include (use include directive) your header & footer jsp file in other jsp pages where you wanted them. And once you do any change in header & footer jsp it will automatically effect other jsp.
    Follow the link if you dont know how to use include directive
    http://javaalmanac.com/egs/javax.servlet.jsp/include.jsp.html?l=new

  • How do i run an external monitor with my macbook and change settings so that when i close the lid the signal to the monitor is not lost and i can continue using the mac with a mouse and a wireless keyboard?

    How do i run an external monitor with my macbook and change settings so that when i close the lid the signal to the monitor is not lost and i can continue using the mac with a mouse and a wireless keyboard?

    No, nothing will prevent the computer from going to sleep when you close its display except third-party hacks that are designed to do exactly that. I strongly advise against using any of those, as they may interfere with successful entry into clamshell mode (and they carry other downside risks as well). Just wait until the computer is asleep (with its sleep light pulsing), then press any key on the keyboard. It sounds as though your setup is working as it's designed to do.

  • Relationship between header and row level data.

    Hi all
    I need to know how to relate a field in the header level and the row level...
    On my row level i want the route id to be related to the route name field at the header level...instead of showing this route id  it must show only the header so...based on the row level data the header must change...
    I tried insertin the field but when i do a relate to on either fields its showing me only fields on that catagory ( Header only or Row Level only)
    Thanks

    The Header is evaluated and printed first and then only Repetitive area is computed and printed. You cannot try to arrive header based on the Repetitive area.
    Please explain in detail which screen etc.. so that we can suggest some work arounds

  • How to change the header and footer in the Section Breaks Next Page using OpenXML?

    I have a word document file in which I added a Section Break of Next Page, now I want to change the header and footer of that page.
    Scenario of example, I have a doc file which has four pages with headers and footers and added fifth page in the section break next page, I want to change the header and footer of the fifth page only. This is achievable manually by deselecting the Link to Previous
    button in the Word Application but I don't know how to change it using XML?
    My code that adds the new page in the section breaks is:
    class Program
    static void Main(string[] args)
    string path = @"C:\Riyaz\sample.docx";
    string strtxt = "Hello This is done by programmatically";
    OpenAndAddTextToWordDocument(path,strtxt);
    public static void OpenAndAddTextToWordDocument(string filepath, string txt)
    using (DocX document = DocX.Load(@"C:\Riyaz\sample.docx"))
    document.InsertSectionPageBreak();
    Paragraph p1 = document.InsertParagraph();
    p1.Append("This is new section");
    document.Save();
    Please help.

    Here is the sample for your reference:
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using DocumentFormat.OpenXml;
    using DocumentFormat.OpenXml.Packaging;
    using DocumentFormat.OpenXml.Wordprocessing;
    namespace WordAddNewFooterHeader
    class Program
    static void Main(string[] args)
    string path = @"E:\Document\TestHeaderandfooter-Copy.docx";
    string strtxt = "OpenXML SDK";
    OpenAndAddTextToWordDocument(path, strtxt);
    public static void OpenAndAddTextToWordDocument(string filepath, string txt)
    // Open a WordprocessingDocument for editing using the filepath.
    WordprocessingDocument wordprocessingDocument = WordprocessingDocument.Open(filepath, true);
    MainDocumentPart part = wordprocessingDocument.MainDocumentPart;
    Body body = part.Document.Body;
    //create a new footer Id=rIdf2
    FooterPart footerPart2 = part.AddNewPart<FooterPart>("rIdf2");
    GenerateFooterPartContent(footerPart2);
    //create a new header Id=rIdh2
    HeaderPart headerPart2 = part.AddNewPart<HeaderPart>("rIdh2");
    GenerateHeaderPartContent(headerPart2);
    //replace the attribute of SectionProperties to add new footer and header
    SectionProperties lxml = body.GetFirstChild<SectionProperties>();
    lxml.GetFirstChild<HeaderReference>().Remove();
    lxml.GetFirstChild<FooterReference>().Remove();
    HeaderReference headerReference1 = new HeaderReference() { Type = HeaderFooterValues.Default, Id = "rIdh2" };
    FooterReference footerReference1 = new FooterReference() { Type = HeaderFooterValues.Default, Id = "rIdf2" };
    lxml.Append(headerReference1);
    lxml.Append(footerReference1);
    //add the correlation of last Paragraph
    OpenXmlElement oxl = body.ChildElements.GetItem(body.ChildElements.Count - 2);
    ParagraphProperties paragraphProperties1 = new ParagraphProperties();
    SectionProperties sectionProperties1 = new SectionProperties() { RsidR = oxl.GetAttribute("rsidR", oxl.NamespaceUri).Value };
    HeaderReference headerReference2 = new HeaderReference() { Type = HeaderFooterValues.Default, Id = part.GetIdOfPart(part.HeaderParts.FirstOrDefault()) };
    FooterReference footerReference2 = new FooterReference() { Type = HeaderFooterValues.Default, Id = part.GetIdOfPart(part.FooterParts.FirstOrDefault()) };
    PageSize pageSize1 = new PageSize() { Width = (UInt32Value)12240U, Height = (UInt32Value)15840U };
    PageMargin pageMargin1 = new PageMargin() { Top = 1440, Right = (UInt32Value)1440U, Bottom = 1440, Left = (UInt32Value)1440U, Header = (UInt32Value)720U, Footer = (UInt32Value)720U, Gutter = (UInt32Value)0U };
    Columns columns1 = new Columns() { Space = "720" };
    DocGrid docGrid1 = new DocGrid() { LinePitch = 360 };
    sectionProperties1.Append(headerReference2);
    sectionProperties1.Append(footerReference2);
    sectionProperties1.Append(pageSize1);
    sectionProperties1.Append(pageMargin1);
    sectionProperties1.Append(columns1);
    sectionProperties1.Append(docGrid1);
    paragraphProperties1.Append(sectionProperties1);
    oxl.InsertAt<ParagraphProperties>(paragraphProperties1, 0);
    body.InsertBefore<Paragraph>(GenerateParagraph(txt, oxl.GetAttribute("rsidRDefault", oxl.NamespaceUri).Value), body.GetFirstChild<SectionProperties>());
    part.Document.Save();
    wordprocessingDocument.Close();
    //Generate new Paragraph
    public static Paragraph GenerateParagraph(string text, string rsidR)
    Paragraph paragraph1 = new Paragraph() { RsidParagraphAddition = rsidR };
    ParagraphProperties paragraphProperties1 = new ParagraphProperties();
    Tabs tabs1 = new Tabs();
    TabStop tabStop1 = new TabStop() { Val = TabStopValues.Left, Position = 5583 };
    tabs1.Append(tabStop1);
    paragraphProperties1.Append(tabs1);
    Run run1 = new Run();
    Text text1 = new Text();
    text1.Text = text;
    run1.Append(text1);
    Run run2 = new Run();
    TabChar tabChar1 = new TabChar();
    run2.Append(tabChar1);
    paragraph1.Append(paragraphProperties1);
    paragraph1.Append(run1);
    paragraph1.Append(run2);
    return paragraph1;
    static void GenerateHeaderPartContent(HeaderPart hpart)
    Header header1 = new Header();
    Paragraph paragraph1 = new Paragraph();
    ParagraphProperties paragraphProperties1 = new ParagraphProperties();
    ParagraphStyleId paragraphStyleId1 = new ParagraphStyleId() { Val = "Header" };
    paragraphProperties1.Append(paragraphStyleId1);
    Run run1 = new Run();
    Text text1 = new Text();
    text1.Text = "";
    run1.Append(text1);
    paragraph1.Append(paragraphProperties1);
    paragraph1.Append(run1);
    header1.Append(paragraph1);
    hpart.Header = header1;
    static void GenerateFooterPartContent(FooterPart fpart)
    Footer footer1 = new Footer();
    Paragraph paragraph1 = new Paragraph();
    ParagraphProperties paragraphProperties1 = new ParagraphProperties();
    ParagraphStyleId paragraphStyleId1 = new ParagraphStyleId() { Val = "Footer" };
    paragraphProperties1.Append(paragraphStyleId1);
    Run run1 = new Run();
    Text text1 = new Text();
    text1.Text = "";
    run1.Append(text1);
    paragraph1.Append(paragraphProperties1);
    paragraph1.Append(run1);
    footer1.Append(paragraph1);
    fpart.Footer = footer1;
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to change header and footer indents?

    I would like to change the header and footer printing indents to match the indents for the page when I print it, for example 1/2 inch (12 mm) from the left edge and the right edge. While it's possible to set the page indent, it doesn't seem possible to adjust the header/footer indents.
    Why would I like to make this change? The reason is that my laser printer seems to accumulate toner in this space, creating vertical streaks at the left and right edge of the paper.
    This seems to be true of versions of Firefox 3.x to 5.x on Windows 2000, XP and Ubuntu Linux (10.1)
    Other document programs that keep all text at least 1/4-inch (6 mm) from the left and right edges do not create this problem. Is there a work-around or hand-coding I can enter into the "custom" field of the header or footer?
    Thanks

    Thanks very much. This fixed the problem, although it was the "'''...print_edge_..'''" that fixed it in the config file. Now I'm not printing off the edge any longer. (I'm running PostScript.) I will make the adjustment in my Ubuntu Linux and XP systems as well. Would you consider adding this adjustment in the page setup dialog box along with the margins?
    Again. Thanks very much!
    Wayne

  • RE:Header and Footer change in CCP ....

    After enable header and footer in Administration ,i can change the header and footer in login and signup page but i can not change those for particular user where they are adding in Organization unit...so i need steps to add header and footer for particular user which is based on css...

    Cisco Cloud Portal modules may be customized to provide different appearances for different users. The appearace (CSS stylesheet) shown to the user depends on what stylesheet is associated to that user's Home OU. One style may be designated as the Default. If a default is specified, it is used for any user whose home organization (OU) has not be assigned a style. If no default is specified, the default Cloud Portal stylesheets is used. If a hierarchical organization structure (like in Cisco IA for Cloud) is used, you may specify that a style is inherited by all child OUs of a parent.
    The high level steps to creating and applying custom stylesheets for individual organization units are:
    Create a new folder in RequestCenter.WAR/custom e.g. RequestCenter.WAR/custom/ABC-Company;
    Add the custom style sheets (copy and customize). Filenames must be custom.css and portal-custom-header.css.
    In CP, go to Administration>Settings>Custom Styles.  Add a new stylesheet by clicking Add and then navigate to the folder you created.
    Assign OUs to this stylesheet.  Note that a user may be a member of many OUs, but CSS stylesheets associated based on the user's Home OU.  For example, if Sarah belongs to the Finance Team, the Marketing Team, but her Home OU is Operations, she will get the Operations stylesheet appearance.
    Resources:
    CP 9.4 Configuration Guide – Chapter 4

Maybe you are looking for

  • Getting runtime error while running HTTPS client

    hi i have return https client in java,which does not give error while compiling but its giving runtime error as shown below. java.security.NoSuchAlgorithmException: Algorithm RSA not available at javax.net.ssl.SunJSSE_b.a(DashoA6275) at javax.net.ssl

  • Sql Developer 2.1 editing views

    One user reported that she has two separate schemas, each with their own connection. In one connection, user can open the "View" tree, right click on a view and select 'Edit' and things happen as you'd expect. In the other connection, however, right

  • In Photoshop my photos to not appear in albumns

    I have all my photos in different names folders on my phone.  The standard HTC desire HD photo viewer, uses the folder names as albumn names. It seems photoshop doesn't have the concept of albumns - Am I correct? I am looking for an application that

  • Failure code on hard drive test: 0qe575-54h6sd-xd003g-60r90

    I have a failure code on the hardware test of: Oqe575-54h6sd-xd003g-60r90 - is this a fatal error or is there some way to rebuild. Splashtop works, but windows 7 does not boot.

  • Batch input session for Recurring Entry

    Hello All, i have created Batch input session for Posting document's for recurring entries creted and job executed in background through SM35 and done successfully, but i am unable to find the Batch input session in SM35 which i have created to run t