Finder-How to set resize column without handle

I want to change my finder divider column from having handles to resize the the column....  Where you have to drag the handle or double click it to resize the column.
I want it to have just the Line that divides the columns... Where you can double click anywhere on the line to resize the column.
From this...
To this...

to set column widths try this:
TableColumnModel tcm = table.getColumnModel();
TableColumn col = tcm.getColumn(column_number);
col.setPreferredWidth(column_width);
should work...
Takis

Similar Messages

  • HT2534 My iTunes does not offer the "none" in the payment type option.  Any suggestions as to how to set up account without a credit card?

    I was following article http://support.apple.com/kb/HT2534  -- it instructs me to select 'none' for payment type.
    I (my teen) do not have a credit card.  I want to download free apps and use gift cards to purchase music.
    Any suggestions as to how to set up account without credit card?
    Thank you,

    Did you follow, exactly, the instructions on the HT2534 page when creating the account ? I've just tried it on my Mac's iTunes and the instructions still work e.g. find a free app in the store, click on its free 'price' button, and on the popup click on 'create apple id' - when you get to the payment details screen you should see the 'none' option.
    Creating an account with 'none' : http://support.apple.com/kb/HT2534

  • In VIEWING (to print) my iTunes music (in finder), how can i view subfolders without clicking on the  triangle of each main folder?

    In VIEWING (to print) my iTunes music (in finder), how can i view subfolders without clicking on the  triangle of each main folder?
    I am trying to print a list of all my music. For example, main folder is BEATLES.  Subfolders are Magical Mystery Tour, Yellow Submarine, Abbey Road, etc...
    and I want to view and print all the subfolders. This is a recovery project after my hard drive failed. I know this is truly a "finder" question and will double post there.
    Thanks.
    Amy

    amy lynn wrote:
    way too much ink.
    Don't know what this means but okay.

  • How to set the column order of a sealed column in a custom Content Type for the new item form NewDocSet.aspx?

    Dear SharePoint Developers,
    Please help.
    I need to know How to set the column order of a sealed column in a custom Content Type for the new item form NewDocSet.aspx?
    I think this is a "sealed column", whatever that is, which is  shown in SPD 2013 as a column of content type "document, folder, MyCustomContentType".
    I know when I set the column order in my custom Content Type settings page, it is correct.
    But, when I load the NewDocSet.aspx page, the column order that I set in the settings page is NOT used for this "sealed column" which is bad.
    Can you help?
    Please advise.
    Thanks.
    Mark Kamoski
    -- Mark Kamoski

    Hi,
    According to your post, my understanding is that you want to set the column order of a sealed column in a custom Content Type for the new item form NewDocSet.aspx.
    Per my knowledge, if you have Content Type management enabled for the list or library (if you see a list of content type with the option to add more), the display order of columns is set for each content type.
    Drill down into one of them and you'll see the option under the list of columns for that content type.
    To apply the column order in the NewDocSet.aspx page, you need to:
    Select Site Settings, under Site Collection Administration, click Content type publishing. In the Refresh All Published
    Content Types section, choose Refresh all published content types on next
    update.
    Run two timer jobs(Content Type Hub, Content Type Subscriber) in central admin(Central Administration--> Monitoring--> Review timer jobs).
    More information:
    http://sharepoint.stackexchange.com/questions/95028/content-types-not-refreshing-on-sp-online
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • How to set displayed column width for a search help

    I have created an elementary search help for a custom field with a value table behind it.
    The search help functions correctly, but when displayed the column widths are all 10 characters. The user has to adjust the column to view the descriptive text.
    Can anyone tell me how to set default column widths for the help?

    Please  open you Elementary search  help  and see the Column  width   behind the Fields of your ...there  increase the width of the fields
    "Activate it  and refresh
    reward  points if it is usefull .....
    Girish

  • How to set unequal columns using master pages in InDesign CS3?

    How to set unequal columns using master pages in InDesign CS3?

    I don't have CS3 anymore but I don't think this has substantially changed in the last few versions of InDesign.
    Choose View > Grids & Guides > uncheck Lock Column Guides. Then drag the column guides to the position you want.

  • How to set the column table so it can not be moved !

    how to set the column table so it can not be moved !

    m_table.getTableHeader().setReorderingAllowed(false);
    m_table.getTableHeader().setResizingAllowed(false);

  • OLE2 how to set a column width of an excel file i'm creating?

    how can i set the column width in an excel file i'm creating with ole?
    or even, haw can i set the auto-fix properties?

    Hallo !
    SORRY MY ENGLISH is very BAD.
    I tried to set page header and  footer in Excel sheet with abap ole
    DATA : BEGIN OF enter,
             x(1) TYPE x VALUE '0D',
            END OF enter.
    DATA : format(255) TYPE c.
    FORM set_page_sheet.
      CALL METHOD OF excel 'ActiveSheet' = sheet.
      CALL METHOD OF sheet 'PageSetup' = pagesetup.
      SET PROPERTY OF pagesetup 'Orientation' = xllandscape.
      SET PROPERTY OF pagesetup 'PrintTitleRows' = '$9:$12'.
      CLEAR format.
    ERROR
      CONCATENATE 'PAGESHEET' enter-x 'PAGE &P/&N' INTO format.
    ERROR
      SET PROPERTY OF pagesetup 'RightHeader' = format.
      CLEAR format.
      CONCATENATE ' Text 1 ' enter-x 'Text 2'
    enter-x 'Text 3 ' INTO format.
      SET PROPERTY OF pagesetup 'RightFooter' = format.
      FREE OBJECT pagesetup.
    ENDFORM.                    " set_page_sheet
    Activate report -
    ERROR - The enter-x must by data type c or another then data type x
    Thanks for answer.

  • How To Set Excel Column Format Latebinding

    private void WriteToExcel(ref System.Data.DataTable dtExcel)
    //Microsoft.Office.Interop.Excel.Application oXL = null;
    //Microsoft.Office.Interop.Excel._Workbook oWB;s
    //Microsoft.Office.Interop.Excel._Worksheet oSheet;
    //SaveFileDialog SFD = new SaveFileDialog();
    //SFD.Filter = "Excel 97-2003 Workbook(*.xls)|*.xls|Excel Workbook(*.xlsx)|*.xlsx|Excel Binary Workbook(*.xlsb)|*.xlsb|" +
    //"Excel Macro-Enabled Workbook(*.xlsm)|*.xlsm";
    //SFD.ShowDialog();
    /*Cell Format Text,
    Format Excel cells to store values as text
    Formating Excel cells to text format will solve the problem of losing leading zeo values when you export data from other data sources to excel.
    Excel.Range formatRange;
    formatRange = xlWorkSheet.get_Range("a1", "b1");
    formatRange.NumberFormat = "@";
    xlWorkSheet.Cells[1, 1] = "098";
    if (dgvData.RowCount == 0)
    MessageBox.Show("GridView is Empty.");
    return;
    tlsStatus.Text = "Export To Excel Strats.... ";
    tlsStatus.ForeColor = System.Drawing.Color.DeepPink;
    prbExcelGen.Value = 0;
    prbExcelGen.Minimum = 0;
    prbExcelGen.Maximum = dgvData.RowCount;
    prbExcelGen.Step = 1;
    prbExcelGen.Refresh();
    object objApp_Late;
    object objBook_Late;
    object objBooks_Late;
    object objSheets_Late;
    object objSheet_Late;
    object objRange_Late;
    object[] Parameters;
    string[] headers = new string[dgvData .ColumnCount];
    string[] columns = new string[dgvData.ColumnCount];
    int i = 0;
    int c = 0;
    for (c = 0; c <= dgvData.ColumnCount - 1; c++)
    headers[c] = dgvData.Rows[0].Cells[c].OwningColumn.Name.ToString();
    //Convert Cell Names To A,B,C...Z , 65+C=CHR(C)=>A WHEN C=0
    i = c + 65;
    columns[c] = Convert.ToString((char)i);
    try
    // Get the class type and instantiate Excel.
    Type objClassType;
    objClassType = Type.GetTypeFromProgID("Excel.Application");
    objApp_Late = Activator.CreateInstance(objClassType);
    //Get the workbooks collection.
    objBooks_Late = objApp_Late.GetType().InvokeMember("Workbooks",BindingFlags.GetProperty, null, objApp_Late, null);
    //Add a new workbook.
    objBook_Late = objBooks_Late.GetType().InvokeMember("Add",BindingFlags.InvokeMethod, null, objBooks_Late, null);
    //Get the worksheets collection.
    objSheets_Late = objBook_Late.GetType().InvokeMember("Worksheets",BindingFlags.GetProperty, null, objBook_Late, null);
    //Get the first worksheet.
    Parameters = new Object[1];
    Parameters[0] = 1;
    objSheet_Late = objSheets_Late.GetType().InvokeMember("Item",
    BindingFlags.GetProperty, null, objSheets_Late, Parameters);
    //if (true)
    // Create the headers in the first row of the sheet
    for (c = 0; c <= dgvData.ColumnCount - 1; c++)
    //Get a range object that contains cell.
    Parameters = new Object[2];
    Parameters[0] = columns[c] + "1";
    Parameters[1] = Missing.Value;
    objRange_Late = objSheet_Late.GetType().InvokeMember("Range",
    BindingFlags.GetProperty, null, objSheet_Late, Parameters);
    //Write Headers in cell.
    Parameters = new Object[1];
    Parameters[0] = headers[c];
    objRange_Late.GetType().InvokeMember("Value", BindingFlags.SetProperty,
    null, objRange_Late, Parameters);
    // Now add the data from the grid to the sheet starting in row 2
    for (i = 0; i < dgvData.RowCount - 1; i++)
    prbExcelGen.PerformStep();
    prbExcelGen.Refresh();
    for (c = 0; c <= dgvData.ColumnCount - 1; c++)
    //Get a range object that contains cell.
    Parameters = new Object[2];
    Parameters[0] = columns[c] + Convert.ToString(i + 2);
    Parameters[1] = Missing.Value;
    objRange_Late = objSheet_Late.GetType().InvokeMember("Range",
    BindingFlags.GetProperty, null, objSheet_Late, Parameters);
    //Write Headers in cell.
    Parameters = new Object[1];
    Parameters[0] = dgvData.Rows[i].Cells[headers[c]].Value.ToString();
    objRange_Late.GetType().InvokeMember("Value", BindingFlags.SetProperty,
    null, objRange_Late, Parameters);
    //if (i == 0)
    // BoldRow(i, c, (EXL._Worksheet)objSheet_Late);
    tlsStatus.Text = "Exporting Records...." + i;
    //Return control of Excel to the user.
    Parameters = new Object[1];
    Parameters[0] = true;
    tlsStatus.Text = "Exporting Completed.";
    objApp_Late.GetType().InvokeMember("Visible", BindingFlags.SetProperty,
    null, objApp_Late, Parameters);
    objApp_Late.GetType().InvokeMember("UserControl", BindingFlags.SetProperty,
    null, objApp_Late, Parameters);
    * oWB.SaveAs(fileName, Excel.XlFileFormat.xlOpenXMLWorkbook,
    missing, missing, missing, missing,
    Excel.XlSaveAsAccessMode.xlNoChange,
    missing, missing, missing, missing, missing);
    //oWB = (Microsoft.Office.Interop.Excel._Workbook)objBook_Late;
    //oWB.SaveAs("file", EXL.XlFileFormat.xlXMLSpreadsheet, Type.Missing, Type.Missing, Type.Missing, Type.Missing, EXL.XlSaveAsAccessMode.xlNoChange, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing);
    //oWB.Save();
    catch (Exception theException)
    String errorMessage;
    errorMessage = "Error: ";
    errorMessage = String.Concat(errorMessage, theException.Message);
    errorMessage = String.Concat(errorMessage, " Line: ");
    errorMessage = String.Concat(errorMessage, theException.Source);
    MessageBox.Show(errorMessage);
    finally
    using the above code i am writing to excel sheet can some one help me to tell how can i set a column type as text 

    Thanks Forum,
    i got the answer here
    https://social.msdn.microsoft.com/Forums/windows/en-US/36340ada-e13b-41cb-a31d-fb76121aa0d2/c-exporting-text-file-to-excel-and-column-formatting-problem?forum=csharpgeneral

  • How to set JTable column's color?

    How can I set JTable Columns' color? I only found this class DefaultTableCellRenderer
    which can set cell's color.

    rmalina wrote:
    You are going to need to derive a renderer class for your Column from DefaultTableCellRenderer and override the following function with something like this:
    @Override
         public Component getTableCellRendererComponent(JTable jTable, Object oValue, boolean isSelected, boolean hasFocus, int nRow, int nColumn) {
    super.setForeground(Color.GREEN);
    super.setBackground(Color.GREEN);
    }That would set your column to green.
    Edited by: rmalina on Jul 28, 2008 8:47 AMHow can I know I only change the columns' color instead of other cells?

  • How to set jtable column width

    Hello..
    I 'm using a simple jtable with the default model. I just want to set each column size to make table smaller Is this possible?
    Thanks
    Feras

    newdeveloper wrote:
    Hello..
    I 'm using a simple jtable with the default model. I just want to set each column size to make table smaller Is this possible?
    Thanks
    FerasI think that your problem probably has more to do with the Layout you're using (or not using) than it does with individual column sizes. What layout are you using?
    What happens when you set the size (or preferredSize, minimumSize, and maximumSize) on the whole JTable?
    You might also be looking for JTable.[getColumnModel()|http://download-llnw.oracle.com/javase/6/docs/api/javax/swing/JTable.html#getColumnModel%28%29].[getColumn()|http://download-llnw.oracle.com/javase/6/docs/api/javax/swing/table/TableColumnModel.html#getColumn%28int%29].[setPreferredWidth()|http://download-llnw.oracle.com/javase/6/docs/api/javax/swing/table/TableColumn.html#setPreferredWidth%28int%29].
    If none of those approaches work, post an SSCCE that demonstrates the problem.
    PS- Swing questions belong in the Swing forum.

  • How to set a column size in sqldeveloper?

    Like in subject.. I want to set standard output in sqldeveloper, but this command doesn't work:
    column object_name Heading 'name' format a40
    Someone know where it should be set?
    I think about "Script output" of course!! Not any graphical one ;)
    Message was edited by:
    user584507

    The statement column is not supported in SQL Developer.
    See Help > SQL Developer Concepts and Usage > Using the SQL Worksheet > SQL*Plus Statements Supported and Not Supported in SQL Worksheet.
    But you can use substr in the select statement to set the column width.
    For example:
    select substr(object_name,1,40) "Object", object_name
    from user_objects
    Run the statement as a script and see the difference between both columns.

  • Lion Finder "Find" command window, cannot resize columns

    If I use the Finder's "Find.." command under the File menu, a window appears that allows me to enter my serach criteria.
    However when I do so and a list of entries is presented, there appears to be no way to resize the columns!
    Als, unlike a normal Finder window, it does not present you with column headings that you can sort on (yes, you can still access this level of control by going to "Show View Options".
    Try it. I know that a normal Finder window allows you to do this, but not a "Find" window.
    I have no idea why they use a different design style for the "Find" results window. The standard Finder list view window at least has the proper controls on it (ability to resize, ability to slect which column to sort upon, ability to slect sort order up or down, etc.)
    Any ideas as to how to fix these problems?

    David.
    You'll need to select View>Arrange By>None to get the ability to adjust columne width.
    You can also get at it by clicking the little gear icon in the tool bar.
    Matt

  • How to set item values without using fields in branch's ACTION block?

    Okay, I will try to say this in a easy way so it is not weird.
    I have created a button, SAVE, that has a Branch of branch type: Branch To Function Returning A Page. This is my code for the branch:
    if :P2008_NAP_SUPPORTING_MATERIALS = 'Yes' then
    return '2092';
    else
    return '2040';
    end if;
    The code for this type of branch is stored in the ACTION block of the Branch page. The ACTION block for a Branch of branch type: Branch To Function Returning A Page is different than the ACTION block for a Branch of branch type: Branch To Page Or URL.
    I need to set some item values with some specific values, which I can do with a branch type: Branch To Page Or URL. This is not possible with the branch type: Branch To Function Returning A Page. The ACTION block is totally different.
    How can I set some values on say Page 2040 from Page 2008 without using fields in the branch's ACTION block?
    Thank you in advance,
    Maggie

    Andy and Scott,
    I love seeing different perspectives in solving problems, it opens my eyes to new ways of looking at/using the tools (reserved words and 'Function returning a Page', etc.).
    One of my pet peeves has been that on branches I was limited to only 10 variables to be passed (I know, who would want more - but there was an instance where I had to pass more), and an even more frustrating time when using report Column Linking, which limits me to 3 variables.
    At least with the Branch linking I can use your suggestion Andy and add the variable setting statements into the function. I am assuming of course (and I should be able to) that I will be able to set more that 10 variables in a IF condition prior to the RETURN statement. This method will be much more understandable, for me, when looking through the branch at a later time to see what is happening, than an URL link where all the variable are strung out 'in a line' so to speak.
    I will still need to use URL Target branching on Links contained within a Column Attribute when I need to pass more than 3 variables, of which I have several places where I do this.
    Thomas

  • How to set initial column widths for a table

    What I'd like to do is to control the initial column widths for a table.
    I'm building the table by using a class which extends AbstractTableModel. This class takes care of setting the headers and reading the data for the table.
    If I do the following:
    VarTableModel vtm = new VarTableModel(vi);
    JTable jt = new JTable(vtm);
    JScrollPane jsp = new JScrollPane(jt);
    frame.getContentPane().add(jsp);
    frame.setVisible(true);
    I will see a table in my window. The widths of the columns are equal and are a function of the horizontal dimension of the window.
    I have tried to set the width of a column by doing the following:
    TableColumn aColumn;
    aColumn = jt.getColumn(vtm.getColumnName(0));
    aColumn.setWidth(40);
    But this has no effect on what gets displayed. I can force the widths that I want by using 'setMaxWidth' but this has the unfortunate side effect of not allowing the user to make the column wider if they want.
    What I'd like is a way to specify the widths of the columns when initially displayed and then let the user adjust to their liking.
    I'm sure that there is a way to do this, but I don't seem to understand where to intervene in the process to produce the effect that I want.
    Any help or suggestions will be greatly appreciated!

    Table.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
    add this line and try ur codeThanks for the suggestion! Unfortunately, it doesn't seem to do the trick. Here is an abbreviated segment of my code:
    vtm = new VarTableModel(vi);
    JTable jt = new JTable(vtm);
    // we want a horizontal scrollbar, so turn resizing off
    // and we want to control column widths
    jt.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
    aColumn = jt.getColumn(vtm.getColumnName(0));
    aColumn.setWidth(40);
    . // same kind of thing for each column
    aColumn = jt.getColumn(vtm.getColumnName(4));
    aColumn.setWidth(400);
    JScrollPane jsp = new JScrollPane(jt);
    frame.getContentPane().add(jsp);
    frame.setVisible(true);
    If I do the above, the table gets displayed with each of the five columns the exact same width. So, the sizing of the columns is happening somewhere else despite turning auto resizing off.
    Where is that occurring and how can I intervene so that I can control the widths of the columns on initial display and still allow the user to adjust the widths if they so choose?

Maybe you are looking for