Help with divs and columns please?

Hello all,
I'm quite new to dreamweaver and having problems. I am
designing a site with 3 columns (left for nav, middle for main
content and right for offers & advertising etc.) I am using
tables within the divs to organise content and I have aligned the
divs left and in all sorts of other ways to try and get them to
look like 3 columns but no matter what I do the right column always
ends up underneath the middle column. What am I doing wrong?
Thanks in advance

Faux columns. I don't like javascript solutions.
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
==================
"Jay Jhabrix" <[email protected]> wrote in message
news:ga92ts$23c$[email protected]..
> Murray,
>
> BTW... am trying to create a 3 column site... staying
away from tables...
> :)
>
> As i see it i have two choices:
> 1/ Go for a 'faux column" kind of solution
> 2/ PVII's javascript driven answer
>
> Ideally, i'd like to do it purely in CSS but with
minimal hacks. I will be
> using tables but don't want them to be a feature of the
design... purely
> for content. Background white. But want to have four
borders... left,
> right and the two central ones. Fixed width. Any
suggestions, links?
>
> (One menu is definitely PMM.)
>
> Cheers,
>
> JJ
>
> "Murray *ACE*" <[email protected]>
wrote in message
> news:ga920g$tv$[email protected]..
>>I can take it....
>>
>> --
>> 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
>> ==================
>>
>>
>> "Jay Jhabrix" <[email protected]> wrote in
message
>> news:ga91so$ph$[email protected]..
>>> "Murray *ACE*"
<[email protected]> wrote in message
>>> news:ga8vu7$rpa$[email protected]..
>>>
>>>> Heh - no. It was the perceived status of the
OP.
>>>
>>> That's what i kind of figured... but couldn't
resist the dig ;->
>>>
>>
>
>

Similar Messages

  • Help with EJB and JNDI, please

    Hello. My name is Santiago, and i am a student from the University of Valladolid, in Spain. I am newcome in the world of EJB, I have done the first EJB from de Sun tutorial (I�m using the Sun Java System Application Server PE 8.2) and now I am trying to improve it in that way: I have the EJB and the client in diferent machines conected.
    I am trying to understand how to use JNDI, but i have not good results :( I have read about using ldap but i dont know if it is apropiated, or if it is installed automaticaly with the sun aplication, or if i have to download and install it... i am not sure about anything :)
    This is my client�s code (part of it)
    Hashtable envirom = new Hashtable();
    envirom.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.ldap.LdapCtxFactory");
    envirom.put("java.naming.factory.url.pkgs","com.sun.enterprise.naming");
    envirom.put(Context.PROVIDER_URL,"iiop://Santiago:389");
    envirom.put(Context.PROVIDER_URL,"ldap://192.168.1.101:389");
    envirom.put(Context.SECURITY_AUTHENTICATION,"none");
    InitialContext ctx = new InitialContext(envirom);
    Object objref = ctx.lookup("java:comp/env/ejb/Multiplica");
    When I try to connect in local mode (client and EJB in the same machine) i get something like that:
    javax.naming.CommunicationException: 192.168.1.101:389 [Root exception is java.n
    et.ConnectException: Connection refused: connect]
    at com.sun.jndi.ldap.Connection.<init>(Connection.java:204)
    at com.sun.jndi.ldap.LdapClient.<init>(LdapClient.java:118)
    at com.sun.jndi.ldap.LdapClient.getInstance(LdapClient.java:1578)
    at com.sun.jndi.ldap.LdapCtx.connect(LdapCtx.java:2596)
    at com.sun.jndi.ldap.LdapCtx.<init>(LdapCtx.java:283)
    It is even worse when i try it in different machines:
    10-mar-2006... com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImp1<init>
    ADVERTENCIA: "IOP00410201: <COMM_FAILURE> Fallo de conexion: Tipo de socket: IIOP_CLEAR_TEXT;
    name of host: portatil; puerto: 3700"
    org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code:201 completed:No
    Both SSOO are XP and I have disabled Firewalls.
    PLEASE, if you colud help me It would fantastic, because I am in that trouble, i have tryed 1000 solutions but i am not able to understand it.
    Hoping you can help me.
    Santiago.

    This thread is now being followed up in:
    http://swforum.sun.com/jive/thread.jspa?threadID=64092

  • Help with erasing and syncing please - what will be erased?

    I have somehow created a 2nd itunes account and my iphone won't sync with the first one. It is syncing with the 2nd one however I cannot add new music - if I try on the 2nd one I get a message asking if I want to erase this iphone and sync with this itunes library.  Below this is a warning that erasing and syncing will replace the contenst of this iphone with the contents of this itunes library.  What exactly will be erased?  If it's just the music and photos then I won't mind - my phone is new and not got much on it.  However I don't want to lose all my apps and contacts information.  I know I can back it all up but I am not very knowledgable about all this - I am new to itunes and iphones just last month!  Any advice gratefully recieved - thank-you! 

    OK so its been a LONG time since messing with this but now I have to get it done. I have tried all this that is stated in this thread and I can do what I am looking for IF I start a new file, draw a few shapes, apply the pathfinder divide.
    However, with this file I am working with I can not figure out why I cant get it to work.
    Again, what i am trying to do is have a LOT of lines crossing over the edges of the templates that are the shapes in my AI file. Think 80's style Eddie Van Halen guitar. They're going to be graphic for my sons motorcycle for his birthday.
    I was trying to simply use the rectangle tool to draw various black and white lines and then somehow cut the overhangs off my templates.
    Very frustrating that I cant figure out what I am doing wrong!! Especially since I am fairly proficient in After Effects, Premiere, and Photoshop. Trying to learn Illustrator though!!
    By the way using CS3
    Thanks for anyone that can help me!!!
    You can download my project file here.
    pages.sbcglobal.net/dntsdad/tylercrf150r.ai

  • Help with rows and columns

    Hi,
    Is it posibble in oracle to display the columns in row format?
    eg:
    Select* from emp;
    col1 col2 col3
    1 mat 22
    The output should be
    1
    mat
    22
    this is to be done ina single query..
    Plz help..
    thanks for ur help..
    mathew

    SQL> With t As
      2    (Select 'A;B;C' c
      3    From dual),
      4    t2 As
      5    (Select ';'||c||';' c From t)
      6    Select substr(c, instr(c,';',1,Level)+1,
      7                      INSTR(c, ';', 1, Level+1)- INSTR (c, ';', 1, Level)- 1) "Str"
      8    From t2
      9    Connect By Level < length(c) - length(Replace(c,';'))
    10  /
    Str
    A
    B
    C

  • Help with count and sum query

    Hi I am using oracle 10g. Trying to aggregate duplicate count records. I have so far:
    SELECT 'ST' LEDGER,
    CASE
    WHEN c.Category = 'E' THEN 'Headcount Exempt'
    ELSE 'Headcount Non-Exempt'
    END
    ACCOUNTS,
    CASE WHEN a.COMPANY = 'ZEE' THEN 'OH' ELSE 'NA' END MARKET,
    'MARCH_12' AS PERIOD,
    COUNT (a.empl_id) head_count
    FROM essbase.employee_pubinfo a
    LEFT OUTER JOIN MMS_DIST_COPY b
    ON a.cost_ctr = TRIM (b.bu)
    INNER JOIN MMS_GL_PAY_GROUPS c
    ON a.pay_group = c.group_code
    WHERE a.employee_status IN ('A', 'L', 'P', 'S')
    AND FISCAL_YEAR = '2012'
    AND FISCAL_MONTH = 'MARCH'
    GROUP BY a.company,
    b.district,
    a.cost_ctr,
    c.category,
    a.fiscal_month,
    a.fiscal_year;
    which gives me same rows with different head_counts. I am trying to combine the same rows as a total (one record). Do I use a subquery?

    Hi,
    Whenever you have a problem, please post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) from all tables involved.
    Also post the results you want from that data, and an explanation of how you get those results from that data, with specific examples.
    user610131 wrote:
    ... which gives me same rows with different head_counts.If they have different head_counts, then the rows are not the same.
    I am trying to combine the same rows as a total (one record). Do I use a subquery?Maybe. It's more likely that you need a different GROUP BY clause, since the GROUP BY clause determines how many rows of output there will be. I'll be able to say more after you post the sample data, results, and explanation.
    You may want both a sub-query and a different GROUP BY clause. For example:
    WITH    got_group_by_columns     AS
         SELECT  a.empl_id
         ,     CASE
                        WHEN  c.category = 'E'
                  THEN  'Headcount Exempt'
                        ELSE  'Headcount Non-Exempt'
                END          AS accounts
         ,       CASE
                        WHEN a.company = 'ZEE'
                        THEN 'OH'
                        ELSE 'NA'
                END          AS market
         FROM              essbase.employee_pubinfo a
         LEFT OUTER JOIN  mms_dist_copy             b  ON   a.cost_ctr     = TRIM (b.bu)
         INNER JOIN       mms_gl_pay_groups        c  ON   a.pay_group      = c.group_code
         WHERE     a.employee_status     IN ('A', 'L', 'P', 'S')
         AND        fiscal_year           = '2012'
         AND        fiscal_month          = 'MARCH'
    SELECT    'ST'               AS ledger
    ,       accounts
    ,       market
    ,       'MARCH_12'          AS period
    ,       COUNT (empl_id)       AS head_count
    FROM       got_group_by_columns
    GROUP BY  accounts
    ,            market
    ;But that's just a wild guess.
    You said you wanted "Help with count and sum". I see the COUNT, but what do you want with SUM? No doubt this will be clearer after you post the sample data and results.
    Edited by: Frank Kulash on Apr 4, 2012 5:31 PM

  • How to find index name with primarykey and column on a table?

    Hi,
    how to find index name with primarykey and column on a table?
    please help me.
    Thankyou.

      1  select ac.table_name, ac.index_name, aic.column_name
      2  from user_constraints ac, user_ind_columns aic
      3  where ac.constraint_type = 'P'
      4   and  ac.index_name = aic.index_name
      5* order by 1,2,3
    SQL> /
    TABLE_NAME                 INDEX_NAME                COLUMN_NAME
    ACTION_TABLE                 SYS_C0011033                NESTED_TABLE_ID
    ACTION_TABLE                 SYS_C0011033                SYS_NC_ARRAY_INDEX$
    CATEGORIES_TAB                 SYS_C0011038                CATEGORY_ID
    CUSTOMERS                 CUSTOMERS_PK                CUSTOMER_ID
    INVENTORIES                 INVENTORY_IX                PRODUCT_ID
    INVENTORIES                 INVENTORY_IX                WAREHOUSE_ID
    LINEITEM_TABLE                 SYS_C0011034                NESTED_TABLE_ID
    LINEITEM_TABLE                 SYS_C0011034                SYS_NC_ARRAY_INDEX$
    ORDERS                      ORDER_PK                 ORDER_ID
    ORDER_ITEMS                 ORDER_ITEMS_PK                LINE_ITEM_ID
    ORDER_ITEMS                 ORDER_ITEMS_PK                ORDER_ID
    PRODUCT_DESCRIPTIONS            PRD_DESC_PK                LANGUAGE_ID
    PRODUCT_DESCRIPTIONS            PRD_DESC_PK                PRODUCT_ID
    PRODUCT_INFORMATION            PRODUCT_INFORMATION_PK           PRODUCT_ID
    PROMOTIONS                 PROMO_ID_PK                PROMO_ID
    WAREHOUSES                 WAREHOUSES_PK                WAREHOUSE_ID
    16 rows selected.

  • Help with writing and retrieving data from a table field with type "LCHR"

    Hi Experts,
    I need help with writing and reading data from a database table field which has a type of "LCHR". I have given an example of the original code but don't know what to change it to in order to fix it and still read in the original data that's stored in the LCHR field.
    Basically we have two Function modules, one that saves list data to a database table and one that reads in this data. Both Function modules have an identicle table which has an array of fields from type INT4, CHAR, and type P. The INT4 field is the first one.
    Incidentally this worked in the 4.7 non-unicode system but is now dumping in the new ECC6 Unicode system.
    Thanks in advance,
    C
    SAVING THE LIST DATA TO DB
    DATA: L_WA(800).
    LOOP AT T_TAB into L_WA.
    ZDBTAB-DATALEN = STRLEN( L_WA ).
    MOVE: L_WA to ZDBTAB-RAWDATA.
    ZDBTAB-LINENUM = SY-TABIX.
    INSERT ZDBTAB.
    READING THE DATA FROM DB
    DATA: BEGIN OF T_DATA,
                 SEQNR type ZDBTAB-LINENUM,
                 DATA type ZDBTAB-RAWDATA,
               END OF T_TAB.
    Select the data.
    SELECT linenum rawdata from ZDBTAB into table T_DATA
         WHERE repid = w_repname
         AND rundate = w_rundate
         ORDER BY linenum.
    Populate calling Internal Table.
    LOOP AT T-DATA.
    APPEND T_DATA to T_TAB.
    ENDLOOP.

    Hi Anuj,
    The unicode flag is active.
    When I run our report and then to try and save the list data a dump is happening at the following point
    LOOP AT T_TAB into L_WA.
    As I say, T_TAB consists of different fields and field types whereas L_WA is CHAR 800. The dump mentions UC_OBJECTS_NOT_CONVERTIBLE
    When I try to load a saved list the dump is happening at the following point
    APPEND T_DATA-RAWDATA to T_TAB.
    T_DATA-RAWDATA is type LCHR and T_TAB consists of different fields and field types.
    In both examples the dumps mention UC_OBJECTS_NOT_CONVERTIBLE
    Regards
    C

  • How to create table with rows and columns in the layout mode?

    One of my friends advised me to develop my whole site on the
    layout mode as its better than the standard as he says
    but I couldnot make an ordinary table with rows and columns
    in th layout mode
    is there any one who can tell me how to?
    thanx alot

    Your friend is obviously not a reliable source of HTML
    information.
    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
    ==================
    "Mr.Ghost" <[email protected]> wrote in
    message
    news:f060vi$npp$[email protected]..
    > One of my friends advised me to develop my whole site on
    the layout mode
    > as its
    > better than the standard as he says
    > but I couldnot make an ordinary table with rows and
    columns in th layout
    > mode
    > is there any one who can tell me how to?
    > thanx alot
    >

  • MOVED: [Athlon64] Need Help with X64 and Promise 20378

    This topic has been moved to Operating Systems.
    [Athlon64] Need Help with X64 and Promise 20378

    I'm moving this the the Administration Forum.  It seems more apporpiate there.

  • Help with Divs need please

    Hello could someone possibly help me.
    My page layout has a top banner ("banner"), then main content
    below in the middle (middletext), and a fotter ("footer") below the
    "middletext" div
    I want place a div of say 100px directly to the right of the
    "middletext" div. The layout is fluid so I want the right div to
    move with the rest of the page when resized in an IE window. Here
    is the code for the css -
    body {
    background-color: #666666;
    background-repeat: repeat-x;
    #background {
    background-color: #999999;
    background-repeat: repeat-x;
    width: 80%;
    #content {
    background-color: #CCCCCC;
    background-repeat: repeat-x;
    height: 300px;
    #middletext {
    background-color: #FFFFFF;
    background-repeat: repeat-x;
    margin-left: 200px;
    margin-right: 200px;
    height: 300px;
    #footer {
    background-color: #9999FF;
    background-repeat: repeat-x;
    height: 100px;
    #rightcontent {
    background-repeat: repeat-x;
    width: 100px;
    background-color: #CCCC66;
    height: 100px;
    position: absolute;
    left: 1052px;
    top: 135px;
    #banner {
    background-color: #996633;
    background-repeat: repeat-x;
    height: 100px;
    And the code for the html page -
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01
    Transitional//EN"
    http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <title>Untitled Document</title>
    <meta http-equiv="Content-Type" content="text/html;
    charset=iso-8859-1">
    <link href="test.css" rel="stylesheet" type="text/css">
    <script language="JavaScript" type="text/JavaScript">
    <!--
    function MM_reloadPage(init) { //reloads the window if Nav4
    resized
    if (init==true) with (navigator) {if
    ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight;
    onresize=MM_reloadPage; }}
    else if (innerWidth!=document.MM_pgW ||
    innerHeight!=document.MM_pgH) location.reload();
    MM_reloadPage(true);
    //-->
    </script>
    </head>
    <body>
    <div id="background">
    <div id="banner">Content for id "banner" Goes
    Here</div>
    Content for id "background" Goes Here
    <div id="content">
    <div id="middletext">Content for id "middletext" Goes
    Here</div>
    id content </div>
    <div id="footer">Content for id "footer" Goes
    Here</div>
    </div>
    </body>
    </html>
    I also have the width of the page set to 80%, just to give a
    small border, but how can I center the entire page?
    Many thanks in advance!!
    Billy.

    Add the 'right' <div> before the 'middletext'
    <div> and float it right
    with a width of 100px. See code and css below.
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01
    Transitional//EN"
    http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <title>Untitled Document</title>
    <meta http-equiv="Content-Type" content="text/html;
    charset=iso-8859-1">
    <link href="test.css" rel="stylesheet"
    type="text/css">
    <script language="JavaScript" type="text/JavaScript">
    <!--
    function MM_reloadPage(init) { //reloads the window if Nav4
    resized
    if (init==true) with (navigator) {if
    ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight;
    onresize=MM_reloadPage; }}
    else if (innerWidth!=document.MM_pgW ||
    innerHeight!=document.MM_pgH)
    location.reload();
    MM_reloadPage(true);
    //-->
    </script>
    <style>
    body {
    background-color: #666666;
    background-repeat: repeat-x;
    #background {
    background-color: #999999;
    background-repeat: repeat-x;
    width: 80%;
    #content {
    background-color: #CCCCCC;
    background-repeat: repeat-x;
    height: 300px;
    #middletext {
    background-color: #FFFFFF;
    background-repeat: repeat-x;
    margin-left: 200px;
    margin-right: 200px;
    height: 300px;
    #footer {
    background-color: #9999FF;
    background-repeat: repeat-x;
    height: 100px;
    #rightcontent {
    background-repeat: repeat-x;
    width: 100px;
    background-color: #CCCC66;
    height: 100px;
    position: absolute;
    left: 1052px;
    top: 135px;
    #banner {
    background-color: #996633;
    background-repeat: repeat-x;
    height: 100px;
    #right {
    float: right;
    width: 100px;
    background-color:#FFFFFF;
    </style>
    </head>
    <body>
    <div id="background">
    <div id="banner">Content for id "banner" Goes
    Here</div>
    Content for id "background" Goes Here
    <div id="content">
    <div id="right">right</div>
    <div id="middletext">Content for id "middletext" Goes
    Here</div>
    <div id="footer">Content for id "footer" Goes
    Here</div>
    </div>
    </div>
    </body>
    </html>

  • Please Please help with JavaScript and Actions

    Hello!
    Is there a way to perform a saved Action from the Action Pallette using a JavaScript script? I know there is a way to do it with Visual Basic.
    Is there a way to run a Visual Basic script from a JavaScript script?(which could be a potential workaround if JavaScript CANNOT call on an Action)
    Is there a way to call on a JavaScript from an Action?
    Here's specific information on my problem:
    I am using Illustrator CS2 on a PC
    I have written all of the JavaScript scripts that I need to perform various layer selection procedures and they all work perfectly. I have placed them in the Presets > Scripts folder so that they appear in my file menu.
    I wrote a very long action that called on these scripts (using Insert Menu Item > then selecting the script by going File > Scripts) sequentially and did some selecting and copy-pasting and applying graphic styles in between scripts. The Action worked PERFECTLY and ran all the scripts I needed to an automated a process that usually takes me an hour in less than five minutes!
    I saved the actions and saved the file.
    After closing Illustrator all of the lines of the action that called on scripts disappeared! It seems this is a known bug...I currently know of no workaround.
    Can anyone help with any of the following things:
    1. Getting actions to SAVE the commands to run javascripts
    2. Writing a JavaScript that runs an Illustrator Action
    3. Writing a JavaScript that runs a Visual Basic script that runs an Illustrator Action.
    I spent three days learning the basics of JavaScript (mostly by trial and error) and successfully wrote all the scripts I needed...I was overjoyed! But now that I've closed illustrator my actions to run said scripts do not work. PLEASE ADVISE!!!
    Thanks in advance,
    Matthew

    try next
    1)if possible split JS-code into 2 parts (before/after action)
    2)make vbs script with contents
    Set appRef = CreateObject("Illustrator.Application.3")
    appRef.DoJavaScriptFile("C:\my1.js")
    appRef.DoScript(Action As String, From As String)
    'add wait while ActionIsRunning
    appRef.DoJavaScriptFile("C:\my2.js")
    3) run vbs (File > Scripts or double-click).

  • Please help with Database and JTable.

    The class listed below is for a JTable. The main in this class is for testing only, when complete main will reside elsewhere. I need to know how to make this JTable universal. How can I set it up so that when called in a main and passed parameters it will display the information contained in that users database?? Again it must be universal so no matter who uses it, it will perform the same on all database's.
    Here's the code:
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.table.*;
    public class DisplayTable extends JFrame{
    public DisplayTable() {
         JFrame jf = new JFrame("Window Title");
              jf.setSize(1100,700);
              jf.setLocation(25,50);
              jf.addWindowListener(new WindowAdapter(){
                   public void windowClosing(WindowEvent e){
                        System.exit(0);}
         TableModel tm = new AbstractTableModel(){
              String[][] data = { {"How to get database data??"}};
              String[] headers = {"How to get database headers??"};
              public int getRowCount() {return data.length;}
              public int getColumnCount() {return headers.length;}
              public Object getValueAt(int r, int c) {return data[r][c];}
              public String getColumnName(int c) {return headers[c];}
         JTable jt = new JTable(tm);
         JScrollPane jsp = new JScrollPane(jt);
              jf.getContentPane().add(jsp, BorderLayout.CENTER);
              jf.setVisible(true);
    public static void main(String args[]){
         DisplayTable dt = new DisplayTable(Database Parameters to be given here);

    You could generalize it, but it gets tricky to deal with the data types and if the JTable is editable because you would read the DB table data at run time. Using the ResultSetMetaData, you would be able to find the column type too. But, how can we cast an object at run-time?
    Below, I have provided an overview as of doing a read-only (all-strings version) of it. You may have some ideas from there.
    The database parameters that you pass to the constructor would tell the model where to connect and which DB table to read the data from. Couple of options:
    1. You can read the data in the constructor of DisplayTable into final variables and have the inner class (model) set its data and headers from those variables.
    Or
    2. Pull out the model as a separate class extending AbstractTableMode. Doing this, you can pass on the DB information to the model and have the model talk to the DB.
    And, I would use dynamic datastructures like Vector or List instead of arrays.
    You would have the following logic wherever you chose to talk to the DB:
    I am assuming that you are trying to read a complete DB table into your JTable (or may be you would pass a SELECT-query alongwith your DB information). Whatever may be the case, you would execute a select- to the DB and get a resultset back. Using that you would be able to get the ResultSetMetaData, which will give you the column count and column names. You may chose to use these column names as the header names for your JTable. With the column count you would query every row to get the object at each column.
    Here is a sample model:
    class MyModel extends AbstractTableModel {
        ArrayList columnNames = new ArrayList();
        ArrayList data = new ArrayList();
        MyModel(<DB Info>) {
            // Use the DB info and get the resultset
            ResultSetMetaData rsm = rs.getMetaData();
            int col = rsm.getColumnCount();
            for(int i=1; i<=col; i++) {
                columnNames.add(rsm.getColumnName(i));
            // Read the data
            while(rs.next()) {
                ArrayList row = new ArrayList();
                data.add(row);
                for(int j=1; j<=col; j++) {
                    // Here is the tricky part which I did not figure yet. For now, I am reading in all as Strings.
                    row.add(rs.getObject(j).toString());
        public String getColumnName(int c) {
            return (String)columnNames.get(c);
        public int getColumnCount() {
            return columnNames.size();
        public Object getValueAt(int r,int c) {
            ArrayList row = (ArrayList)data.get(r);
            return (String)row.get(c);
        public int getRowCount() {
            return data.size();
    }If you figured a way to handle run-time casting, please let us know.
    HTH.
    Vijay

  • Please help with margins and tags

    Hope someone can help with a sudden problem I’m having with tags and margins. Out of the blue it seems Dreamweaver wants to create a margin between two <div’s,> but only if a tag is applied to the text, such as <p><h1><h2> etc.  Here’s an example; Say at the top of the page you have a <div> named “header,” below it there’s a <div> named “content.” So far no problem, but as soon as I put text in the “content” <div> and give the text a tag, the “content <div> drops roughly 25 – 30px below the “header” <div> leaving a margin.  To make it even stranger; If I were to insert an image into the “content” <div> first, then the text, it behaves as normal.  I’m just baffled; if anyone has an answer it would be greatly appreciated.

    That did it, thank you so much!
    It's still just a bit of a mystery why it suddenly started doing this, guess I’ll just have to strip that code in manually from now on, unless you have the answer on how to have it default to a margin and padding of 0.
    Anyway, thank you for your help.

  • Please help with Firewall and/or other Settings to Chat (MSN Messenger).

    I've tried to chat on all (I think) the messenger programs available for Mac that use a hotmail account or .net passport - Adium, Fire, Mercury (current) and MSN itself - and I have the same problem with all of them: I keep getting cut off/disconnected from MSN! No problems with Yahoo messenger or Yahoo ID (although it can be a bit slow sometimes), just with .net passport account.
    I'm pretty sure it's got something to do with Firewall and/or related settings, but after months of trying to fix it, I'm about to give up... please help!
    Currently the following Firewall ports are all open:
    6891 – 6900
    1863
    80
    1080
    5060, 9000, 9010 (UDP – typed like that)
    including:
    Personal File Sharing
    Windows Sharing
    Remote Login - SSH
    and Printer Sharing.
    In my most recent disconnected conversation, Mercury logged a "socket fired exception" error.
    I'm on a broadband/adsl connection, shared with hubby's pc through ethernet (and he never gets disconnected from msn, btw).
    ANY suggestions would be welcome, but apart from the above, please tell me how/where to find what you tell me to look at or for, because I'm a new Mac user (six months), and on top of that I'm blonde
    Many Thanks!
    Mac Mini (PowerMac10,1)   Mac OS X (10.4.3)   1.42 GHz PowerPC G4 with 1 GB DDR SDRAM

    Update:
    Someone very kindly pointed out that my Firewall is actually Off (probably because I omitted to click on the Start button)... I did say I'm blonde
    So now I'm really stumped... anybody got any ideas? Please?

  • Please help with TV and home theater system for very large basement room....

    I'm looking to get my boyfriend either a TV or home theater system for the basement.  I know he eventually wants a 3d TV.  Right now he has a set up where he has 2 tv's so he can play video games and watch sports.
    The basement that the tv and home theater system will be in is large (I'd estimate at least 15 ft x 30 ft...maybe more) so I want to make sure the home theater system will be enough for the room.  We live in a ranch so basically the basement is almost the size of the house with some of it being storage.
    I've started to look at products online but there are so many and technology isn't really my thing.
    If anyone could help with recommendations for the home theater system and/or the tv I'd appreciate it!
    Thanks so so sooo much!!!!

    What will he be using the HT system for?  Just watching sports or skipping the movie theater and watching them at home.   If you plan to watch them at home your going to be on a tight budget with the home theater system but it is possible.   Spend good money on the sub, that is one speaker you don't want to skimp out on.  With such a big space you have a lot of room to fill and the cheap subs aren't going to cut it.   You will probably need two subs as it is.  The speakers I recommend on a tight budget Polk or Klipsch.  My list includes a Denon receiver as I am a Denon fan but Yamaha, Onkyo, or Pioneer will suffice.
    Here is a Option 1 will run you about 1700 with just one sub. You could always go up a model on each speaker if you feel the one sub is enough.  I like an explosion sounding like it happened in front of me so that is why I mention 2 subs.
    http://www.bestbuy.com/site/Denon+-+630W+7.1-Ch.+3D+Pass+Through+A/V+Home+Theater+Receiver/9894577.p...
    http://www.bestbuy.com/site/Polk+Audio+-+Dual+5-1/4%22+2-Way+Floor+Speakers+(Each)+-+Black/8825453.p... speakers&cp=1&lp=12
    http://www.bestbuy.com/site/Polk+Audio+-+5-1/4%22+Bookshelf+Speakers+(Pair)+-+Black/8825444.p?id=120... speakers&cp=1&lp=2
    http://www.bestbuy.com/site/Polk+Audio+-+5-1/4%22+Center-Channel+Speaker+-+Black/8826149.p?id=120735... speakers&cp=1&lp=28
    http://www.bestbuy.com/site/Speakers/Subwoofer-Speakers/abcat0205008.c?id=abcat0205008&&initialize=f...
    Option 2 will cost $1400 before a subwoofer
    http://www.bestbuy.com/site/Denon+-+630W+7.1-Ch.+3D+Pass+Through+A/V+Home+Theater+Receiver/9894577.p...
    http://www.bestbuy.com/site/Mirage+-+OS%26%23179%3B-CC+Ompipolar+3-Way+Center-Channel+Speaker+-+Blac... speaker&cp=1&lp=11
     and 4 of the below speaker
    http://www.bestbuy.com/site/Mirage+-+OS%26%23179%3B-SAT+4-1/2%22+2-Way+Satellite+Speaker+(Each)+-+Hi... speaker&cp=1&lp=15

Maybe you are looking for

  • Finding  View name in screenflow jsp in obpm 10g

    Hi, We have a following requirement We are displaying a alert box in screenflow jsp upon certain conditions if the user is opening the instance from Inbox or any otehr custom views except History View. If the user is opening instance jsp from history

  • How do i import photos from iphone to windows pc without the autoplay

    My phone doesnt have space anymore for me to upgrade IOS7 and would really appreacite if someone could help. i have to import pictures to my computer and somehow that autoplay option is not coming on and also the phone is not showling under the remov

  • How to display formated html in a TextArea?

    Hi, I'm trying to display some html in a TextArea. But the formatting does not look good. here is my mxml file <?xml version="1.0" encoding="utf-8"?> <mx:Panel xmlns:mx="http://www.adobe.com/2006/mxml"      width="100%" height="100%">           <mx:T

  • Why am I not receiving pictures through texting

    Content was removed because your handset cannot display it. That is the message I receive when someone tries to send me a pict. Never happened before tonight? Recently updated phone. Is that why?

  • Firefox does not type what I type

    When I type in a search box in Firefox, it does not display the letters I type. Instead it assumes letters that are way off base. If I start to type 'I am here', it types,' It is heavy'.