Changing JTableHeader Height

I am changing TableHeader height using
Dimension preferredSize = new Dimension();
int height = DColHeaderSld.getValue(); //Getting slider value
int width = DColTbl.getTableHeader().getWidth(); //Keeping the same width
preferredSize.setSize(width,height);
DColTbl.getTableHeader().setPreferredSize(preferredSize);
It works fine but I can not see the updated column height unless I resize or add/remove any column.
Anyone has any idea?
Thanks
-Sat'n

You need to re-validate your header.
Add:
DColTbl.getTableHeader().validate();
DColTbl.getTableHeader().repaint();
and it should update right away

Similar Messages

  • How can I manually change the height of the "Type ...

    Hi all
    Just got automatically installed the latest 6.22 version of skype few minutes ago and I got a few questions. 
    First and foremost, how can I MANUALLY change the height of the textbox, where I type the messages. I would like to make it larger, like in the previous versions of skype. I don't want to move my mouse cursor through the entire monitor to reach this tiny textbox.
    And second, why you guys are trying constanly to ruin something that is working perfectly ? Going to revert to the previous version until you fix all these nuisances.
    Regards

    There is no way to do this, it is designed to be strictly landscape with keyboard, portrait without - not the best thought-out phone on the market, mainly geared towards compulsive texters and e-mailers.
    There's no way to know whetherNokia will change this with any future updates, perhaps you should make the recommendation to them directly using the 'contact us' link.

  • I need to change the height of a Captivate playbar using Flash Pro

    I need to change the height of a playbar in Adobe Captivate.  I have Flash Pro. I am very new to Flash Pro. I read.. "To change the height of the playbar, adjust the height of pbcBk_mc movie clip inside cpPlaybar symbol in Library".  The problem is I CAN'T FIND pbcBk_mc anywhere.  I see the cpPlaybar attrbute.  When I click on it and look at the timeline I am not seeing an attribute for pbcBk_mc or height.  Where in the world is it??

    You start with a source / authoring file for the "static" content (e.g., Name, Last:). Say this is an MS Word file.
    You master the "static" content..
    You keep this authoring file and have a backup of this file.
    You output a PDF and use Acrobat to build and fine tune the "form" (form = the form fields, not the "static" content).
    The authoring file  and output PDF (with form fields) gives you "rev 00".
    Now, you must change something in the "static" content.
    Open the authoring file and save as to a new version (e.g., "wordfile_v00"  becomes "wordfile_v01).
    Output this to "pdffile_v01".
    Use Acrobat to open the PDF form file "pdffile_v00". Save As to a new file name ("pdffile_v00update").
    Using Acrobat XI Pro the click-path Tools - Pages - Replace lets you replace a page or pages of "pdffile_v00update" with a page or pages from "pdffile_v01".
    This replaces the "static" PDF page content and does not affect the form fields on the page.
    (you may have to adjust position of form fields)
    Save "pdffile_v00update" to "pdffile_v01" to reflect the revised status of the PDF form file.
    Be well...

  • How do you change the height of a cell in the Bookmark tab?

    How do you change the height of a cell in the Bookmark tab?

    This does seem likely to be related to Mavericks:
    http://forums.adobe.com/message/5800367
    https://discussions.apple.com/thread/5491326
    https://discussions.apple.com/message/23548199#23548199
    So far there is apparently no solution, other than upgrading. (It does seem that upgrading your Reader will at least let you view the PDFs normally, even if editing them in 9 is still annoying.)

  • How to change the height of the advanced paragraph window in WPC?

    Hello,
    I would like to have a bigger window when I work with the advanced paragraph in WPC in order to see better the content.
    It´s ok if I see at the beginning the default size. However, I need the posibility to maximize the height of the window to a predefinded maximum height.
    It´s maybe possible to give an extra property for like MaxHeight="500" in the xml-File?
    <element id="paragraph_advanced" description="xml.xlbl.paragraph_advanced" type="htmleditadvanced" Maxheight="500" default="false" />
    Does anybody have experience with it.
    Thanks in advance.
    Thomas

    Hi Thomas...
    Did you have success changing the paragraph height?
    I'm with the same problem.
    I had another idea to solve it. If I couldn't change the height, i'll create my own web form (based on article form), only with paragraph field.
    I've tested this option and worked. But I prefer to use the standard web form.
    Tks

  • How to change the height of a folder dynamically?

    Hello everyone!
    I have a detail, I want to make when selecting a tab of a folder, this change in height, then select another tab to return to its original height.
    I'm trying so:
    Private Sub Folder5_ClickAfter(sboObject As Object, pVal As SAPbouiCOM.SBOItemEventArg) Handles Folder5.ClickAfter
                oForm = Application.SBO_Application.Forms.Item(pVal.FormUID)
                oForm.Freeze(True)
                Me.Folder5.Item.Height = 298
                Me.Folder3.Item.Height = 298
                Me.Matrix1.Item.Height = 263
                Me.Matrix0.Item.Height = 113
                Me.Matrix0.Item.Top = 345
                oForm.Freeze(False)
    End Sub
    But I would not change the height of the folder (it does with the other elements).
    Before:
    After:
    Any suggestions?

    Already achieve that works to change the height of a tab, do not change the folder specified, change the height of the GROUPER containing folders.
    It worked like this:
    Private Sub Folder5_ClickAfter(sboObject As Object, pVal As SAPbouiCOM.SBOItemEventArg) Handles Folder5.ClickAfter
                oForm = Application.SBO_Application.Forms.Item(pVal.FormUID)
                oForm.Freeze(True)
                oItem = oForm.Items.Item("Item_32") 'This is the ITEM_ID the GROUPER containing folders
                oItem.Height = 298
                oFolder = oItem.Specific
                Me.Matrix1.Item.Height = 263
                Me.Matrix0.Item.Height = 113
                Me.Matrix0.Item.Top = 345
                oForm.Freeze(False)      
    End Sub

  • How to change the height and width of a control?

    Dear all,
    is there anyway to change the height and width of a control?
     In the property nodes, i am just able to read the bound values but cudnt write to it.
    How can i set the bound values for a control?
    Thanks,
    Ritesh

    Not all controls can be sized this way. For example to change the vertical size of a simple numeric, you would need to change the font size.
    LabVIEW Champion . Do more with less code and in less time .

  • How read a pdf file and change TableCell height after reading it using itext api

    I have created a pdf form file using itext ( see class CreatingFormClass ) with itext PdfPTable and PdfPCell. It is done successfully .
    Now I  read this pdf file and filling this pdf file(see class FillingFormClass  ) and at this point i want to change  PdfPCell height () according to Items.
    It is possible or Not???
    My code is given below.
    Thanx in advance
    public class FillPdfFormMainClass {
    public static  String RESULT1 = "E:/BlankForm.pdf";
        public static  String RESULT2 = "E:/FilledForm.pdf";
        public static void main(String[] args) throws DocumentException, IOException {
            String empName="Rakesh Kumar Verma";
                    // This part is Dynamic. It can be 1 item Or can be 25 items
            String listOfItem="Item 1 \n Item 2 \n Item 3\n Item 4 \n Item 5 \n Item 6 \n Item 7 \n Item 8 \n Item 9";
            CreatingFormClass example = new CreatingFormClass(0);
            example.createPdf(RESULT1);
            FillingFormClass class1 = new FillingFormClass();
            class1.manipulatePdf(RESULT1, RESULT2,empName,listOfItem);
    public class CreatingFormClass implements PdfPCellEvent {
        protected int tf;
        public CreatingFormClass(int tf) {
            this.tf = tf;
        public void createPdf(String filename) throws DocumentException, IOException {
            Document document = new Document();
            PdfWriter.getInstance(document, new FileOutputStream(filename));
            document.open();
            PdfPCell cell;
            PdfPTable table = new PdfPTable(2);
            table.setWidths(new int[]{1, 2});
            table.addCell("Name:");
            cell = new PdfPCell();
            cell.setCellEvent(new CreatingFormClass(1));
            table.addCell(cell);
            table.addCell("Item List:");
            cell = new PdfPCell();
            cell.setCellEvent(new CreatingFormClass(2));
            cell.setFixedHeight(60);
            table.addCell(cell);
            document.add(table);
            document.close();
        public void cellLayout(PdfPCell cell, Rectangle rectangle, PdfContentByte[] canvases) {
            PdfWriter writer = canvases[0].getPdfWriter();
            TextField text = new TextField(writer, rectangle, String.format("text_%s", tf));
            text.setBackgroundColor(new GrayColor(0.95f));
            switch (tf) {
                case 1:
                    text.setText("Enter your name here...");
                    text.setFontSize(8);
                    text.setAlignment(Element.ALIGN_CENTER);
                    break;
                case 2:
                    text.setFontSize(8);
                    text.setText("Enter Your Address");
                    text.setOptions(TextField.MULTILINE);
                    break;
            try {
                PdfFormField field = text.getTextField();
                writer.addAnnotation(field);
            } catch (IOException ioe) {
                throw new ExceptionConverter(ioe);
            } catch (DocumentException de) {
                throw new ExceptionConverter(de);
    public class FillingFormClass {
        public void manipulatePdf(String src, String dest,String empName,String listOfItem) throws IOException, DocumentException {
            PdfReader reader = new PdfReader(src);
            PdfStamper stamper = new PdfStamper(reader, new FileOutputStream(String.format(dest, empName)));
            AcroFields form = stamper.getAcroFields();
            form.setField("text_1", empName);
            form.setField("text_2", listOfItem);
            stamper.close();
            reader.close();

    Hi,
    I am facing the same problem. Please help me out. I just want to read a PDF file as bytes from one location and write it as another pdf file in some other location with a diolog box prompting to open or save in the location where we want.
    I executed the following code:
    try{
    File report =new File(location);
    BufferedInputStream in=new BufferedInputStream(new FileInputStream(report));
    response.setContentType("application/x-download");
    response.setHeader("Content-Disposition", "attachment; filename=" + report.getName());
    OutputStream outs = response.getOutputStream();
    int readlen;
    byte buffer[] = new byte[ 256 ];
    while( (readlen = in.read( buffer )) != -1 )
    outs.write( buffer, 0, readlen );
    outs.flush();
    outs.close();
    in.close();
    response.setStatus(HttpServletResponse.SC_OK);
    } catch (FileNotFoundException fileNotFoundException) {
    PrintWriter out= response.getWriter();
    out.print("<center><Font color = 'RED'><b>"+PxDSLUtils.getApplicationProperty("label.error.CTM_E017")+"</b></Font></center>");
    Though it prompts with open, save dialog box when i try to open directly or when i save it some where locally and then open it i am getting the following message " File is repaired ot damaged.Operation failed." Any idea about what can be done??? Its very urgent.Please suggest.
    I am not convetin to string just reading and writng as bytes itself.
    Thanks in advance,
    Mani

  • Financial Reporting 9.3.1 automatically change the height of the row

    How can I make the reports generator automatically change the height of the row if the text does not fit into the cell? I tried different PDF generators (AFPL Ghostscript 8.51, Adobe Acrobat Distiller 6.0) but result was the same: http://sql.ru/forum/actualfile.aspx?id=6396177

    Hi,
    In HFR if you are not allowing expansion on the row or column, it wont expand itself according text length.
    So you need to anticipate the row hight and width according to your need. You can define this in the property sheet.
    Thanks,
    aly

  • Changing cell height in a cross tab

    Hi,
    I want to reduce the height of rows in a cross tab. The help index says to click a cell within the cross tab to activate the sizing handles, and to then click and drag them to change the height. But the only size handles I see are the one for the data itself within the cell, and not the cell itself.
    And if I right click on the cross tab, I get the Size & Position option, which seems like what I want. But when I change the height there, it saves my change, but the height of the cell doesn't change.
    Ideas?

    I have CRXI, you can try, crosstab expert, customize style, look for ShowCellMargins,
    uncheck that box, now you may need to adjust things to add a little extra room.

  • Dynamically changing the height and width of Stage

    Hi,
              I would like to know how can I change the height and width of stage dynamically. I tried it with the following code:
                             Stage.height = 250;
                             Stage.width = 250;
    during the run time. Initially the Stage is at a height and width of 370 and 450 respectively. Also when I tried to trace the height and width of Stage after resizing the stage width and height, its showing the old value of width and height. That means the width and height not chnaging. Anybody have any idea about this.

    Hi Ross,
                I could understand something about the problem after making a research on this topic. We can't change the width and height of stage from actionscript itself, right? I will explain the way I am planning to do. I don't know whether its right or not. Anyway you just go through it. First the player need to be resized, according to the specified height and width. Then in the object tag, there are two fields named height and width. We should change these value according to the specified height and width of video controller, dynamically. Am I right? But I am confused with two properties of Stage such as: align and scaleMode. The code was actually developed my trainer. There, the scaleMode is set to "noScale" and no align property is used. My doubt is how should I set align and scaleMode properties of Stage. Hope you understood what I meant.
    Regards,
          Sreelash.S.

  • Internet browser to scrol  and change the height of my stage.

    hello. I'll try to write to my question.
    My stage is 1024 * 768 I have put there ScrollPane that loads my_mc,
    my_mc exchange his height. Example http://www.4x4nz.sk/home_page_1.html.
    this is ok.
    but I try to insert my_mc without ScrollPane. and here is my problem.
    my_mc can have more than 768 height.
    so I need to force internet browser to scrol
    and change the height of my stage.
    example http://www.4x4nz.sk/home_page_2.html

    Now there is a scroll, but it does not work. not see the whole my_mc
    http://www.4x4nz.sk/home_page_2.html

  • How can I change display height dynamically?

    Hi,
    I have defined layout style as "table-form". I want to control display height of a field depending on thich form user is in. In table, display height is "1" , but when user clicks edit and goes to form style, I need to change display height to "5".
    I belive it can be done using EL expression.
    Can anybody enlight me?
    Thanks

    It is easiest to make two separate items based on the same attribute. One item only displayed in table with height 1, the other item only displayed in form layout with height 5.
    Steven Davelaar,
    JHeadstart Team.

  • To change the height of row of a table

    hi Experts,
    1) Can any one please help me to change the height of row of a table
    2) If i need to display data intable in such a way that data would be displayed in every alternate row, keeping one row empty.
    Points wil be rewarded to helpful answers,
    Regards,
    Sanjyoti.

    hi Jarrod, 
    i want to make a display iview where the data comes from a table, add image beside each data from the table,
    1) if i display data in table i am not able to add image beside each row.
    2)i have also tried using one form and one table displayed side by side where the table has data from data service and form has the images (static), but here again as the height of row can not be changed the image does not fit perfectly beside the rows.
    I have not worked in VC before, so dont know wat exactly cant be done,
    hope you will guide if you have any idea wat could be done
    I got the help given below but not able to understand the flow of what is done 
    First create a button to trigger an action (let's say the action is called "go").
    Drag a line and create a signal out set go as the event, name the signal out as "sig".
    Create 4 numeric fields in the signal out "num1",..,"num4".
    Map num1 <- 1
    Add a signal in to the model, name it "sig" and create 4 numeric field to it ("num1",..,"num4" as well).
    Drag a line from the signal in and choose a form from the context menu.
    4 recordsl will appear in the form. set them as visible and as spinner control.
    drag a line from the form's out port and add a signal out named "go".
    Map is as follows:
    num1 <= @num1+1
    num2 <= 1
    num3 <= if(@num2==1,1,0)
    num4 <= if@num3==1,1,0)
    Add a gaurd condition to the line @num1<4 and name the event "Next_Event"
    double click on num1 to open the properties popup.
    For num1 define a custom action named "Next_Event"
    For num2 define a custom action named "Pass1"
    For num3 define a system action move row - move next
    For num4 define a custom action named "pass2"
    drag a line from the form and add data store. Create 2 field in it "first" and "second"
    set the event to be pass1 and map the value you want from the table to "first".
    Create another line from the form to the data store with event pass 2 that maps value to second.
    Create a new form with 2 field which default vlaue is the value in the data store.
    Points would be awarded to helpful answers. 
    Regards,
    Sanjyoti.

  • How to change the height of the column header cells

    Hi,
    I have been working with Oracle BI Discoverer 10g. I want to increase the height of the column header cells. The labels within the column headers are almost cut off. Is there a way to change the height of the column header cells?
    Thanks...

    Hi
    In dic.4.1 ,we are using format heading ,and manipulating by entering extra space and changing font and mode.
    try the same
    Rgds
    NP

Maybe you are looking for

  • Reader 9 - problem with pdf version 1.0 and descenders

    2 big problems over here: * Reader9 will not properly open files created as pdf version 1.0/1.x all text is cut off about 2/3 of the way down, whether or not in fields. * Any pdf file version above 1.0created with any version of GhostScript does not

  • Downloading a MP4

    All this lingo makes my head want to explode! All I want to do is download my Louis C.K. show But it is not. . Their websites states: The downloadable video files are H.264 encoded in an MP4 container. Audio files come in two formats: lossless FLAC a

  • Is there a way to import SketchUp files into Keynote?

    I want to create an interactive slide rotating a 3D embeded into my Keynote-is there anyway to accomplish this?

  • A.Pack doesn't launch

    When I upgraded Final Cut Pro 4 to 5 with a Bundle, DVD Studio Pro 4 was included. For some reason it didn't install right the first time... DVDSP launched but there were no templates in the Inspector. I reinstalled DVDSP again and everything showed

  • Query Logic Help

    Hi All, I am wirtting query to get the records as below, but i am not succeded. Any helps are deeply appriciated!!.. id|spent|total|bal 1|100|400|300 2|200|400|100 3|200|400|-100 4|100|400|-200           little Description :- id,spent,total are the c