Problem inserting tabs in a multi-column layout

Hello everybody,
I've created a three-column document and I want to insert a right-tab at the right edge of each column. While this is easy in colums 1 and 3, there is no way that Pages will let me insert tabs in the central column. Clicking on the ruler produces no results, and in the inspector the space for entering a numeric value for the tabs is greyed out (i.e. non-editable).
If some of you has experienced any of this before, I'd be curious to know; and if you found a solution, then I'd truly appreciate it if you could share it.
Thank you in advance,
Rafael

Hi fruhulda,
Thank you so much for the quick reply and your willingness to help!
Right after posting the message I kept trying, and I've been able to insert the tab that I wanted; to be honest, I don't reckon how I did it, but I believe I deleted all other tabs.
Anyway, the issue still exists, as you can see in the screenshot below. The blocked text will not accept any more tabs via the inspector The +/- signs are inactive), and clicking on the ruler doesn't help either.
As I said, maybe the way around this problem is to delete all tabs before creating any new ones for this particular column, but that doesn't look like a very intuitive was of proceeding in Pages (which I use precisely because I hate Word's bloated features).
Again, than you very much for your interest. Best wishes,
R.
Original Pages file here: http://www.mediafire.com/?sv4vbimuz4jorpg

Similar Messages

  • Multi-column layout in CR XI

    Post Author: rjoubert
    CA Forum: Crystal Reports
    I posed this question before, but never received any replies.  So here I go again...I have a report in CR XI Developer edition.  In the section expert, I check the "Format with Multiple Columns" checkbox and select the "Across then Down" option for Printing Direction (on the Layout tab).  Yet, when I run the report, it ALWAYS displays Down then Across.  Is there a setting I am missing, or is this a bug in CR XI?

    Post Author: rjoubert
    CA Forum: Crystal Reports
    Please disregard...I believe I have this figured out now.

  • Problem inserting clob value into xmltype column

    Hi all,
    I have created a table in XML DB using as:
    CREATE TABLE TransDetailstblCLOB ( id number, data_xml XMLType) XmlType data_xml STORE AS CLOB;
    I am trying to insert large xml data into the data_xml column which is of type XMLTYPE.
    I followed this link (http://www.oracle.com/technology/sample_code/tech/java/codesnippet/xmldb/HowToLoadLargeXML.html) to create a clob object and insert into xml.
    I am getting the following error:
    ORA-31011: XML parsing failed
    ORA-19202: Error occurred in XML processing
    LPX-00229: input source is empty
    Error at line 0
    ORA-06512: at "SYS.XMLTYPE", line 254
    ORA-06512: at line 1
    My code snippet:
    private static CLOB getCLOB(String xmlData, Connection conn) throws SQLException{
         CLOB tempClob = null;
         if(conn==null){
              log.debug("Connection object is null");
              throw new SQLException("Connection object is null");
         try{
         // If the temporary CLOB has not yet been created, create new
         tempClob = CLOB.createTemporary(conn, true, CLOB.MODE_READWRITE);
         // Open the temporary CLOB in readwrite mode to enable writing
         tempClob.open(CLOB.MODE_READWRITE);
         // Get the output stream to write
         writer = tempClob.getCharacterOutputStream();
         writer.write(xmlData);
         } catch(SQLException sqlexp){
              tempClob.freeTemporary();
         sqlexp.printStackTrace();
         } catch(Exception exp){
         tempClob.freeTemporary();
         exp.printStackTrace();
         return tempClob;      
    public static void insertXML(String xmlData, Connection conn){
         CLOB clob = null;
         String query;
         log.debug("Inside insertXML" +xmlData);
         try{
         query = "INSERT INTO TransDetailstbl1(data) VALUES (XMLType(?)) ";// Changed prev TransDetailstbl
         // Get the statement Object
         pstmt = conn.prepareStatement(query);
         //      xmlData is the string that contains the XML Data.
         // Get the CLOB object using the getCLOB method.
         clob = getCLOB(xmlData, conn);
         // Bind this CLOB with the prepared Statement
         pstmt.setObject(1, clob);
         int i =pstmt.executeUpdate();
         log.debug("pstmt.executeUpdate () status ::: "+i);
         // Execute the Prepared Statement
         if (i == 1) {
         log.debug("Record Successfully inserted!");
         } catch(SQLException sqlexp){
         sqlexp.printStackTrace();
         } catch(Exception exp){
         exp.printStackTrace();
         finally{
              try{
                   pstmt.close();
    //           Flush and close the stream
                   writer.flush();
                   writer.close();
              // Close the temporary CLOB
              tempClob.close();
              catch(Exception e)
                   log.debug("Cant close prepared statement.");
                   e.printStackTrace();
    Can anyone help me out?
    Please let me know if any other info is required.
    Regards,
    Robina

    Hi all,
    I now modified the code to write the data using Stream.
    I am getting this error message: SQLException while updateORA-24813: cannot send or receive an unsupported LOB
    On googling it seems the its usually caused when I am using the different versions of oracle on
    server and client.
    My oracle details:
    Database product version : Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Production
    With the Partitioning, OLAP and Data Mining options
    JDBC driver name : Oracle JDBC driver
    JDBC driver version : 9.2.0.1.0
    DataStoreHelper name is: com.ibm.websphere.rsadapter.OracleDataStoreHelper@22542254.
    JDBC driver type : thin
    Can anyone tell me how to proceed?
    Thanks

  • Two columns layout using tabs ?

    Hi everybody,
    I have a layout issue about a template i'd like to make. Here's the thing (i use underscores instead of spaces):
    NAME__Blablablablablablablablablablablablablablabl-
    ________ablablablablablablablabla
    ________Blablablablablablablablabla
    NAME__Blabla...
    (as you can see, the left columns can be left empty)
    Obviously, and 2 columns layout page is not the good solution.
    Basically, it could be a table with two columns (and it seems appropriate), but since the content of a row won't continue on several pages, I had to try with tabs. The issue I got with tabs is that is does like :
    NAME__BBlablablablablablablablablablablablablablabl-
    ablablablablablablablabla
    See what I mean ? It is okay for the first line but not the others. And I have to make paragraph styles of that. Maybe this kind of thing have been discussed here before but I couldn't find a case that fulfilled my requirments (is it at least correct english ? .
    Some help would be appreciated ... thanks!

    tibo,
    if you need a fast change of font style, use the character style. For this, show the styles drawer and click onto the button with the underlined a at the bottom of the drawer. Select the etire entry of the "left column" and adjust the font like you want to have it. Now select the red triangel beside the "None" title in the character style panel of the styles drawer. In the appearing menu you can choose the "Create New Character Style from Selection...".
    Do this and click the "OK" button or change the attributes for this character style by clicking the triangle beside the title "Include all character attributes". There you can deselect the attributes you don't want to store with the character style. But with this, Pages has a bug, so you can stay this untouched. It will work like you need it.
    After you have stored the character style, every time you have inserted a new entry in your "two column" layout, select the left column entry and choose the character style in the styles drawer you stored for it.

  • Problem with MULTI-COLUMN Data Store

    I am using multi column store on 2 CLOB columns in the table while creating a context index. After creating the context index, when i run my contains clause for certain words; it actually returns all the records in that table. When i search the $i table for these words, it shows that the word occurs in all the records even though it doesn't. I assume that when indexing the words, the special characters aren't being handled at all. So, i need a way to efficiently handle the special characters in the text. Also, need to know; how are the special characters handled when context index is created on a single column (As i haven't been facing any problems when mining data such columns).
    The script i used for creating the context index is given below :
    BEGIN
    ctx_ddl.create_preference ('MLT_COLUMN_STORE', 'MULTI_COLUMN_DATASTORE');
    ctx_ddl.set_attribute ('MLT_COLUMN_STORE',
    'columns',
    'column1,column2'
    EXECUTE IMMEDIATE 'CREATE INDEX routine_task_ctx_idx '
    || 'ON routine_table (column1) '
    || 'INDEXTYPE IS CTXSYS.CONTEXT '
    || 'PARAMETERS '
    || '(''DATASTORE MLT_COLUMN_STORE'
    || ' FILTER CTXSYS.NULL_FILTER'
    || ' STOPLIST CTXSYS.EMPTY_STOPLIST'
    || ' LEXER CTXSYS.BASIC_LEXER'')'
    || ' PARALLEL 2';
    END;

    Hi,
    is it possible to give an example of how your data looks like? What are these special characters? Oracle Text includes option like printjoins and skipjoins which give special meanings to characters. So an example will guide us for helping you.
    Herald ten Dam
    http://htendam.wordpress.com

  • How to insert data to the specified row column of the multi column list box

    Hi All
    How do i insert data into the specified column of the multi cplumn list box?
    I have a table that containsall station nos and name.Then another table contains the data the various stations having at  for 24 hrs.That is 12 am to 11 pm.
    And i want to display each stations details as follows using a multi column list box/table
    My stationinfo table
    stnno   stnname......................
    s1           stn1
    s2            stn2
    s3             stn3
    The other table
    stnno      sysdatetime       data
    s1             12am                   1
    s2              12am                   4
    s1               1  am                 2
    So the station s1,s2.... will have data for 24 hrs.
    And i want to display it as follows using a multicolumn listbox
    stnname        12am   1 am ......................................11pm
    s1                   ...................
    s2                 ........................
    What i have in my  mind is to get all station nos
    and in a for loop get the station's data from 12 am to 11 pm
    or
    select every statios data for each hor.But in this case i have to query the database 24 times.So i dont think its a good way.
    Or any other better query available?
    Can anybody suggest me a good idea?
    One more thing...how to insert data into the specified field row or column of a multi column list box?
    Thanks in advance

    hi
    i want to know,,can u say ur need clearly...and i attached two image u see that one
    Indrajit
    | [email protected] | [email protected] .
    Attachments:
    station.JPG ‏35 KB
    station2.JPG ‏79 KB

  • How to open a tab inside center part of a 3 column layout

    Hi,
    I have created a jsf page using 3 column layout
    I need a funtionality that when user clicks on any link avaliable in left new tab should be able to open in center part . I have tried some options but as i am new to ADF i am not able to acheive this.
    Can any body prlease tell me the steps for the same.
    my page structure is as following-
    PanelHeader->panelAcordion->showdetailitem->showcommanimagelink

    If the tab is already there you can just play with the rendered and disclosed property values from the code for your link.
    You might be interested though in adopting the Oracle User Interface Shell
    http://www.oracle.com/technology/products/adf/patterns/index.html

  • Title/Heading/Row-Align Multi-Column Tables

    File under: Frame Annoyances, with a limited hacky work-around
    In the two-column format we commonly work in, we often need a table that is column-wide, but may flow into multiple colums.
    The problem is that the continuation heading (and TableTitle, if used), never align with the starting heading/title. This is because the continuations start at top of column, whereas the table itself starts (by "Anywhere" default) below the anchor line (presumed to be "In Column" for this discussion)..
    OK, what if we change Table > Table Designer [Basic] Start to:
    Top of Column: Oops, that becomes top of next column, leaving the anchor text column-widowed (but it gave me an idea).
    Top of Page: Oops, that becomes top of next page, leaving the anchor text page-widowed.
    Float: No effect
    OK, what if we change the anchor text Format > Paragraph > Para Designer [Pagination] Format to:
    [Pagination] Across All Columns (AAC): Oops, table appears only in left column on all pages, or;
    [Basic] Space & Line Spacing, including negative values, appears to have no effect. Using a tiny font only minimizes the problem, and doesn't cure it.
    I thought I had figured out how to solve this at one time, but could not recall it. I'm posting this in part to solicit some simpler solution. Web searching found only one solid candidate solution, and it was, of course, 404. Perhaps Frame versions later than the FM7/Win and FM7.1/Unix that I routinely use have enhancements to address this.
    We normally just sidestep the problem by using an AAC format and a table that spans the page, with a fake center gutter, simulating a multi-column flow. But in a recent case, I wanted a real single-column-wide table of variable length (due to conditional rows and expected future growth), but I wanted the headings to align across columns. The table did fit on a single page, which is a limitation of the following hack.
    Hack: This example presumes a normal 2-column page text frame that is 7.5in wide with a 0.24in gutter (3.63in columns), and table that needs no more than one page. It works for 3- and 4-column layouts as well.
    Use an AAC anchored frame text line.
    Create a full page width (7.5in) anchored frame (which can be Below, Top of Col, as desired).
    Create a text frame inside the anchored frame. This frame is:
    one more than your standard page (3-column for this example)
    Same gutter size (0.24in for this example).
    Initially draw the text frame to fit inside the the anchored frame, so you can easily grab it.
    Make sure the default (anchored table) paragraph format of the first column is "In Column".
    Use Graphics > Object Properties to adjust the inside text frame:
    Set Width: to your standard text frame total width plus 1 column and 1 gutter (11.37in for this example).
    Set Offsets: to 0 and 0 (this will push the rightmost column out of sight for the moment).
    Insert your table at the anchored table text of the inside text frame.
    In Table Designer, set Start: to Top of Column (this pushes the start of table to column 2).
    Select the internal text frame again.
    Set Offset From: Left: to negative one column + one gutter (-3.87in for this example).
    The table now appears to start in page column one, and flows to additional columns with heading alignment.
    This worked perfectly for my recent requirement. In fact, I used a 3-column layout (4 actual) for the text frame inside the anchored frame. Some math is required, sorry .

    I'm not sure if I followed that correctly, but if I read it right, you
    have a single-column table that spans multiple columns, and the issue is
    that the first column does not butt up against the top of the text
    frame, while the additional columns do. You want the table in all
    columns to butt up against the top of the text frame so that they are even.
    If that is the case, the solution is this:
    1. Create a paragraph format called "TableAnchor" in the Paragraph
    Designer. Assign it with a negative Space Below of -12.0 pt, "Fixed"
    line spacing, "Start Anywhere.," "In Column." Assign the font size as
    12.0 pt.
    2. Create your table format. Give it a Space Above of 12.0 pt.
    3. Then, always insert your table into its own, empty TableAnchor
    paragraph. You will get the alignment you seek.
    NOTES: Anywhere I said "12.0 pt," you can use a different font size-- as
    long as you use the same number in each place. You may also want to
    create a TableAnchorAAC paragraph format, which is identical except for
    the Across All Columns setting, to hold tables that span multiple columns.
    I hope I understood the question correctly and was of help.

  • Multi Column Report - printing Across and then Down

    Is there any setup option for a multi column report to go across and then down instead of down & across as a default. The problem I am experiencing is that some where and some how the two columns are not horizontally aligned properly - neither in the
    report view nor in the exported PDF. 
    The added difficulty is the problems created by this misaligned labels while printing on a custom paper that is smaller in size. Though I can setup the custom dimensions and get the desired 4x2 labels on the screen the printing doesn't sit in proper places
    on a preformatted paper.
    Is there any solution(s). Thanks in advance.

    Hi Christal,
    Based on my understanding, you want to make multi columns go across then down in the report.
    For your requirement, on query level, we should add an additional field(DisplayColumn) in the dataset, the field indicates the column in which the corresponding records will display. When designing a report, we add a group in the report, then insert some
    tablixes into the detail row. Within the nested tablix, we specify filter expression based on the value of DisplayColumn field. So that we can decide which data should display on which column. When previewing the report, you can find the report displays like
    newsletter-style. Besides, if we design the report like this, the report can supports all renders. For detail information about how to design the report step by step, please refer to this article:
    Creating Multiple-Column Reports [SSRS] .
    If you have any question, please feel free to ask.
    Best regards,
    Qiuyun Yu
    Qiuyun Yu
    TechNet Community Support

  • Determine the best width for ListCellRenderer - Multi-column combo box

    Currently, I am having a multi column combo box. In order for the column to align properly during show popup, I use box layout to do so. However, the short coming for box layout is that, the size for each column is fixed. This makes me have a difficulty, when I have a long string to be displayed. The problem is shown through the following screen shoot.
    http://i.imgur.com/4Nfc6.png
    This is because in 2nd column,
    1) All the 3 rows must be in same size so that they are aligned.
    2) But 1st row and 2nd row cell renderer, do not know 3rd row is holding such a long string.
    The code (2 files) to demo this problem is as follow. Is there any way the size of the cell will be adjusted automatically? Yet, all the row will be aligned properly.
    ResultSetCellRenderer.java
    package javaapplication24;
    import java.awt.Color;
    import java.awt.Component;
    import javaapplication24.NewJFrame.ResultType;
    import javax.swing.JList;
    import javax.swing.ListCellRenderer;
    import javax.swing.UIManager;
    * @author yccheok
    public class ResultSetCellRenderer extends javax.swing.JPanel implements ListCellRenderer {
        /** Creates new form ResultSetCellRenderer */
        public ResultSetCellRenderer() {
            initComponents();
        /** This method is called from within the constructor to
         * initialize the form.
         * WARNING: Do NOT modify this code. The content of this method is
         * always regenerated by the Form Editor.
        @SuppressWarnings("unchecked")
        // <editor-fold defaultstate="collapsed" desc="Generated Code">
        private void initComponents() {
            jLabel1 = new javax.swing.JLabel();
            jLabel2 = new javax.swing.JLabel();
            setLayout(new javax.swing.BoxLayout(this, javax.swing.BoxLayout.X_AXIS));
            jLabel1.setText("jLabel1");
            jLabel1.setMaximumSize(new java.awt.Dimension(88, 14));
            jLabel1.setMinimumSize(new java.awt.Dimension(88, 14));
            jLabel1.setPreferredSize(new java.awt.Dimension(88, 14));
            add(jLabel1);
            jLabel2.setText("jLabel2");
            jLabel2.setMaximumSize(new java.awt.Dimension(100, 14));
            jLabel2.setMinimumSize(new java.awt.Dimension(200, 14));
            jLabel2.setPreferredSize(new java.awt.Dimension(100, 14));
            add(jLabel2);
        }// </editor-fold>
        // Variables declaration - do not modify
        private javax.swing.JLabel jLabel1;
        private javax.swing.JLabel jLabel2;
        // End of variables declaration
        // Do not use static, so that our on-the-fly look n feel change will work.
        private final Color cfc  = UIManager.getColor("ComboBox.foreground");
        private final Color cbc  = UIManager.getColor("ComboBox.background");
        private final Color csfc = UIManager.getColor("ComboBox.selectionForeground");
        private final Color csbc = UIManager.getColor("ComboBox.selectionBackground");
        private final Color cdfc = UIManager.getColor("ComboBox.disabledForeground");
        // For Nimbus look n feel.
        private final Color nimbus_csfc;
             Color c = UIManager.getColor("ComboBox:\"ComboBox.renderer\"[Selected].textForeground");
             // Pretty interesting. Applying "c" directly on the component will not
             // work. I have the create a new instance of Color based on "c" to make
             // it works.
             nimbus_csfc = c != null ? new Color(c.getRed(), c.getGreen(), c.getBlue()) : null;
        private final Color nimbus_csbc;
            Color c = UIManager.getColor("ComboBox:\"ComboBox.renderer\"[Selected].background");
             // Pretty interesting. Applying "c" directly on the component will not
             // work. I have the create a new instance of Color based on "c" to make
             // it works.
            nimbus_csbc = c != null ? new Color(c.getRed(), c.getGreen(), c.getBlue()) : null;
        @Override
        public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) {
            final Color _csbc = csbc != null ? csbc : nimbus_csbc;
            final Color _csfc = csfc != null ? csfc : nimbus_csfc;
            this.setBackground(isSelected ? _csbc : cbc);
            this.setForeground(isSelected ? _csfc : cfc);
            jLabel1.setBackground(isSelected ? _csbc : cbc);
            jLabel1.setForeground(isSelected ? _csfc : cfc);
            jLabel2.setBackground(isSelected ? _csbc : cbc);
            jLabel2.setForeground(isSelected ? _csfc : cfc);
            final ResultType result = (ResultType)value;
            jLabel1.setText(result.symbol);
            jLabel2.setText(result.name);
            return this;
    NewJFrame.java
    package javaapplication24;
    import java.awt.Container;
    import java.awt.Dimension;
    import javax.swing.JComboBox;
    import javax.swing.JList;
    import javax.swing.JScrollBar;
    import javax.swing.JScrollPane;
    import javax.swing.SwingUtilities;
    import javax.swing.event.PopupMenuEvent;
    import javax.swing.event.PopupMenuListener;
    import javax.swing.plaf.basic.BasicComboPopup;
    * @author yccheok
    public class NewJFrame extends javax.swing.JFrame {
        public static class ResultType {
             * The symbol.
            public final String symbol;
             * The name.
            public final String name;
            public ResultType(String symbol, String name) {
                this.symbol = symbol;
                this.name = name;
            @Override
            public String toString() {
                return symbol;
        /** Creates new form NewJFrame */
        public NewJFrame() {
            initComponents();
            this.jComboBox1.addPopupMenuListener(this.getPopupMenuListener());
            this.jComboBox1.setRenderer(new ResultSetCellRenderer());
            this.jComboBox1.addItem(new ResultType("Number 1", "Normal"));
            this.jComboBox1.addItem(new ResultType("Number 2", "Normal"));
            this.jComboBox1.addItem(new ResultType("Number 3", "A VERY VERY VERY VERY long text"));
        /** This method is called from within the constructor to
         * initialize the form.
         * WARNING: Do NOT modify this code. The content of this method is
         * always regenerated by the Form Editor.
        @SuppressWarnings("unchecked")
        // <editor-fold defaultstate="collapsed" desc="Generated Code">
        private void initComponents() {
            jComboBox1 = new javax.swing.JComboBox();
            setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
            getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());
            jComboBox1.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jComboBox1ActionPerformed(evt);
            getContentPane().add(jComboBox1, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 10, 110, -1));
            pack();
        }// </editor-fold>
        private void jComboBox1ActionPerformed(java.awt.event.ActionEvent evt) {
            // TODO add your handling code here:
        * @param args the command line arguments
        public static void main(String args[]) {
            java.awt.EventQueue.invokeLater(new Runnable() {
                @Override
                public void run() {
                    final NewJFrame frame = new NewJFrame();
                    frame.setVisible(true);
        private PopupMenuListener getPopupMenuListener() {
            return new PopupMenuListener() {
                @Override
                public void popupMenuWillBecomeVisible(PopupMenuEvent e) {
                    // We will have a much wider drop down list.
                    adjustPopupWidth(jComboBox1);
                @Override
                public void popupMenuWillBecomeInvisible(PopupMenuEvent e) {
                @Override
                public void popupMenuCanceled(PopupMenuEvent e) {
         * Adjust popup for combo box, so that horizontal scrollbar will not display.
         * Resize JComboBox dropdown doesn't work without customized ListCellRenderer
         * http://www.camick.com/java/source/BoundsPopupMenuListener.java
         * @param comboBox The combo box
        public static void adjustPopupWidth(JComboBox comboBox) {
            if (comboBox.getItemCount() == 0) return;
            Object comp = comboBox.getAccessibleContext().getAccessibleChild(0);
            if (!(comp instanceof BasicComboPopup)) {
                return;
            BasicComboPopup popup = (BasicComboPopup)comp;
            JList list = popup.getList();
            JScrollPane scrollPane = getScrollPane(popup);
            // Just to be paranoid enough.
            if (list == null || scrollPane == null) {
                return;
            //  Determine the maximimum width to use:
            //  a) determine the popup preferred width
            //  b) ensure width is not less than the scroll pane width
            int popupWidth = list.getPreferredSize().width
                            + 5  // make sure horizontal scrollbar doesn't appear
                            + getScrollBarWidth(popup, scrollPane);
            Dimension scrollPaneSize = scrollPane.getPreferredSize();
            popupWidth = Math.max(popupWidth, scrollPaneSize.width);
            //  Adjust the width
            scrollPaneSize.width = popupWidth;
            scrollPane.setPreferredSize(scrollPaneSize);
            scrollPane.setMaximumSize(scrollPaneSize);
         *  I can't find any property on the scrollBar to determine if it will be
         *  displayed or not so use brute force to determine this.
        private static int getScrollBarWidth(BasicComboPopup popup, JScrollPane scrollPane) {
            int scrollBarWidth = 0;
            JComboBox comboBox = (JComboBox)popup.getInvoker();
            if (comboBox.getItemCount() > comboBox.getMaximumRowCount()) {
                JScrollBar vertical = scrollPane.getVerticalScrollBar();
                scrollBarWidth = vertical.getPreferredSize().width;
            return scrollBarWidth;
         *  Get the scroll pane used by the popup so its bounds can be adjusted
        private static JScrollPane getScrollPane(BasicComboPopup popup) {
            JList list = popup.getList();
            Container c = SwingUtilities.getAncestorOfClass(JScrollPane.class, list);
            return (JScrollPane)c;
        // Variables declaration - do not modify
        private javax.swing.JComboBox jComboBox1;
        // End of variables declaration
    }Edited by: yccheok on Jan 13, 2011 9:35 AM

    Are these two lines intentionally or is it just a mismatch?
    jLabel2.setMaximumSize(new java.awt.Dimension(100, 14));
    jLabel2.setMinimumSize(new java.awt.Dimension(200, 14));
    2) But 1st row and 2nd row cell renderer, do not know 3rd row is holding such a long string.There is only one cell renderer for all rows, so no need for the rows to know each other.
    To calculate the exact maximum width of column two, you have to check each entry.
    If you can do this BEFORE creating the combo, you could do this in a loop similar to this pseudo code
    FontMetrics fm= jComboBox1.getFontMetrics(jComboBox1.getFont());
    foreach (column2String) {
      int length= fm.stringWidth(column2String);
      if (length>max) max= length;
    }Now you have a max value to dimension jLabel2 in your renderer.
    If you don't fill your combo in one go, but rather at runtime, you have to check at each
    jComboBox1.addItem(...)
    whether the string for label2 is extending the current max, redefine max, and repaint the combo.
    This second approach I haven't done so far, but that's how I would try.

  • Problem with tab stops in InDesign CS6

    Hi there.
    I'm trying to align large numbers (with two stops) like
    1.229
    102.864
    7.075
    2.140.753
    2.251.921
    in Indesign CS6. Obviously I'd like them to align on the second dot.
    After choosing OpenType > Tabular Lining from the Character Panel menu I am able to align them almost perfectly. However upon closer inspection I can see that the second dot is not aligned perfectly like it should. Why is that? Any help would be greatly appreciated!
    Thanks!

    Hi Donvinoth,
    Sure! If you look at the examples above, I've tried three different options and settings using the Minion Pro font. Selecting "OpenType > Tabular Lining is not even necessary as I've come to learn.
    Example A: a normal textbox in which I've selected all the numbers and then chosen "Align right". The numbers then align perfectly on the second dot.
    Example B: a normal textbox with several columns and different tabs options. You can see which one I've used on the individual columns by the title above. Notice how the decimal option is not aligning the numbers by the second dot? The only solution to the problem is to choose the "Right-justfied Tab" in the tab options, as shown in the last column. Aparently you can't make the decimal tab align on the second dot like this in InDesign yet but perhaps they'll make it possible in another version.
    Example C: I've inserted a table into a textbox and and then used different tabs options on the columns; notice how the decimal tab is working like it should in this case? In order to insert a tab in a table you need to place your curser right in front of the number and then right-click your mouse, choose Insert special character > Other > Tab. You can also choose to make the row and column stroke invisible in the table Table options if need be, which will make it look exactly like a normal textbox.
    This won't work with fonts like Dosis as it's not suitable for tabular work where you want figures to line up vertically like Spier said, so you need to choose a font like Minion Pro or something similar to it.
    I'm not sure if that solves your problem. If not then please attach a picture of the issue you're having and I'll try my best to help you.

  • Text query using a Multi Column datastore index slow

    I have created a text index using multi column datastore preference. I have specified two clob columns in my preference. Searching on this new index works, but it is slower than I expected.
    I have done the following comparison:
    My original two clob columns are: DocumentBody and DocumentFields. I have built an individual text index on each column. My new column with Multi Column index is DocumentBodyAndFields;
    I did two queries:
    1. search 'dog' on DocumentBody UNION search 'dog' on DocumentFields;
    2. search 'dog' on DocumentBodyAndFields;
    I would think the second search should be faster than the first one because it is a single query. But this is not the case. The second query is consistently slower than the first query by about 10-20%.
    Things are getting much worse when I search on preceding wildcards. If I search '%job', the multi column index is twice as slow as the first query! I am very confused by this result. Is this a bug?

    I am unable to reproduce the performance problem. In my tests, the search that uses the multicolumn_datastore performs better, as demonstrated below. Can you provide a similar test case that shows the table structure, datastore, index creations, and explain plan?
    SCOTT@orcl_11g> CREATE TABLE your_tab
      2    (DocumentId            NUMBER,
      3       DocumentBody            CLOB,
      4       DocumentFields            CLOB,
      5       DocumentBodyAndFields  VARCHAR2 (1))
      6  /
    Table created.
    SCOTT@orcl_11g> INSERT ALL
      2  INTO your_tab VALUES (-1, 'adog', 'bdog', NULL)
      3  INTO your_tab VALUES (-2, 'adog', 'whatever', NULL)
      4  INTO your_tab VALUES (-3, 'whatever', 'bdog', NULL)
      5  SELECT * FROM DUAL
      6  /
    3 rows created.
    SCOTT@orcl_11g> INSERT INTO your_tab
      2  SELECT object_id, object_name, object_name, NULL
      3  FROM   all_objects
      4  /
    69063 rows created.
    SCOTT@orcl_11g> BEGIN
      2    CTX_DDL.CREATE_PREFERENCE
      3        ('your_datastore', 'MULTI_COLUMN_DATASTORE');
      4    CTX_DDL.SET_ATTRIBUTE
      5        ('your_datastore', 'COLUMNS', 'DocumentBody, DocumentFields');
      6  END;
      7  /
    PL/SQL procedure successfully completed.
    SCOTT@orcl_11g> CREATE INDEX your_idx1 ON your_tab (DocumentBody)
      2  INDEXTYPE IS CTXSYS.CONTEXT
      3  /
    Index created.
    SCOTT@orcl_11g> CREATE INDEX your_idx2 ON your_tab (DocumentFields)
      2  INDEXTYPE IS CTXSYS.CONTEXT
      3  /
    Index created.
    SCOTT@orcl_11g> CREATE INDEX your_idx3 ON your_tab (DocumentBodyAndFields)
      2  INDEXTYPE IS CTXSYS.CONTEXT
      3  PARAMETERS ('DATASTORE your_datastore')
      4  /
    Index created.
    SCOTT@orcl_11g> EXEC DBMS_STATS.GATHER_TABLE_STATS (USER, 'YOUR_TAB')
    PL/SQL procedure successfully completed.
    SCOTT@orcl_11g> SET TIMING ON
    SCOTT@orcl_11g> SET AUTOTRACE ON EXPLAIN
    SCOTT@orcl_11g> SELECT DocumentId FROM your_tab
      2  WHERE  CONTAINS (DocumentBody, '%dog') > 0
      3  UNION
      4  SELECT DocumentId FROM your_tab
      5  WHERE  CONTAINS (DocumentFields, '%dog') > 0
      6  /
    DOCUMENTID
            -3
            -2
            -1
    Elapsed: 00:00:00.65
    Execution Plan
    Plan hash value: 4118340734
    | Id  | Operation                     | Name      | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT              |           |     4 |   576 |     2 (100)| 00:00:01 |
    |   1 |  SORT UNIQUE                  |           |     4 |   576 |     2 (100)| 00:00:01 |
    |   2 |   UNION-ALL                   |           |       |       |            |          |
    |   3 |    TABLE ACCESS BY INDEX ROWID| YOUR_TAB  |     2 |   288 |     0   (0)| 00:00:01 |
    |*  4 |     DOMAIN INDEX              | YOUR_IDX1 |       |       |     0   (0)| 00:00:01 |
    |   5 |    TABLE ACCESS BY INDEX ROWID| YOUR_TAB  |     2 |   288 |     0   (0)| 00:00:01 |
    |*  6 |     DOMAIN INDEX              | YOUR_IDX2 |       |       |     0   (0)| 00:00:01 |
    Predicate Information (identified by operation id):
       4 - access("CTXSYS"."CONTAINS"("DOCUMENTBODY",'%dog')>0)
       6 - access("CTXSYS"."CONTAINS"("DOCUMENTFIELDS",'%dog')>0)
    SCOTT@orcl_11g> SELECT DocumentId FROM your_tab
      2  WHERE  CONTAINS (DocumentBodyAndFields, '%dog') > 0
      3  /
    DOCUMENTID
            -1
            -2
            -3
    Elapsed: 00:00:00.28
    Execution Plan
    Plan hash value: 65113709
    | Id  | Operation                   | Name      | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT            |           |     4 |    76 |     0   (0)| 00:00:01 |
    |   1 |  TABLE ACCESS BY INDEX ROWID| YOUR_TAB  |     4 |    76 |     0   (0)| 00:00:01 |
    |*  2 |   DOMAIN INDEX              | YOUR_IDX3 |       |       |     0   (0)| 00:00:01 |
    Predicate Information (identified by operation id):
       2 - access("CTXSYS"."CONTAINS"("DOCUMENTBODYANDFIELDS",'%dog')>0)
    SCOTT@orcl_11g>

  • Expanding text fields side-by-side in a 2 column layout

    Hi,
    I've been trying to create a form that is a 2-column layout. This form contains expanding text fields that are side-by-side with additional form elements underneath. I managed to get the expandable fields to work, however, if the user writes too much in the text field in the left-hand column and it wraps onto a second page, the text field in the right-hand gets pushed to the second page. I am wondering if someone has experience with this and could help me figure out how to make sure the text field in the right-hand column stays in place as the text field in the left-hand column expands onto 2 pages.
    I've tried to wrap each text-field in their own subform that stays fixed, but that seemed to cause the field to expand over the elements below it.
    Take care,
    Carolyn

    Luke23ae wrote:
    for my bachelor-thesis I'm trying to create a 2 column layout in pages. The left column should contain all contents, the right column should only contain notes and additional information supporting the 'main' column. So the right column only contains a little text every now and then. Using the Layout Inspector and setting up 2 columns fills the right column automatically withe the contents overflowing the left column. What I'm hoping to archive is to create a 2 column layout leaving the right column blank, allowing me to insert Text-fields (unless there's a better way) wherever I need to add an annotation.
    Hi Lukas,
    Welcome to Apple Discussions and the Pages '09 forum.
    Since you want the text to flow from page to page in the left column, it would appear best to use a single column for the main text, and to limit the width of that column using the right margin stop.
    That leaves the right half of the page open for a series of text boxes (or shapes, as shown) to contain the notes and additional information.
    I would start with a single text box or shape, resize it to the width you want, then duplicate that one each time you need a new box. That way all your text blocks have a common width to begin with, and if you take care to use only the handle at the center of the bottom edge to resize them, you will not disturb that width setting.
    As noted earlier, the floating objects will not automatically travel with the text they apply to if editing causes that text to move.
    Regards,
    Barry

  • How can I set up a 2 column layout in LiveCycle?

    Hi,
    I'm new to working with LiveCycle Designer. I'm using version 10.4, the OEM version bundled with SAP. Aside from being quite buggy, the capabilities seem pretty similar to LiveCycle Designer ES4, which I downloaded in a trial version. All of which is to say that this is a newbie question.
    I cannot, for the life of me, figure out how to set up a 2-column layout.
    On my master page, I have two content areas.
    When I create a new page, I am able to drag fields into the first content area I created, but not into the second content area.
    What am I doing wrong?
    Thanks,
    Janet

    Hi. 
    I am not a new LiveCycle Forms designer.  I am using Workbench ES2 (9.0.0.2.20121123.884160).  I have run into a new design problem related to a two column page. The business analytsts have designed the form in Word, where columns work great.  I have tried two subforms within the page. The problem with that is when the right column subform overflows, it overflows to the left column (as the left column has not overflowed), or when the left column overflows (whether or not the right column overflows) the right column begins on the left column's overflowed page.
    I have tried building a page with two side-by-side content areas in the Master Pages, including setting overflow parameters for each subform in the Design View, also with similar problems.
    I have tried using a table with no header and 1 row.  That one is interesting.  When only one cell overflows to another page, it works correctly.  When both columns overflow, the first text box in the subform in each cell is displayed at the top of the page and the remaining content of both cells overflow to the next page, leaving a nearly blank page containing only the one-line text label in each of the two columns.
    Is there some nearly hidden setting I am missing?  Is this possible within LiveCycle Designer Forms?
    Thanks for your attention to this request.
    Frank

  • Is it possible to havedrop down lists in cells of a Multi Column List box(not Table)?

    I was using a muticolumn listbox(not table,for table i have example code,and problem is that i was not getting active cell position for Multi column listbox) with 5 columns.In third column,i want to generate a ring control,generate in the sense,whenever user clicks on any cell of third column of multicolumn listbox(not table),the ring control should pop up.The thing is that i need to use only one ring control and whenever user clicks on any cell of a third column,this ring control should pop up.How can i achieve this,anyone please help me,
    Regards,
    Naresh.N

    Hi, Naresh,
    For starting point you can read this: Table with Drop Down Items
    Andrey.

Maybe you are looking for