Setting tab width in JTabbedPane....

hi all,
I want to set the tab width to a constant value for all tabs in tabbed pane. How can i do this?
Actually i have a tabbed pane where it has different length of strring to display in each tab. To make it uniform i want to set a constant width to the tab.
please help...
-Soni

hi all
i got it by overridding BasicTabbedPaneUI .
class TabbedPaneUI extends BasicTabbedPaneUI {
protected int calculateTabWidth(int tabPlacement, int tabIndex,
                              FontMetrics metrics) {
          return TAB_TEXT_WIDTH;
Now my problem is,
all text in tab are center aligned.
how to make it left aligned?
please help....
-Soni

Similar Messages

  • Setting tab width for Text editor

    Simple ? I was unable to see this in the tool help. How do we set the tab width in the Text Editor for solaris.

    Hi,
    Please see the man page of xview.
    The parameter: text.tabWidth in the .Xdefaults file controls the tab width size.

  • JtabbedPane equally size tab width..

    Hello,
    I have a JTabbedPane with about 7 tabs, but the tab names are mostly short and the sum width of the tabs takes up about 80% of the TabbedPane.
    I'd like for the tab widths to take up the entire 100% of the tabbedPane (just a pref.) It would be nice if I could set the min tab width to 1/7 tabbedPane width. How can I set the width of each tab??

    this might start you off - needs lots of testing
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    class Testing extends JFrame
      JTabbedPane tp = new JTabbedPane();
      int tabPaneWidth;
      int tabCounter;
      public Testing()
        setLocation(300,100);
        setDefaultCloseOperation(EXIT_ON_CLOSE);
        for(int x = 0; x < 3; x++)
          JPanel p = new JPanel();
          p.setPreferredSize(new Dimension(600,400));
          tp.addTab(""+(++tabCounter),p);
        JButton btn = new JButton("Add Tab");
        JPanel p = new JPanel();
        p.add(btn);
        getContentPane().add(tp,BorderLayout.CENTER);
        getContentPane().add(p,BorderLayout.SOUTH);
        tabPaneWidth = tp.getPreferredSize().width;
        tp.setUI(new MyUI());
        setResizable(false);//otherwise needs a componentListener
        pack();
        btn.addActionListener(new ActionListener(){
          public void actionPerformed(ActionEvent ae){
            tp.addTab(""+(++tabCounter),new JPanel());}});
      class MyUI extends javax.swing.plaf.basic.BasicTabbedPaneUI
        protected int calculateTabWidth(int tabPlacement,int tabIndex, FontMetrics metrics)
          Insets margin = getInsets();
          return (int)((tabPaneWidth - margin.left - margin.right)/tp.getTabCount());
      public static void main(String[] args){new Testing().setVisible(true);}
    }

  • JTabbedPane: Tab Text, Tab Width and Tab Height

    Whenever i put text on JTabbedPane tab it displays it in one line, so when i have a text e.g. "XXXXXXXXX XXXXXXXXX"
    it displays it as it is not like XXXXXXXXX
    XXXXXXXXX
    How can I display it in two line or more?
    Does Tab width and height automatically adjust itself relative to the text inside it? If not how can I set the tab width and height?
    Thanks in advance.

    leemax quote:
    Simply add the escaped new line character "\n" to display the text of the tab on the next line.
    --Yeah i tried that already but anyway i solved the problem by making used of htnl tags "<br>"                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Is there a way to set min and max tab widths in firefox 17 or 18?

    The browser tab width maximum and minimum options are no longer in about:config and the "tab width clip" has no effect on tab width in firefox 17 or 18.

    hello, the browser.tabs.tabClipWidth setting does only specify beyond which width a close button is shown on the tab. in order to set a custom tab size you can use this extension: https://addons.mozilla.org/firefox/addon/custom-tab-width/

  • Document Tabs: Set Value and Tab Width

    1. Would like to be able to assign a tab name (value) to any document, at least for the current session and preferably as a permanent document property.
    2. Would like to be able to set min/max tab widths and L/R margins (white space). Setting could be in pixels or characters, either would be fine. Probably a product-level preference, though could be implemented differently.
    Thank you kindly,
    Elchanan

    Hi Shaji,
    You can do this in IRPT in the following way.
    <!DOCTYPE HTML>
    <HTML>
    <HEAD>
        <TITLE>Your Title Here</TITLE>
        <META http-equiv="X-UA-Compatible" content="IE=edge">
        <META http-equiv='cache-control' content='no-cache'>
        <META http-equiv='expires' content='0'>
        <META http-equiv='pragma' content='no-cache'>
        <SCRIPT type="text/javascript" src="/XMII/JavaScript/bootstrap.js" data-libs="i5Chart,i5Grid,i5SPCChart"></SCRIPT>
        <SCRIPT>
            var Chart = new com.sap.xmii.chart.hchart.i5Chart("Regression_15.0/i5Chart_Employees", "Regression_15.0/Employees_Hiked");
            Chart.setChartWidth("640px");
            Chart.setChartHeight("400px");
            Chart.draw("div1");
        function setValueColumns()
       Chart.getChartObject().setValueColumns("ESAL,ENEWSAL");
        Chart.refresh();
        function setLabelColumns()
        Chart.getChartObject().setLabelColumns("EID");
        Chart.refresh();
        </SCRIPT>
    </HEAD>
    <BODY>
        <DIV id="div1"></DIV>
    <INPUT type="button" value="setValueColumns" onClick="setValueColumns()"/>
    <INPUT type="button" value="setLabelColumns" onClick="setLabelColumns()"/>
    </BODY>
    </HTML>
    Output :
    After clicking on setValueColumns
    After clicking on setLabelColumns.
    hope this helps.
    Regards,
    Sriram

  • How do I set Page Width to Multiple Pages?

    How do I set Page Width to Multiple Pages?
    I notice when Cross Tabs are used, the report spans over several pages in width. Can I set this option without using a cross-tab? Since I am having trouble finding a paper width that is 100 inches wide, I was thinking of just using multiple pages.
    Thanks,
    Linda

    Hi Linda,
    Try inserting an OLEDB object and select a bitmap and insert a blank bitmap in report header. Now go to preview and right click on OLEDB Object go to format graphic>picture>change the width of the picture
    If the width exceeds more than the width of the page then it create virtual pages.
    Hope this helps!
    Raghavendra

  • Setting tabs or spacing in HTML files?

    Is there a way to format text in HTML files that are output from Labview?
    I am trying to make a report and find that setting up strings with the concatenate (even tabs and spaces) doesn't seem
    to be very WYSIWYG...
    For example, I have the following VI that I have tried with spaces and tab tokens with no success to set my text output
    to a nice format. The concatenate seems to trim spaces even in the middle of the field as the following line is printed like
    this:
    PASS/ FAIL- -TEST NAME  where I would expect it to be more like:   PASS/ FAIL-     -TEST NAME
    I have also tried the "Set The Report tab Width" feature and this doesn't seem to set the tabs when I use the tab tokens in place of the spaces shown in my VI.
    Any suggestions?
    Thanks

    In HTML, multiple spaces is interpreted as one space.
    Use &nbsp; as one space character.
    Thanks-
    Is there a way to specify more than one or do I need to feed 4 of these into the concatenate to produce 4 spaces on the HTML output?

  • Threadinar10 - Page Separator, Page Fragment Box , Tab Set & Tab Components

    Hi All,
    This is the tenth in the Threadinar series. See the Components Threadinar Index at http://forum.sun.com/jive/thread.jspa?threadID=103424 for the complete list to date.
    This Threadinar will discuss 4 components in the "Components Palette: Layout Section" section of the Creator Component Catalog.
    The components we will focus on today are
    "Page Separator", "Page Fragment Box" , "Tab Set" & "Tab" Components.
    Let us begin our discussion with the "Page Separator" Component.
    Page Separator Component
    You can drag the Page Separator component from the Palette's Layout category to the Visual Designer to create a horizontal line that resizes to any page width selected by the user. This component is the visual equivalent of an HTML <hr> tag.
    In the page bean, a Page Separator component is a PageSeparator object.
    * Note: If you want to use an HTML <hr> tag, drop a Meta component on the page and set its tag property to hr.
    [b]Page Fragment Box Component
    This component enables you to include a page fragment in a page. A page fragment is a separate, reusable part of a page that can be included in any number of pages. For example, you might want to put a common a visual element like a header graphic in a page fragment and then include it in all the pages in an application.
    When you drag the Page Fragment Box component from the Layout category of the Palette and drop it on a page, the Select Page Fragment dialog box prompts you for the name of the page fragment to be included. You can enter the name of an existing page fragment or create a new page fragment. If you create a new page fragment, the IDE gives the new fragment a .jspf file suffix and creates a node for it in the Projects window, as well as adding the page fragment to the Outline window.
    * Note: A Page Fragment Box component simply includes a page fragment in a page. Deleting a Page Fragment Box component from a page does not delete the page fragment itself, even if you originally used the Select Page Fragment dialog box to create the page fragment.
    After dropping a Page Fragment Box component on the page, if you click inside the component, you see the properties for the included fragment. If you click the border of the component, you see the properties for the enclosing <div> block. You can also use the Outline window to select the enclosing block, the page fragment, or the components in the page fragment. In the Outline window, the Page Fragment Box component is represented by a node named directive.include:fragment-file.jspf, where fragment-file is the name of the page fragment file.
    If you double-click the page fragment, it opens as a page in the Visual Editor, enabling you to edit it like a regular page. The page fragment has an associated JavaBeans object, a page fragment bean, which you can edit by clicking the Java button at the top of the page fragment when it is open in the Visual Editor. As with a regular page, if you drop a component like a button in a fragment, double clicking adds an event handler in the page fragment bean, enabling you to reuse the code on any page to which you add the page fragment. A common scenario for reusing component code would be a Search Box fragment that has a search Label, a Text Field where the user enters the search string, some Inline Help, and search logic code in the page fragment bean.
    * The tab order of the components in the page is unlikely to work properly unless you enclose the entire page fragment box in the Faces Verbatim component.
    For more details see tutorial : "Using Page Fragments"
    http://developers.sun.com/prodtech/javatools/jscreator/learning/tutorials/2/pagefragments.html
    [b]Tab Set Component
    The Tab Set component in the Palette's Layout category is a container for a set of Tab components. Typical uses of a tab set are:
    * To provide alternate sets of components on the same page and enable the user to navigate to them by clicking on tabs. The user sees only the components under the currently selected tab. For more information on adding components to tabs, see Tab Component.
    * To navigate among a set of pages. If you use a tab set this way, you would usually have the tab set near the top of each page with the component's width set at 100%. You would use the Page Navigation editor to define each tab to display a page in the application, with the current page's tab set as the selected tab. In addition, you would need to delete the default Layout Panel component under each tab so the tab would display the page contents.
    You can set Tab Set properties in the component's Properties window.
    A Tab Set component contains Tab Components, and Tab components can contain other Tab components. You can see these components displayed as hierarchical nodes in the Outline window after you add a Tab Set to your page.
    You can add a new tab to a tab set in two ways, by right-clicking the Tab Set component and choosing Add Tab or by dropping a new tab component on the Tab Set or on a Tab component.
    You can drop a new tab component on a tab set in the Visual Designer to the right or left of existing tabs to create a new tab at that level. The tabs in a tab set can also be containers for other tabs. If you drop a Tab component on an existing tab, the new tab becomes a child of the tab on which you dropped it. The maximum number of levels for tabs is three.
    The tab set component determines which tab is rendered as selected, storing the value in the selected property. By default, the selected property is set to the first tab created for the component. If you click a tab while designing your web page, that tab becomes the selected tab. You can tell during design time that a tab is selected because its color changes.
    [b]Tab Component
    A Tab is part of a Tab Set component. You can add a new tab to a tab set in two ways, by right-clicking the Tab Set component and choosing Add Tab or by dragging a new Tab component from the Layout category of the Palette and dropping it on the Tab Set or on another Tab component. You can also drag from the Palette and drop the tab on the tab set's nodes in the Outline window.
    * If you drop the Tab component to the left or right of an existing tab, it is added to the same row of tabs.
    * If you drop the Tab component on an existing tab, the dropped tab becomes a child tab of the tab on which you drop it unless the existing tab is a third level tab. You can have at most three levels of tabs in a tab set.
    o Note: You cannot add a child tab to a tab that has components in its Layout Panel. When you drop a tab on an existing tab component that has an empty Layout Panel, the empty Layout Panel is deleted to make room for the dropped tab.
    By default, a Tab component has a Layout Panel below it where you can drop components that will be displayed when the user selects the tab. The Layout Panel by default has its panelLayout property set to Grid Layout, meaning that components dropped on the panel are aligned at the location where they are dropped. You can change the layout behavior by setting the panelLayout property to Flow Layout, which aligns dropped components left to right in rows. For more information on Layout Panel properties, see Layout Panel Component Properties Window.
    To select a tab in a tab set, either click the Tab component on the page or select the Tab component's node in the Outline window. To select the whole tab set, either click the border of the Tab Set component on the page or select the tab set's node in the Outline window. Alternatively, you can select a Tab component and either press Escape or right-click and choose Select Parent to select its parent component.
    * Note: If you select a tab on a page in the Visual Designer, a side effect is that it becomes the selected tab. If this effect is not what you want, select the tab in the Outline window so you can set its properties.
    You can drag tabs in the Outline window to change their location and level in the tab set.
    Some typical uses of tabs:
    * You can drop components on the Layout Panel component below a tab to enable a set of components to be displayed below each tab. When the user selects a tab, they see only the components that are associated with the tab, without having to change pages.
    * You can use a tab set to navigate among a set of pages. Each tab component links to a page in your web application. You would use the Page Navigation editor to define each tab to display a page in the application, with the current page's tab set as the selected tab. If you want to use the tab set for page navigation, be sure to delete each tab component's Layout Panel.
    You can also right-click the Tab component and choose one of the following options:
    * Edit action Event Handler. Code the action event handler, the method that is called when the user clicks the tab. This method determines which page or resource to open based on specified conditions. The action method typically processes mouse clicks and returns a string indicating the name of a page navigation case (the page in your application to display next). The default name for the method is tab-id_action, where tab-id is the value of the tab's id property.
    * Bind to Data. Dynamically set the text that appears on the tab. You can bind the component's text property to an object or a data provider, as described in the topic Bind to Data Dialog Box.
    * Property Bindings. Opens a dialog box that enables you to bind properties of the component in addition to the text property to other objects or bean properties that update this component's properties automatically.
    [b] Please join in and share your comments, experiences, additional information, questions, feedback, etc. on these components. <br><br>
    Thank you for your participation

    The following blog has a mini tutorial on using a tab set in a page fragment for page navigation:
    http://blogs.sun.com/divas/entry/tabbing_thru_the_tulips
    A reader commented that the mini tutorial needed to be improved upon to show how to keep the tab state and navigation state in synch.
    How would you do it? If you have a good example, maybe post it to this thread.
    Also, there is no tab tutorial but it is on the priority list. What would you like a tab tutorial to show how to do?

  • Dynamically setting column width doesn't work all the time

    I wanted to dynamically set the width of a column in a JTable to be half of the width of a another column. This should happen whenever the frame is resized. But somehow I need to tell this twice to Java. If I don't then sometimes the column width isn't set new.
    Is this a Java bug or what?
    public void componentResized(ComponentEvent ce)
         try
              ref.table.getColumn(ref.rsmd.getColumnLabel(5)).setMaxWidth(ref.table.getColumn(ref.rsmd.getColumnLabel(1)).getWidth() / 2);
              ref.table.getColumn(ref.rsmd.getColumnLabel(5)).setMinWidth(ref.table.getColumn(ref.rsmd.getColumnLabel(1)).getWidth() / 2);
              // Again, or it won't work:
              ref.table.getColumn(ref.rsmd.getColumnLabel(5)).setMaxWidth(ref.table.getColumn(ref.rsmd.getColumnLabel(1)).getWidth() / 2);
              ref.table.getColumn(ref.rsmd.getColumnLabel(5)).setMinWidth(ref.table.getColumn(ref.rsmd.getColumnLabel(1)).getWidth() / 2);
         catch(SQLException e)
    }

    Is it possible that your call to
    ref.table.getColumn(ref.rsmd.getColumnLabel(5)).setMinWidth(ref.table.getColumn(ref.rsmd.getColumnLabel(1)).getWidth() / 2);
    is altering the response created by
    ref.table.getColumn(ref.rsmd.getColumnLabel(5)).setMaxWidth(ref.table.getColumn(ref.rsmd.getColumnLabel(1)).getWidth() / 2);
    ? Have you tried calling them once but in the other order? Or just calling the "setMaxWidth" call twice and leaving out the second "setMinWidth"?
    Good luck... :)

  • In FrameMaker 9.0.3 and 9.0.4, I cannot set tab stops for a style in the Paragraph Designer.

    In FrameMaker 9.0.3 and 9.0.4, I cannot set tab stops for a style in the paragraph designer. Here are the steps to dysfunction:
    1. In Paragraph Designer, for Tab Stops, click Edit. Edit Tab Stop dialog box opens, and the Paragraph Designer dialog box closes.
    2. Type value in New Position box.
    3. Click Continue. The Edit Tab Stop box closes.
    4. Open Paragraph Designer. No tabs are recorded.
    Discussion of a similar problem occured on this forum in June 2010. At that time, the resolution seemed to be to upgrade to 9.0.3. Has anyone else encountered this problem with these versions?
    Thanks.

    Hi, Arnis,
    Brilliant! Thanks so much. I only looked at the later discussions of that thread, which seemed to indicate the problem would be solved by an upgrade to 9.0.3.
    -Trish

  • Set sidebar width of (Finder window 1) to 0 - (no longer working for me)

    on script_title()
    Filename : finderwindowprops.scpt (Script Debugger)
    Author : Bill Hernandez
    Version : 1.0.0
    Updated : Thursday, December 14, 2006 ( 6:01 PM )
    end script_title
    -- ---------+---------+---------+---------+---------
    on script_notes( )
    Setting the sidebar width for finder windows is not working consistently,
    nor correctly for me. I had written several scripts to standardize the
    display of windows on screen several months ago, and they have quit working
    during the last couple of versions of the OS, not sure what has happened ?
    end script_notes
    -- ---------+---------+---------+---------+---------
    on run
    tell me
    set this_folder to (path to current user folder)
    SetupWindow(this_folder)
    if (ChooseTest() = 1) then
    TestOne(this_folder)
    else
    TestTwo(this_folder)
    end if
    set str to ""
    set str to str & "The Sidebar Width Should be Zero" & return & return
    set str to str & "It had worked well several months ago when I was doing some "
    set str to str & "window stacking, but it seems to be broken for me..." & return & return
    set str to str & "iMacG5 running OSX 10.4.8" & return & return
    ShowMsg(str, 10)
    end tell
    end run
    -- ---------+---------+---------+---------+---------
    on SetupWindow(whichFolder)
    tell application "Finder"
    activate
    set counter to 1
    try
    open whichFolder
    select Finder window 1
    on error
    set win to make new Finder window
    end try
    set bounds of (Finder window counter) to {20, 60, 700, 700}
    set current view of (Finder window counter) to icon view
    set toolbar visible of (Finder window counter) to true
    set sidebar width of (Finder window counter) to 300
    set w_props to get properties of Finder window 1
    set str to ""
    set str to str & "The Sidebar Width Should be 300" & return & return
    set str to str & "Sidebar Width : " & ((sidebar width) of w_props)
    my ShowMsg(str, 0)
    end tell
    end SetupWindow
    -- ---------+---------+---------+---------+---------
    on TestOne(whichFolder)
    tell application "Finder"
    activate
    set counter to 1
    try
    open whichFolder
    select Finder window 1
    on error
    set win to make new Finder window
    end try
    set bounds of (Finder window counter) to {20, 60, 600, 600}
    set current view of (Finder window counter) to list view
    set toolbar visible of (Finder window counter) to true
    set sidebar width of (Finder window counter) to 0
    set w_props to get properties of Finder window 1
    set str to ""
    set str to str & "The Sidebar Width Should be Zero" & return & return
    set str to str & "Sidebar Width : " & ((sidebar width) of w_props)
    my ShowMsg(str, 0)
    end tell
    end TestOne
    -- ---------+---------+---------+---------+---------
    on TestTwo(whichFolder)
    tell application "Finder"
    activate
    set w_props to {}
    set w_props to w_props & {sidebar width:0}
    set w_props to w_props & {current view:list view}
    set w_props to w_props & {toolbar visible:true}
    set w_props to w_props & {statusbar visible:true}
    set w_props to w_props & {bounds:{20, 60, 400, 600}}
    try
    open whichFolder
    select Finder window 1
    on error
    set win to make new Finder window
    end try
    set w_ref to Finder window 1
    set properties of w_ref to w_props
    set w_props to get properties of Finder window 1
    set str to ""
    set str to str & "The Sidebar Width Should be Zero" & return & return
    set str to str & "Sidebar Width : " & ((sidebar width) of w_props)
    my ShowMsg(str, 0)
    end tell
    end TestTwo
    -- ---------+---------+---------+---------+---------
    on ChooseTest()
    tell application "Finder"
    activate
    set s to ""
    set s to s & "The sidebar width is inconsistent no matter which method I use." & return & return
    set s to s & "Sometimes there is a sidebar, sometimes there is none, particularly "
    set s to s & "with a window that already exists." & return & return
    set s to s & "Method one seems to work better, but does not always hide the sidebar." & return & return
    set s to s & "Please select a choice..."
    set b1 to "TestOne"
    set b2 to "TestTwo"
    set aReturn to display dialog s buttons {b1, b2} default button {b2}
    if (button returned of aReturn = b1) then
    return 1
    else
    return 2
    end if
    end tell
    end Choose
    -- ---------+---------+---------+---------+---------
    on ShowMsg(s, howLong)
    tell application "Finder"
    activate
    if (howLong = 0) then
    set theTIme to 3
    else
    set theTIme to howLong
    end if
    set b1 to "OK"
    display dialog s buttons {b1} default button {b1} giving up after theTIme
    end tell
    end ShowMsg
    -- ---------+---------+---------+---------+---------

    This is a re-post since I learned how to format the output a little nicer...
    on script_title()
       Filename : finderwindowprops.scpt (Script Debugger)
       Author : Bill Hernandez
       Version : 1.0.0
       Updated : Thursday, December 14, 2006 ( 6:01 PM )
    end script_title
    -- ---------+---------+---------+---------+---------
    on script_notes()
       Setting the sidebar width for finder windows is not working consistently,
       nor correctly for me. I had written several scripts to standardize the
       display of windows on screen several months ago, and they have quit working
       during the last couple of versions of the OS, not sure what has happened ?
    end script_notes
    -- ---------+---------+---------+---------+---------
    on run
       tell me
          set this_folder to (path to current user folder)
          SetupWindow(this_folder)
          if (ChooseTest() = 1) then
             TestOne(this_folder)
          else
             TestTwo(this_folder)
          end if
          set str to ""
          set str to str & "The Sidebar Width Should be Zero" & return & return
          set str to str & "It had worked well several months ago when I was doing some "
          set str to str & "window stacking, but it seems to be broken for me..." & return & return
          set str to str & "iMacG5 running OSX 10.4.8" & return & return
          ShowMsg(str, 10)
       end tell
    end run
    -- ---------+---------+---------+---------+---------
    on SetupWindow(whichFolder)
       tell application "Finder"
          activate
          set counter to 1
          try
             open whichFolder
             select Finder window 1
          on error
             set win to make new Finder window
          end try
          set bounds of (Finder window counter) to {20, 60, 700, 700}
          set current view of (Finder window counter) to icon view
          set toolbar visible of (Finder window counter) to true
          set sidebar width of (Finder window counter) to 300
          set w_props to get properties of Finder window 1
          set str to ""
          set str to str & "The Sidebar Width Should be 300" & return & return
          set str to str & "Sidebar Width : " & ((sidebar width) of w_props)
          my ShowMsg(str, 0)
       end tell
    end SetupWindow
    -- ---------+---------+---------+---------+---------
    on TestOne(whichFolder)
       tell application "Finder"
          activate
          set counter to 1
          try
             open whichFolder
             select Finder window 1
          on error
             set win to make new Finder window
          end try
          set bounds of (Finder window counter) to {20, 60, 600, 600}
          set current view of (Finder window counter) to list view
          set toolbar visible of (Finder window counter) to true
          set sidebar width of (Finder window counter) to 0
          set w_props to get properties of Finder window 1
          set str to ""
          set str to str & "The Sidebar Width Should be Zero" & return & return
          set str to str & "Sidebar Width : " & ((sidebar width) of w_props)
          my ShowMsg(str, 0)
       end tell
    end TestOne
    -- ---------+---------+---------+---------+---------
    on TestTwo(whichFolder)
       tell application "Finder"
          activate
          set w_props to {}
          set w_props to w_props & {sidebar width:0}
          set w_props to w_props & {current view:list view}
          set w_props to w_props & {toolbar visible:true}
          set w_props to w_props & {statusbar visible:true}
          set w_props to w_props & {bounds:{20, 60, 400, 600}}
          try
             open whichFolder
             select Finder window 1
          on error
             set win to make new Finder window
          end try
          set w_ref to Finder window 1
          set properties of w_ref to w_props
          set w_props to get properties of Finder window 1
          set str to ""
          set str to str & "The Sidebar Width Should be Zero" & return & return
          set str to str & "Sidebar Width : " & ((sidebar width) of w_props)
          my ShowMsg(str, 0)
       end tell
    end TestTwo
    -- ---------+---------+---------+---------+---------
    on ChooseTest()
       tell application "Finder"
          activate
          set s to ""
          set s to s & "The sidebar width is inconsistent no matter which method I use." & return & return
          set s to s & "Sometimes there is a sidebar, sometimes there is none, particularly "
          set s to s & "with a window that already exists." & return & return
          set s to s & "Method one seems to work better, but does not always hide the sidebar." & return & return
          set s to s & "Please select a choice..."
          set b1 to "TestOne"
          set b2 to "TestTwo"
          set aReturn to display dialog s buttons {b1, b2} default button {b2}
          if (button returned of aReturn = b1) then
             return 1
          else
             return 2
          end if
       end tell
    end ChooseTest
    -- ---------+---------+---------+---------+---------
    on ShowMsg(s, howLong)
       tell application "Finder"
          activate
          if (howLong = 0) then
             set theTIme to 3
          else
             set theTIme to howLong
          end if
          set b1 to "OK"
          display dialog s buttons {b1} default button {b1} giving up after theTIme
       end tell
    end ShowMsg
    -- ---------+---------+---------+---------+---------

  • How do I set Column Width in table displayed - have tried everything :-(

    Hi,
    I'm using Jdev 10.1.2, adf bc and jsp's.
    Simple problem, driving me nuts. In my app i display a number of different view objects in a number of jsp's. i want to set the width of the columns so that the info (if large) in each field will stay on one line. i.e. it wont continue onto the next line and take up two rows.
    i have tried setting the width property of the <th> & <td>, setting the disply width property in the entity object editor and the view object editor, nothing makes a bit of difference to how the column is displayed.
    this results in the tables looking messy and squised, which is totally unsatisfactory.
    so if anyone could shed any light on the subject, i would be most grateful.
    Thanks in advance......

    hi Newbe,
    if you set the option noWrap="true" on the column the text will not be wrapped;
    <af:column noWrap="true" sortable="false" headerText="col5">
    <af:outputText value="#{row.col5}"/>
    </af:column>
    Good luck
    Luc Bors

  • How to set tabbing order in Acrobat X Pro

    I cannot find any instructions for manually setting tabbing order in Acrobat X Pro.  It does not work the same as earlier versions of Acrobat Pro.  Any idea as to where I can go for instructions for X Pro?

    Thank you for the quick response!  I found instructions for the Pro 9 version, so followed that and it worked like a charm.
    Thanks again for your help.
    RJ

  • How to set the width for a selectManyShuttle component

    Hi,
    I'm using selectManyShuttle component from Oracle ADF Core and some of the items in the showing list are long, therefore the width of selectManyShuttle expands the page. How to set the width property for selectManyShuttle component? After that does selectManyShuttle provide horizontal scrollbar as well?
    Thanks in advance,
    lapi
    Message was edited by:
    [email protected]
    Message was edited by:
    [email protected]

    Solution here:
    Re: ADF Faces Scrollable Panel or Scroll Bar inside a component
    Regards
    Grant

Maybe you are looking for

  • Can you  say internally what happens?

    String s1 = new String("ABCDEF"); String s2 = new String("ABCDEF"); if(s1==s2){ s.o.pln("true") }else s.o.pln("false") } here it gives false String a="xxxxx"; String b="xxxxx"; if(s1==s2){ s.o.pln("true") }else s.o.pln("false") } here it gives true

  • Is it possible to call any Managed Bean method from af:goLink

    Hi, I am using RichGoLink component. Is it possible to call a managed bean method on click of the af:goLink? I want to provide some validations when user clicks on the goLink. There is no any actionListener provided. Thanks in advance.

  • How to put webi report onto the web

    Hi All, I have created a webi report in the web rich client and then i need to put on the web. Can some body tell me how to do it . Thanks & Regards, Anjna Goyal.

  • My new MacBook pro is not turning on!please give me solution!!

    My new 2012 MacBook pro is not turning on!i already set up the mac!next day when I tried to start it,it was not turning on!i tried with pressing command,control and power button together but it's not working!!please help!!

  • Lightroom 5 images turn blue

    My images have turned blue in  Lightroom 5.  They are NOT blue in camera, in CS5 Photograph or CS5 Bridge or in iPhoto.  Help, I am trying to do a book for Christmas............  instead of working on my images and layout I've spent the last week try