Lock table cell size

Hello,
I am creating a web form and want everything to line up.  I am looking on how I can lock a table cell size.  I simply clicked on the <td> selector and typed 70 in the Width, but it readjusts.
Thank you.

Hi melanie,
here the whole source code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Black Oak Sign Up</title>
<!-- Link to the style sheet -->
<link href="style.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
#wrapper {
background-image: url(images/GurlBOC.gif);
background-repeat: no-repeat;
margin-top: 0px;
margin-right: auto;
margin-bottom: 0px;
margin-left: auto;
height: 600px;
width: 800px;
position: relative;
#body {
font-family: Verdana, Geneva, sans-serif;
font-size: 12px;
position: relative;
height: 300px;
width: 525px;
padding-top: 330px;
margin-right: auto;
margin-bottom: 0px;
margin-left: auto;
float: none;
border-top-color: #FFF;
border-right-color: #FFF;
border-bottom-color: #FFF;
border-left-color: #FFF;
-->
</style>
<script src="SpryAssets/SpryValidationTextField.js" type="text/javascript"></script>
<link href="SpryAssets/SpryValidationTextField.css" rel="stylesheet" type="text/css" />
</head>
<body bgcolor="#c8cacb" marginheight="0" marginwidth="0">
<div id="wrapper">
  <div id="body">
    <form id="form1" name='form1' method='POST' action="">
      <table width="500" border="0" cellpadding="0">
        <tr>
          <td width="20%">First*</td>
          <td align="left"><span id="sprytextfield1">
            <input type="text" name="FirstNAME" id="FirstNAME" />
          <span class="textfieldRequiredMsg"></span></span></td>
        </tr>
      </table>
      <table width="500" border="0" cellpadding="0">
        <tr>
          <td width="20%">Last*</td>
          <td align="left"><span id="sprytextfield2">
            <input type="text" name="LastADD1" id="LastADD1" />
          <span class="textfieldRequiredMsg"></span></span></td>
        </tr>
      </table>
      <table width="500" border="0" cellpadding="0">
        <tr>
          <td width="20%">Steet 1*</td>
          <td width="235" align="left"><span id="sprytextfield3">
            <input name="STEET1" type="text" id="STEET1" size="35" />
          </span></td>
          <td width="109" align="right">Street 2 </td>
          <td width="49" align="right"><div align="center">
            <input name="Steet2ADD2" type="text" id="Steet2ADD2" size="5" />
          </div></td>
        </tr>
      </table>
      <table width="500" border="0" cellpadding="0">
        <tr>
          <td width="20%">City*</td>
          <td width="151" align="left"><span id="sprytextfield4">
            <input type="text" name="city" id="city" />
          </span></td>
          <td width="41" align="right">ST*</td>
          <td width="37"><span id="sprytextfield5">
            <input name="state" type="text" id="state" size="2" maxlength="2" />
            <span class="textfieldRequiredMsg"></span></span></td>
          <td width="111" align="right">Zip*</td>
          <td width="49" align="right"><div align="center"><span id="sprytextfield6">
            <input name="zip" type="text" id="zip" size="5" maxlength="5" />
          </span></div></td>
        </tr>
      </table>
      <table width="500" border="0" cellpadding="0">
        <tr>
          <td width="20%">Email*</td>
          <td align="left"><span id="sprytextfield7">
            <input name="email" type="text" id="email" size="35" />
          </span></td>
        </tr>
      </table>
      <table width="500" border="0" cellpadding="0">
        <tr>
          <td width="20%">Birthday*</td>
          <td align="left"><span id="sprytextfield8">
            <input name="DayBirth" type="text" id="DayBirth" maxlength="10" />
          </span></td>
        </tr>
      </table>
      <p>* A value is required</p>
    </form>
  </div>
</div>
<script type="text/javascript">
<!--
var sprytextfield1 = new Spry.Widget.ValidationTextField("sprytextfield1");
var sprytextfield2 = new Spry.Widget.ValidationTextField("sprytextfield2");
var sprytextfield3 = new Spry.Widget.ValidationTextField("sprytextfield3");
var sprytextfield4 = new Spry.Widget.ValidationTextField("sprytextfield4");
var sprytextfield5 = new Spry.Widget.ValidationTextField("sprytextfield5");
var sprytextfield6 = new Spry.Widget.ValidationTextField("sprytextfield6");
var sprytextfield7 = new Spry.Widget.ValidationTextField("sprytextfield7");
var sprytextfield8 = new Spry.Widget.ValidationTextField("sprytextfield8");
//-->
</script>
</body>
</html>
HCH,
Hans-G.
updated: hans-g.

Similar Messages

  • Locked table cell?

    Our studio inherited an ID3 document. A portion of the table cells are locked. When you mouse over with any of the arrow tools it seems fine. As soon as you try to select the text the lock icon shows up. We're not able to unlock the cell (no unlock item shows up in the menu).
    We did try copying the table to a brand new document, which unlocked the cells in question. However, when we edit the text, it also applies the changes to yet another table cell (almost like it was cloning the text).
    I've never seen anything like this. We're wondering if this was repurposed from a Quark doc or something.
    Any insight is appreciated. TIA

    <<Does conditional text work on tables?>> I don't think so. Once you make any change to the header text, such as hiding conditional text or applying a variable, the changes are reflected in the headers in subsequent frames. But here's a different solution that works a lot better than the goofy white box. Suppress the header in the first frame. To do this, create the entire header, such as "Header 2 (Continued)" and then choose Table > Table Options > Headers and Footers and select Skip First. Then, in the first frame, type the header text, such as "Header 2" in the first line of body text, and apply the same formatting you use in the header.
    Bob Bringhurst
    http://help.adobe.com/en_US/InDesign/6.0/

  • Locking Table Cell width/height

    Is there a way to lock a table size width or height?
    Thanks,
    Lorne

    > I'm open to suggestions for how to organize these
    galleries? We have
    > hundreds
    > of photos and we really are wanting to have ONE .html
    page per project.
    > Not
    > twelve or what not.
    >
    Go here -
    http://www.projectseven.com/
    Look at their slideshow extensions. You won't find better
    ones anywhere.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "lorne17" <[email protected]> wrote in
    message
    news:g4besi$dsh$[email protected]..
    > I'm trying to get an image gallery with thumbnails. But
    half our images
    > are
    > landscape the other half portrait. So it's hard to get
    them to be the
    > same
    > resolution. Some are panoramic too.
    >
    > So what I need is a way to have my images show up on the
    site without
    > disrupting the format the text.
    >
    > Look here: www.barleypfieffer.com Click
    portfolio/residential/any
    > project.
    > You'll see our current layout. The last web designer has
    each and every
    > image
    > a different webpage. So trying to add new projects and
    update current
    > just
    > takes entirely too long.
    >
    > I'm open to suggestions for how to organize these
    galleries? We have
    > hundreds
    > of photos and we really are wanting to have ONE .html
    page per project.
    > Not
    > twelve or what not.
    >
    > Thanks,
    > Lorne
    >

  • Locking Table Size?

    Hi M.M Team,
    I noticed that my site can have uneven table cell sizes when
    viewed in different browsers. IE is good, but Firefox isn't. Is
    there a way to lock the table sizes please so that this doesn't
    happen?
    Thanks
    Ray

    You gotta stop using the Property inspector to set the font,
    the color, or
    the size. It creates 'spew' in your stylesheets.
    I believe the problem you are having can be simplified if you
    consider this
    example -
    Put a 2 row by 2 column table on the page. Merge the two
    right hand cells
    into a single column. Put an image into each left cell, and
    you will see
    that they merge vertically seamlessly. Now begin to add
    content to the
    merged cell on the right and you will see that at some point
    you will have
    forced the two left cells to begin to split apart vertically.
    The more
    content you add to the right, the further apart the two left
    cells will get.
    See what I mean?
    To solve the problem, instead of making your page sit in a
    single table,
    have it in several nested tables. You should be able to put a
    two column
    table on the page with a nested table in each column. Put
    your navigation
    in the left nested table, and the
    content in the right nested table. Now, changes to either of
    the inner
    table's
    structure will not affect either of the inner nested tables.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "Ray Dar" <[email protected]> wrote in
    message
    news:ej4nqg$8bl$[email protected]..
    > Hi Murray,
    >
    > On this link
    >
    >
    http://www.myastrospace.com/newscientist.php
    >
    > The NASA TV cell is smaller in FireFox and larger in IE.
    >
    > Not sure why it does it.
    >
    > Thanks.
    >
    > Ray

  • How to control the force return in table cell data?

    I have some xml format files.When I import them into FrameMaker,They display as table data.but when the data is very long in table cell,I want to control the new line by myself.for example,I add some \r\n in my xml file data,then in FrameMaker,It can identify the \r\n, force return.In framemaker I don't know the actual symbol that means the newline.How Can I deal with the problem?thank you!

    Hi Russ,
    yes, but you have to agree that forcing a return in the SOURCE content is really not a wise thing to do - It would be better to break the content into multiple paragraphs or used an XSLT to determine the column width and insert your own breaks in a version of the XML for rendering in Frame. If, at a later date, your templates in Frame change to allow wider columns in your table, then you'd have to go back into the source code and change every occurrence of the c/r in the data - Yeuch! Better to transform the data once, before importing into Frame and then if the col-width changes it is a simple task to change the width in the XSLT - personally, I would make sure the EDD and DTD allows multi-lines in the table cell and then break-up the data to fit the table cell size in an XSLT before importing. Then you don't taint your source code...and it is quite easy to do this is an XSLT...

  • Enqueue Replication Server - Lock Table Size

    Note : I think I had posted it wrongly under ABAP Development, hence request moderator to kindly delete this post. Thanks
    Dear Experts,
    If Enqueue Replication server is configured, can you tell me how to check the Lock Table size value, which we set using profile parameter enque/table_size.
    If enque server is configured in the same host as CI, it can be checked using
    ST02 --> Detail Analysis Menu --> Storage --> Shared Memory Detail --> Enque Table
    As it is a Standalone Enqueue Server, I don't know where to check this value.
    Thanking you in anticipation.
    Best Regards
    L Raghunahth

    Hi
    Raghunath
    Check the following links
    http://help.sap.com/saphelp_nw2004s/helpdata/en/37/a2e3ab344411d3acb00000e83539c3/content.htm
    http://help.sap.com/saphelp_nw04s/helpdata/en/44/5efc11f3893672e10000000a114a6b/content.htm
    Regards
    Bhaskar

  • MySQL lock table size Exception

    Hi,
    Our users get random error pages from vibe/tomcat (Error 500).
    If the user tries it again, it works without an error.
    here are some errors from catalina.out:
    Code:
    2013-07-31 06:23:12,225 WARN [http-8080-8] [org.hibernate.util.JDBCExceptionReporter] - SQL Error: 1206, SQLState: HY000
    2013-07-31 06:23:12,225 ERROR [http-8080-8] [org.hibernate.util.JDBCExceptionReporter] - The total number of locks exceeds the lock table size
    2013-07-31 06:23:12,242 WARN [http-8080-8] [org.kablink.teaming.web.portlet.handler.LogContextInfoInterceptor] - Action request URL [http://vibe.*******.ch/ssf/a/do?p_name=ss_forum&p_action=1&entryType=4028828f3f0ed66d013f0f3ff208013d&binderId=2333&action=add_folder_entry&vibeonprem_url=1] for user [kablink,ro]
    2013-07-31 06:23:12,245 WARN [http-8080-8] [org.kablink.teaming.spring.web.portlet.DispatcherPortlet] - Handler execution resulted in exception - forwarding to resolved error view
    org.springframework.dao.InvalidDataAccessApiUsageException: object references an unsaved transient instance - save the transient instance before flushing: org.kablink.teaming.domain.FolderEntry; nested exception is org.hibernate.TransientObjectException: object references an unsaved transient instance - save the transient instance before flushing: org.kablink.teaming.domain.FolderEntry
    at org.springframework.orm.hibernate3.SessionFactoryUtils.convertHibernateAccessException(SessionFactoryUtils.java:654)
    at org.springframework.orm.hibernate3.HibernateAccessor.convertHibernateAccessException(HibernateAccessor.java:412)
    at org.springframework.orm.hibernate3.HibernateTemplate.doExecute(HibernateTemplate.java:411)
    2013-07-31 06:23:36,474 ERROR [Sitescape_QuartzSchedulerThread] [org.quartz.core.ErrorLogger] - An error occured while scanning for the next trigger to fire.
    org.quartz.JobPersistenceException: Couldn't acquire next trigger: The total number of locks exceeds the lock table size [See nested exception: java.sql.SQLException: The total number of locks exceeds the lock table size]
    at org.quartz.impl.jdbcjobstore.JobStoreSupport.acquireNextTrigger(JobStoreSupport.java:2794)
    at org.quartz.impl.jdbcjobstore.JobStoreSupport$36.execute(JobStoreSupport.java:2737)
    at org.quartz.impl.jdbcjobstore.JobStoreSupport.executeInNonManagedTXLock(JobStoreSupport.java:3768)
    at org.quartz.impl.jdbcjobstore.JobStoreSupport.acquireNextTrigger(JobStoreSupport.java:2733)
    at org.quartz.core.QuartzSchedulerThread.run(QuartzSchedulerThread.java:264)
    Caused by: java.sql.SQLException: The total number of locks exceeds the lock table size
    at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:946)
    at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2870)
    at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1573)
    at com.mysql.jdbc.ServerPreparedStatement.serverExecute(ServerPreparedStatement.java:1169)
    2013-07-31 06:27:12,463 WARN [Sitescape_Worker-8] [org.hibernate.util.JDBCExceptionReporter] - SQL Error: 1206, SQLState: HY000
    2013-07-31 06:27:12,463 ERROR [Sitescape_Worker-8] [org.hibernate.util.JDBCExceptionReporter] - The total number of locks exceeds the lock table size
    2013-07-31 06:27:12,463 ERROR [Sitescape_Worker-8] [org.jbpm.graph.def.GraphElement] - action threw exception: Hibernate operation: could not execute update query; uncategorized SQLException for SQL [update SS_ChangeLogs set owningBinderKey=?, owningBinderId=? where (entityId in (? , ?)) and entityType=?]; SQL state [HY000]; error code [1206]; The total number of locks exceeds the lock table size; nested exception is java.sql.SQLException: The total number of locks exceeds the lock table size
    org.springframework.jdbc.UncategorizedSQLException: Hibernate operation: could not execute update query; uncategorized SQLException for SQL [update SS_ChangeLogs set owningBinderKey=?, owningBinderId=? where (entityId in (? , ?)) and entityType=?]; SQL state [HY000]; error code [1206]; The total number of locks exceeds the lock table size; nested exception is java.sql.SQLException: The total number of locks exceeds the lock table size
    at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:83)
    at org.springframework.orm.hibernate3.HibernateAccessor.convertJdbcAccessException(HibernateAccessor.java:424)
    2013-07-31 06:27:22,393 INFO [CT-kablink] [org.kablink.teaming.lucene.LuceneProvider] - (kablink) Committed, firstOpTimeSinceLastCommit=1375251142310, numberOfOpsSinceLastCommit=12. It took 82.62174 milliseconds
    2013-07-31 06:28:22,686 INFO [Sitescape_Worker-9] [org.kablink.teaming.jobs.CleanupJobListener] - Removing job send-email.sendMail-1375252102500
    2013-07-31 06:29:51,309 INFO [Sitescape_Worker-10] [org.kablink.teaming.jobs.CleanupJobListener] - Removing job send-email.sendMail-1375252191099
    2013-07-31 06:32:08,820 WARN [http-8080-2] [org.hibernate.util.JDBCExceptionReporter] - SQL Error: 1206, SQLState: HY000
    2013-07-31 06:32:08,820 ERROR [http-8080-2] [org.hibernate.util.JDBCExceptionReporter] - The total number of locks exceeds the lock table size
    2013-07-31 06:32:10,775 WARN [http-8080-1] [org.hibernate.util.JDBCExceptionReporter] - SQL Error: 1206, SQLState: HY000
    2013-07-31 06:32:10,775 ERROR [http-8080-1] [org.hibernate.util.JDBCExceptionReporter] - The total number of locks exceeds the lock table size
    2013-07-31 06:32:12,305 WARN [http-8080-1] [org.hibernate.util.JDBCExceptionReporter] - SQL Error: 1206, SQLState: HY000
    2013-07-31 06:32:12,305 ERROR [http-8080-1] [org.hibernate.util.JDBCExceptionReporter] - The total number of locks exceeds the lock table size
    2013-07-31 06:32:14,605 WARN [http-8080-3] [org.hibernate.util.JDBCExceptionReporter] - SQL Error: 1206, SQLState: HY000
    2013-07-31 06:32:14,606 ERROR [http-8080-3] [org.hibernate.util.JDBCExceptionReporter] - The total number of locks exceeds the lock table size
    2013-07-31 06:32:16,056 WARN [http-8080-3] [org.hibernate.util.JDBCExceptionReporter] - SQL Error: 1206, SQLState: HY000
    2013-07-31 06:32:16,056 ERROR [http-8080-3] [org.hibernate.util.JDBCExceptionReporter] - The total number of locks exceeds the lock table size
    2013-07-31 06:32:24,166 WARN [http-8080-1] [org.hibernate.util.JDBCExceptionReporter] - SQL Error: 1206, SQLState: HY000
    2013-07-31 06:32:24,166 ERROR [http-8080-1] [org.hibernate.util.JDBCExceptionReporter] - The total number of locks exceeds the lock table size
    2013-07-31 06:32:24,167 WARN [http-8080-1] [org.kablink.teaming.spring.web.portlet.DispatcherPortlet] - Handler execution resulted in exception - forwarding to resolved error view
    org.springframework.jdbc.UncategorizedSQLException: Hibernate flushing: could not insert: [org.kablink.teaming.domain.AuditTrail]; uncategorized SQLException for SQL [insert into SS_AuditTrail (zoneId, startDate, startBy, endBy, endDate, entityType, entityId, owningBinderId, owningBinderKey, description, transactionType, fileId, applicationId, deletedFolderEntryFamily, type, id) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, 'A', ?)]; SQL state [HY000]; error code [1206]; The total number of locks exceeds the lock table size; nested exception is java.sql.SQLException: The total number of locks exceeds the lock table size
    at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:83)
    at org.springframework.orm.hibernate3.HibernateTransactionManager.convertJdbcAccessException(HibernateTransactionManager.java:805)
    at org.springframework.orm.hibernate3.HibernateTransactionManager.convertHibernateAccessException(HibernateTransactionManager.java:791)
    at org.springframework.orm.hibernate3.HibernateTransactionManager.doCommit(HibernateTransactionManager.java:664)
    It always logs the Mysql error code 1206:
    MySQL :: MySQL 5.4 Reference Manual :: 13.6.12.1 InnoDB Error Codes
    1206 (ER_LOCK_TABLE_FULL)
    The total number of locks exceeds the lock table size. To avoid this error, increase the value of innodb_buffer_pool_size.
    The value of innodb_buffer_pool_size is set to 8388608 (8MB) on my server.
    In the documentation (MySQL :: MySQL 5.4 Reference Manual :: 13.6.3 InnoDB Startup Options and System Variables) it says that the default is 128MB.
    Can i set the value to 134217728 (128MB) or will this cause other problems? Will this setting solve my problem?
    Thanks for your help.

    I already found an entry from Kablink:
    https://kablink.org/ssf/a/c/p_name/s...beonprem_url/1
    But i think this can't be a permanent solution...
    Our MySQL Server version is 5.0.95 running on sles11

  • Lock table Overflow as the file size is 50 MB BW side.

    Hello Everyone,
    I have a XML idoc file as input which is usually more then 50MB in size.
    Usually, i am getting Lock table overflow at Receiver BW side . This error is pointing to Inbound_Asynchronous_Idoc.
    i have tried dividing the Input XML idoc file into small group by handling them in chunk mode of sender communication channel.
    However, since its TRFC , so if it gets processed in PI but at outbound if there is an Lock table overflow error, then it fails.
    I have tried to process the 50 MB of file in parts by processing  5 MB at one point of time. but does this mean that BW also process data in parts or it gets entire 50 MB to process at one stretch.
    Since the input is IDOC XML so i was not able to make use of Record Set per message. so i am making use of chunk mode.
    AM i doing correctly ?
    Regards,
    Ravi

    Hi Ravikanth,
    If  i make use of the below logic as mentioned in the link that you provided, then do i have to remove the chunk mode from communication channel .?
    Secondly, mine is a SLSFCT idoc XSD that  i am using here as source and target as well.
    The hirearchy becomes like this after implementing the logic mentioned in  link:
    Messages
    Message1
    Z1ZBSD_SLSFCT01
    IDOC
    BEGIN
    EDI_DC40
    For Messages and MEssages1 there is no mapping at target side.
    For  Z1ZBSD_SLSFCT01 its 1..1 in source and 0..unbounded in target.
    For IDOC its mapped to constant and Begin to constant with value 1 .
    And then EDIDC to source and target are mapped to each other with occurrence of 1..1. 
    Is there some thing wrong that i am doing . because after this again the files are not getting divided
    Regards

  • Hi guys n girls. How do you copy a whole table to create a new table with all cell sizes in tact? Thanks for your help. Jason.

    Hi guys n girls. How do you copy a whole table to create a new table with all cell sizes in tact? Thanks for your help. Jason.
    when you copy n paste into a new table, all the cell sizes are changed.
    is there a way to put in a new table from your templates into an existing file, different to the standard very basic ones in insert table.
    I look forward to your answers.  Your help is very much appreciated.
    Also how do you search for question answers already written in this support area please.

    Hi Jason,
    In Numbers 3, you can select a whole table by clicking once in the table to make it active, then click once on the "bull's eye" at the top left.
    Now copy and paste. All formatting (and any cell content) is pasted intact. In Numbers 2.3 (Numbers '09) it is a little different for selecting a whole table. But I won't go into that unless you are using Numbers '09. Please reply.
    I don't like the look of the tables in Insert Table. I keep custom tables in My Templates. I have set Numbers > Preferences > General > For New Documents > Use template: (name of my favourite custom template)
    That opens when I launch Numbers, or ask for a new document (command n). Note that if you follow this preference setting, then Menu > File > New From Template Chooser (for another template) requires you to hold down the option key in that menu.
    Regards,
    Ian.
    Message was edited by: Yellowbox. All formatting (and any cell content) is pasted intact.

  • How to prevent a JButton in a Table Cell from stretching its size.

    Hi,
    I have JButton added to a Table Cell. But the button is filled up by covering the whole area of the cell and when I go for increase the width of the Table column, the button size is also stretched up along with the column's increasing width. How can I implement a solutiong so that I have a preferred size for the button so that when I go for stretch the column, the button should retain its preferred size. That mean it should not be stretched.
    I hereby added the code for a reference,
        // ButtonEditor
        class ButtonEditor extends DefaultCellEditor {
            private static final long serialVersionUID = 42L;
             private String    label;
             private boolean   isPushed;
                    protected JButton button;
             public ButtonEditor(JCheckBox checkBox) {
                  super(checkBox);
                  button = new JButton();
                  button.setOpaque(true);
                  button.addActionListener(new ActionListener() {
                       public void actionPerformed(ActionEvent e) {
                            fireEditingStopped();
              * Override the DefaultCellEditor inbuilt method
             public Component getTableCellEditorComponent(JTable table, Object value,
                       boolean isSelected, int row, int column) {
                  if(value.equals(AdminToolsRes.resBundle.getString("nei.label.blockSync"))){
                       label = (value == null) ? "" : value.toString();
                       button.setText( label );
                       isPushed = true;
                       return button;
                  else
                       return null;
              * Stop cell editing
             public boolean stopCellEditing() {
                  isPushed = false;
                  return super.stopCellEditing();
              * call the fireEditingStopped method
             protected void fireEditingStopped() {
                  super.fireEditingStopped();
              * sets the cell editable to True
              * @return
             public boolean isCellEditable(){
                  return true;
        //ButtonRenderer
        class ButtonRenderer extends JButton implements TableCellRenderer {
            private static final long serialVersionUID = 42L;
             public ButtonRenderer() {
                  setOpaque(true);
              * Override the TableCellRenderer inbuilt method
             public Component getTableCellRendererComponent(JTable table, Object value,
                       boolean isSelected, boolean hasFocus, int row, int column) {
                  if (isSelected) {
                     setBackground(table.getSelectionBackground());
                 } else{
                     setForeground(table.getForeground());
                     setBackground(table.getBackground());
                  if(value.equals(AdminToolsRes.resBundle.getString("nei.label.blockSync"))){
                       setText( (value == null) ? "" : value.toString() );
                       return this;
                  }else{
                       JTextField txtFld = new JTextField();
                       txtFld.setBorder(null);
                       txtFld.setText((value ==null) ? "" : value.toString());
                       if(isSelected){
                            txtFld.setForeground(table.getSelectionForeground());
                            txtFld.setBackground(table.getSelectionBackground());
                       return txtFld;
        }Please help me in answering the question.
    SumodeV

    I feel, here the JPanel also might get stretched up.All renderers are sized to fill the entire area of the cell, so yes, the panel will get stretched, but the button won't. That is why the suggestion was made.
    All renderers are sized to fill the entire area of the cell.
    Not sure, but you might be able to override the JTable.prepareRenderer(...) method to reset the size of the button back to is preferred size. I have no idea how this will affect the rendering.

  • Table cell wont shrink to image size?

    I place an image in a table cell and set all properties to "0" but it displays in the browser with extra space on the bottom?

    I was just simply adding an image into a cell, not using a style sheet.
    And always there is a couple of pixels space below the image, which is the red bkgd color you see.
    Here is code:
    <!doctype html>
    <html>
    <head>
    <meta charset="UTF-8">
    <title>Untitled Document</title>
    </head>
    <body>
    <table height="442" border="0" cellspacing="0" cellpadding="0">
      <tbody>
        <tr>
          <td bgcolor="#B13B3D"><img src="Hana/soap_site/IMAGES/Test_img.gif" width="618" height="442" alt=""/></td>
        </tr>
      </tbody>
    </table>
    </body>
    </html>

  • Problems placing graphic into table cell. It makes the iPad locks up when previewing that page.

    I have 3 table cells that need a jpeg graphic placed into them.
    I can paste a grahic into a table cell, but when i try to preview that page on the iPad, ibook shuts down. I must be placing the graphic wrong or formats are wrong, like object wrap or "inline" "floating" or "anchored". the graphic shows up in the fill once I copy and paste into the cell, but it doesnt show up when I look at the file info in the inspector. Also, once I preview the iBook author project on my iPad, that page will shut down the iBook app.

    Well KT.....I tried that. But it still didnt work. I have 2 pages that have tables. The first page is just a full page with text only with a gradient colored screen in the table column heads. The 2nd page has the graphic illustration in the 3 table cells. Both pages shut down when opened to full screen view. But when i remove the graphic, there is no problem with a shut down. I know its got to be something you have to do but is unwritten in any manual.

  • Changing individual cell sizes using Table

    Has anyone yet figured out how to lengthen or shorten a single table cell in Pages 'o8. This was easy to do in Pages '06 , but I've tried every key combination I could think of in Pages '08 and have not yet succeeded in making this desired change. Some of the cells in tables converted from Pages '06 have suffered width changes, and the columns are misaligned. If no one can help, I'll inform Apple about what must be a bug, and perhaps the people in charge will do some thing helpful. Louis Kuslan

    Hello
    The explanation is quite simple.
    Tables in Pages '06 where tables.
    In Pages '08 they are full spreadsheet tables built with the same piece of code used in Numbers.
    This is why the inherited the specs of spreadsheet's cells.
    You may *go to "Provide Pages Feedback" in the "Pages" menu*, and describe what you wish.
    But to be fair, I would be surprised if this feature was seriously modified.
    Maybe the minimal width would be smaller but the max width will not evolve (only my guess).
    Which values where you trying to use?
    On my screen is a sheet whose cell A7 is 11" in height and 15" in width.
    Yvan KOENIG (from FRANCE samedi 19 janvier 2008 17:52:41)

  • How to highlight the table cell color in respective colors as needed per the requirements??

    var aData = [
        {notificationNo: "10000000", description: "Maintenance for boiler", location: "G001-STG-UTLR-BLR", equipmentNo: "100000053", orderStatus: "ordered"},
        {notificationNo: "10000010", description: "Genreal Maintenance for boiler", location: "G001-STG-UTLR-BLR", equipmentNo: "100000053", orderStatus: "notordered"},
        {notificationNo: "10000011", description: "boiler Maintenance", location: "G001-STG-UTLR-BLR", equipmentNo: "100000053", orderStatus: "ordered"},
        {notificationNo: "10000012", description: "Pump breakdown", location: "G001-STG-UTLR-BLR", equipmentNo: "100000053", orderStatus: "ordered"},
        {notificationNo: "10000013", description: "External service boiler", location: "G001-STG-UTLR-BLR", equipmentNo: "100000053", orderStatus: "notordered"},
    jQuery.sap.require("sap.ui.model.json.JSONModel");
    var oEnterpriseAsset_NotificationConsole;
    sap.ui.model.json.JSONModel.extend("EAM_Notification_Console", {
        CreateNotificationConsole:function(){
            oEnterpriseAsset_NotificationConsole = this;
                var oTable = new sap.ui.table.Table({
                //title: "Table Example",
                visibleRowCount: 7,
                firstVisibleRow: 3,
                selectionMode: sap.ui.table.SelectionMode.Single,
            /*    toolbar: new sap.ui.commons.Toolbar({items: [
                    new sap.ui.commons.Button({text: "Button in the Toolbar", press: function() { alert("Button pressed!"); }})
                extension: [
                    new sap.ui.commons.Button({text: "Button in the Extension Area", press: function() { alert("Button pressed!"); }})
            }).addStyleClass("tableform");;
            oTable.addColumn(new sap.ui.table.Column({
            label: new sap.ui.commons.Label({text: "Notification"}),
            template: new sap.ui.commons.Link().bindProperty("text", "notificationNo").bindProperty("href", "href",
                    function(aValue)
            //    sortProperty: "notificationNo",
                //filterProperty: "notificationNo",
                width: "200px"
            oTable.addColumn(new sap.ui.table.Column({
                label: new sap.ui.commons.Label({text: "Description"}),
                template: new sap.ui.commons.Link().bindProperty("text", "description").bindProperty("href", "href"),
                //sortProperty: "notificationNo",
                //filterProperty: "notificationNo",
                //width: "200px"
            var oModel = new sap.ui.model.json.JSONModel();
            oModel.setData({modelData: aData});
            oTable.setModel(oModel);
            oTable.bindRows("/modelData");
        var idForTable= "DimTable"
            //alert("id of tbale " + idForTable);
            var htmlOutput = '<table id=' + idForTable + ' name="DimTab" style="border: 1px solid black;margin-left:15px;" cellpadding=6 cellspacing=0><tr style="background-color:#E5E5E5"><td><b>Dimension</b></td><td><b>Value</b></td></tr>';
            for(var i=0;i<aData.length;i++)
             alert(aData[i].notificationNo);
            htmlOutput += '<tr style="display:none;"><td style="border-right:1px solid #e5e5e5;">Contract No</td><td>'+ aData[i].notificationNo+'</td></tr>';
            htmlOutput += '<tr style="display:none;"><td  style="border-right:1px solid #e5e5e5;">Unit No</td><td>'+ aData[i].description+'</td></tr>';
            htmlOutput += '</table>';   
             var html2 = new sap.ui.core.HTML({
                 // static content
                 //content : "<div style='position:relative;background-color:white;'>Weather</div><script src='//www.gmodules.com/ig/ifr?url=http://www.google.com/ig/modules/builtin_weather.xml&synd=open&w=320&h=200&title=__MSG_weather_title__&lang=en&country=ALL&border=http%3A%2F%2Fwww.gmodules.com%2Fig%2Fimages%2F&output=js'></script>",
            content : htmlOutput,
                  //2 wrkng sydney content : '<div id="cont_Mzc0NjN8NXwxfDF8NHxlZGY1ZjV8M3xGRkZGRkZ8Y3wx"><div id="spa_Mzc0NjN8NXwxfDF8NHxlZGY1ZjV8M3xGRkZGRkZ8Y3wx"><a id="a_Mzc0NjN8NXwxfDF8NHxlZGY1ZjV8M3xGRkZGRkZ8Y3wx" href="http://www.weather-wherever.co.uk/australia/sydney_v37463/" target="_blank" style="color:#333;text-decoration:none;">Weather forecast</a> © weather</div><script type="text/javascript" src="http://widget.weather-wherever.co.uk/js/Mzc0NjN8NXwxfDF8NHxlZGY1ZjV8M3xGRkZGRkZ8Y3wx"></script></div>',
                  //content : '<div style="margin-left:-10px;margin-top:10px;width:100%;"><LINK rel="StyleSheet" href="http://weatherandtime.net/new_wid/w_5/style.css" type="text/css" media="screen"><div class="ww_5" id="ww_5_2119"><div class="l_b"></div><div class="c_b"><div class="day" id="d_0"><span class="den"></span><br><span class="date"></span><br><span class="temp"></span><div class="pict"></div><span class="press"></span><br><span class="hum"></span><br><span class="vet"></span><br></div><div class="day" id="d_1"><span class="den"></span><br><span class="date"></span><br><span class="temp"></span><div class="pict"></div><span class="press"></span><br><span class="hum"></span><br><span class="vet"></span><br></div><div class="day" id="d_2"><span class="den"></span><br><span class="date"></span><br><span class="temp"></span><div class="pict"></div><span class="press"></span><br><span class="hum"></span><br><span class="vet"></span><br></div><div class="cl"></div><div class="links"><a target="_blank" title="Pune Weather forecast" href="http://weatherandtime.net/en/Asia/India/Pune-weather.html">Pune Weather forecast</a><br><a style="font-size:12px !important;color:#12A0D7 !important;text-decoration:none !important;" href="http://weatherandtime.net/en/widgets-gallery.html" title="weather"></a></div></div><div class="r_b"></div></div><script type="text/javascript" src="http://weatherandtime.net/w_5.js?city=2119&lang=en&type=2&day=3"></script></div>',
              // initially behaves the same as Sample 1
                 preferDOM : false,
                 // use the afterRendering event for 2 purposes
        return     oTable;
    /* In the screen shot as u can see.. I have to highlight the table cell in green color and red color for ordered and unordered status(which is binded to a json data) respectively....anyone please help??

    Hi Abhi,
                   Check this link it may helpHow I made highlight of specific values in Table

  • Problem with Cell size in Excel output of XML report

    Dear all,
    I am facing a problem with cell size when i run my XML report in Excel output. I found that it imitates the cell size of whatever i gave in the RTF. I cannot increase the cell size in RTF as my report contains 60 columns and max width of MS Word table is 22 inches.
    Can any one suggest a way of doing this which shows full data in Excel sheet depending on the column data size with out any word wrap.
    Thanks
    RAJ

    Hi ,
    You can try with
    <xsl:attribute xdofo:ctx="block" name="wrap-option">no-wrap</xsl:attribute>
    may be helpful to you
    Thanks,
    Ananth
    http://bintelligencegroup.wordpress.com/

Maybe you are looking for