Need help with  HTML and Swing Components

Dear All,
I am using HTML text for Jbutton and Jlabel and MenuItem.
But when i am trying to disable any of these, its foreground color is not being grayed out.
For that, I have overrided the setEnable() method as mentioned below:
import java.awt.*;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import javax.swing.*;
import javax.swing.plaf.FontUIResource;
* HtmlLabelEx.java
public class HtmlLabelEx extends javax.swing.JDialog implements MouseListener{
     * Creates new form HtmlLabelEx
    public HtmlLabelEx(java.awt.Frame parent, boolean modal) {
        super(parent, modal);
        UIManager.put("swing.boldMetal", Boolean.FALSE);
        initComponents();
        setLayout(null);
        this.addWindowListener(new WindowAdapter()
            public void windowClosing(WindowEvent event)
                System.exit(0);
        JLabel jLabel1 = new JLabel()
            public void setEnabled(boolean b)
              super.setEnabled(b);
              setForeground(b ? (Color) UIManager.get("Label.foreground") : (Color) UIManager.get("Label.disabledForeground"));
        JButton jButton1 = new JButton()
            public void setEnabled(boolean b)
              super.setEnabled(b);
              setForeground(b ? (Color) UIManager.get("Label.foreground") : (Color) UIManager.get("Label.disabledForeground"));
        add(jButton1);
        String str = "<html><body><b>Label</b></body></html>";
        System.out.println("str = "+str);
    jLabel1.setText(str);
    add(jLabel1);
    jLabel1.setBounds(10,10,100,20);
    jLabel1.setEnabled(false);
    jButton1.setText("<html><body><b>Button</b></body></html>");
    jButton1.setEnabled(true);
    jButton1.setBounds(10,50,100,20);
    System.out.println("getText = "+jLabel1.getText());
    setSize(400,400);
    addMouseListener(this);
    /** 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.
    // <editor-fold defaultstate="collapsed" desc=" Generated Code ">                         
    private void initComponents() {
        getContentPane().setLayout(null);
        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
        pack();
    }// </editor-fold>                       
     * @param args the command line arguments
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new HtmlLabelEx(new javax.swing.JFrame(), true).setVisible(true);
    // Variables declaration - do not modify                    
    // End of variables declaration                  
    public void mouseClicked(MouseEvent e)
        if(e.getButton() == e.BUTTON3)
            JMenuItem mit = new JMenuItem("<html><body><b>Menu Item</b></body></html>");
            JPopupMenu pop = new JPopupMenu();
            pop.add(mit);
            mit.setEnabled(false);
            pop.show(this,e.getX(),e.getY());
    public void mousePressed(MouseEvent e) {
    public void mouseReleased(MouseEvent e) {
    public void mouseEntered(MouseEvent e) {
    public void mouseExited(MouseEvent e) {
But, I think it is difficult to write like this for each component.
I am looking for an optimized solution so that the change will be only in one place.
so that, It wont leads to change so many pages or so many places.
And i have the following assumptions to do this. please let me know the possibility.
1.Implementing custom UI class, extending the JButton/JMenuItem (As the BasicButton/MenuItemUI class does not have setEnabled() method to override) and putting this in UIManager.put("ButtonUI/MenuItemUI","CustomClass).
2.If there is any possibility to achieve this, by just overriting any key in the UIManager
3.By setting any client property globally.
My requirement is to do this only at one place for entire the application.So, that we need not change all the buttoins, sya some 30 buttions are there in a dialog, then we need to override each button class.
Please suggest me the possibilties..
Thank you

Hi camickr ,
I know that to set the font we have to use component.setfont().
But, as per my requirement,i am not setting any font to any component in my application.
i am just passing HTML text along with FONT tags to all the components in my Application.SO, in this case we will get bold letters and that problem fixed when we set swing.boldMetal = false in UI Manager.
But actual problem irrespective of font settings is when ever we use HTML rendered text, when the button or menuitem is disabled,then that one will not be changed to gray color. i.e., it still looks like normal controls, even it is disabled.(It is also reported as bug)
But, as per my knowledge we can fix by overrding setEnabled or paint() methods for each and every component.
But, if we do like that, for an application that has 200 buttons or MenuItems, it is difficult to follow that approach.
So, We should find a way to achieve that only in one place like using UIManager or other one as i mentioned in previous posts if possible.
I hope you understood what my problem is exactly.
Thank You
Edited by: sindhumourya on Mar 4, 2010 7:26 AM

Similar Messages

  • 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.

  • Need help with JTextArea and Scrolling

    import java.awt.*;
    import java.awt.event.*;
    import java.text.DecimalFormat;
    import javax.swing.*;
    public class MORT_RETRY extends JFrame implements ActionListener
    private JPanel keypad;
    private JPanel buttons;
    private JTextField lcdLoanAmt;
    private JTextField lcdInterestRate;
    private JTextField lcdTerm;
    private JTextField lcdMonthlyPmt;
    private JTextArea displayArea;
    private JButton CalculateBtn;
    private JButton ClrBtn;
    private JButton CloseBtn;
    private JButton Amortize;
    private JScrollPane scroll;
    private DecimalFormat calcPattern = new DecimalFormat("$###,###.00");
    private String[] rateTerm = {"", "7years @ 5.35%", "15years @ 5.5%", "30years @ 5.75%"};
    private JComboBox rateTermList;
    double interest[] = {5.35, 5.5, 5.75};
    int term[] = {7, 15, 30};
    double balance, interestAmt, monthlyInterest, monthlyPayment, monPmtInt, monPmtPrin;
    int termInMonths, month, termLoop, monthLoop;
    public MORT_RETRY()
    Container pane = getContentPane();
    lcdLoanAmt = new JTextField();
    lcdMonthlyPmt = new JTextField();
    displayArea = new JTextArea();//DEFINE COMBOBOX AND SCROLL
    rateTermList = new JComboBox(rateTerm);
    scroll = new JScrollPane(displayArea);
    scroll.setSize(600,170);
    scroll.setLocation(150,270);//DEFINE BUTTONS
    CalculateBtn = new JButton("Calculate");
    ClrBtn = new JButton("Clear Fields");
    CloseBtn = new JButton("Close");
    Amortize = new JButton("Amortize");//DEFINE PANEL(S)
    keypad = new JPanel();
    buttons = new JPanel();//DEFINE KEYPAD PANEL LAYOUT
    keypad.setLayout(new GridLayout( 4, 2, 5, 5));//SET CONTROLS ON KEYPAD PANEL
    keypad.add(new JLabel("Loan Amount$ : "));
    keypad.add(lcdLoanAmt);
    keypad.add(new JLabel("Term of loan and Interest Rate: "));
    keypad.add(rateTermList);
    keypad.add(new JLabel("Monthly Payment : "));
    keypad.add(lcdMonthlyPmt);
    lcdMonthlyPmt.setEditable(false);
    keypad.add(new JLabel("Amortize Table:"));
    keypad.add(displayArea);
    displayArea.setEditable(false);//DEFINE BUTTONS PANEL LAYOUT
    buttons.setLayout(new GridLayout( 1, 3, 5, 5));//SET CONTROLS ON BUTTONS PANEL
    buttons.add(CalculateBtn);
    buttons.add(Amortize);
    buttons.add(ClrBtn);
    buttons.add(CloseBtn);//ADD ACTION LISTENER
    CalculateBtn.addActionListener(this);
    ClrBtn.addActionListener(this);
    CloseBtn.addActionListener(this);
    Amortize.addActionListener(this);
    rateTermList.addActionListener(this);//ADD PANELS
    pane.add(keypad, BorderLayout.NORTH);
    pane.add(buttons, BorderLayout.SOUTH);
    pane.add(scroll, BorderLayout.CENTER);
    addWindowListener( new WindowAdapter()
    public void windowClosing(WindowEvent e)
    System.exit(0);
    public void actionPerformed(ActionEvent e)
    String arg = lcdLoanAmt.getText();
    int combined = Integer.parseInt(arg);
    if (e.getSource() == CalculateBtn)
    try
    JOptionPane.showMessageDialog(null, "Got try here", "Error", JOptionPane.ERROR_MESSAGE);
    catch(NumberFormatException ev)
    JOptionPane.showMessageDialog(null, "Got here", "Error", JOptionPane.ERROR_MESSAGE);
    if ((e.getSource() == CalculateBtn) && (arg != null))
    try{
    if ((e.getSource() == CalculateBtn) && (rateTermList.getSelectedIndex() == 1))
    monthlyInterest = interest[0] / (12 * 100);
    termInMonths = term[0] * 12;
    monthlyPayment = combined * (monthlyInterest / (1 - (Math.pow (1 + monthlyInterest,  -termInMonths))));
    lcdMonthlyPmt.setText(calcPattern.format(monthlyPayment));
    if ((e.getSource() == CalculateBtn) && (rateTermList.getSelectedIndex() == 2))
    monthlyInterest = interest[1] / (12 * 100);
    termInMonths = term[1] * 12;
    monthlyPayment = combined * (monthlyInterest / (1 - (Math.pow (1 + monthlyInterest,  -termInMonths))));
    lcdMonthlyPmt.setText(calcPattern.format(monthlyPayment));
    if ((e.getSource() == CalculateBtn) && (rateTermList.getSelectedIndex() == 3))
    monthlyInterest = interest[2] / (12 * 100);
    termInMonths = term[2] * 12;
    monthlyPayment = combined * (monthlyInterest / (1 - (Math.pow (1 + monthlyInterest,  -termInMonths))));
    lcdMonthlyPmt.setText(calcPattern.format(monthlyPayment));
    catch(NumberFormatException ev)
    JOptionPane.showMessageDialog(null, "Invalid Entry!\nPlease Try Again", "Error", JOptionPane.ERROR_MESSAGE);
    }                    //IF STATEMENTS FOR AMORTIZATION
    if ((e.getSource() == Amortize) && (rateTermList.getSelectedIndex() == 1))
    loopy(7, 5.35);
    if ((e.getSource() == Amortize) && (rateTermList.getSelectedIndex() == 2))
    loopy(15, 5.5);
    if ((e.getSource() == Amortize) && (rateTermList.getSelectedIndex() == 3))
    loopy(30, 5.75);
    if (e.getSource() == ClrBtn)
    rateTermList.setSelectedIndex(0);
    lcdLoanAmt.setText(null);
    lcdMonthlyPmt.setText(null);
    displayArea.setText(null);
    if (e.getSource() == CloseBtn)
    System.exit(0);
    private void loopy(int lTerm,double lInterest)
    double total, monthly, monthlyrate, monthint, monthprin, balance, lastint, paid;
    int amount, months, termloop, monthloop;
    String lcd2 = lcdLoanAmt.getText();
    amount = Integer.parseInt(lcd2);
    termloop = 1;
    paid = 0.00;
    monthlyrate = lInterest / (12 * 100);
    months = lTerm * 12;
    monthly = amount *(monthlyrate/(1-Math.pow(1+monthlyrate,-months)));
    total = months * monthly;
    balance = amount;
    while (termloop <= lTerm)
    displayArea.setCaretPosition(0);
    displayArea.append("\n");
    displayArea.append("Year " + termloop + " of " + lTerm + ": payments\n");
    displayArea.append("\n");
    displayArea.append("Month\tMonthly\tPrinciple\tInterest\tBalance\n");
    monthloop = 1;
    while (monthloop <= 12)
    monthint = balance * monthlyrate;
    monthprin = monthly - monthint;
    balance -= monthprin;
    paid += monthly;
    displayArea.setCaretPosition(0);
    displayArea.append(monthloop + "\t" + calcPattern.format(monthly) + "\t" + calcPattern.format(monthprin) + "\t");
    displayArea.append(calcPattern.format(monthint) + "\t" + calcPattern.format(balance) + "\n");
    monthloop ++;
    termloop ++;
    public static void main(String args[])
    MORT_RETRY f = new MORT_RETRY();
    f.setTitle("MORTGAGE PAYMENT CALCULATOR");
    f.setBounds(600, 600, 500, 500);
    f.setLocationRelativeTo(null);
    f.setVisible(true);
    }need help with displaying the textarea correctly and the scroll bar please.
    Message was edited by:
    new2this2020

    What's the problem you're having ???
    PS.

  • Need help with trim and null function

    Hi all,
    I need help with a query. I use the trim function to get the first three characters of a string. How do I write my query so if a null value occurs in combination with my trim to say 'Null' in my results?
    Thanks

    Hi,
    Thanks for the reply. What am I doing wrong?
    SELECT trim(SUBSTR(AL1.user_data_text,1,3)),NVL
    (AL1.user_data_text,'XX')
    FROM Table
    I want the XX to appear in the same column as the
    trim.The main thing you're doing wrong is not formatting your code. The solution may become obvious if you do.
    What you're saying is:
    SELECT  trim ( SUBSTR (AL1.user_data_text, 1, 3))
    ,       NVL ( AL1.user_data_text, 'XX' )
    FROM    Tablewhich makes it clear that you're SELECTing two columns, when you only want to have one.
    If you want that column to be exactly like the first column you're currently SELECTing, except that when that column is NULL you want it to be 'XX', then you have to apply NVL to that column, like this:
    SELECT  NVL ( trim ( SUBSTR (AL1.user_data_text, 1, 3))
                , 'XX'
    FROM    Table

  • Help with HTML and JAVA

    Hi.
    I'll have this question, and can't find the right answer...
    Suppose is this site called xyz.com and you need to register to be a member
    For simplicity member log-in page is simple...contains only login and password fields(Submit too) in HTML code:
    <html>
    <body>
    <form name="input" action="html_form_action.asp" method="get">
    User ID: <input type="text" name="ID" /><br />
    Password: <input type="password" name="pwd" /><br />
    <input type="submit" value="Submit" />
    </form>
    </body>
    </html>Will I be able to build a Java application witch will:
    1-Send me to this web-page
    2-Place my chosen id and password in the right place
    3-"Press" Submit button.
    So I open this Java Swing application , and Go button will send me to the members page of my xyz.com page.
    Thank you for the help.

    altisw5 wrote:
    Go button will send me to the members page of my xyz.com page.It depends on what you mean by "send me".
    If you mean access data on the members page through your program, yes.
    If you mean open a browser window to that page, I guess doable but might be tricky (with Robot and stuff).
    If you mean physically send you on the internet, no.

  • Need help with links and fill color

    Hi all, I just recently discovered liveCycle and am very impressed with it! I have been trying to make myself a homework calendar for a while now, and I have it done mostly, but there are a few more things I'd like to add that I don't know how to do.
    I have some HTML and Java experience, but very little XML or JavaScript experience. I have a feeling that what I am trying to do is relatively simple, but I just can't figure it out! I have spent hours pouring over Google and the help files, and I feel like I have gotten close, but no joy yet.
    I have attached my calendar so far (truncated to fit 5MB max attachment size). I'd like it to do two more things:
    1. Have the background color of the table cells change from white to green when the check box is checked.
    (Alternately, I'd really like to get rid of the check boxes all thogether and just have the background of the table cells turn green with a keyboard shortcut, like "ctrl + D" for 'done'. But if that isn't possible, then the color change with the check box is fine.)
    2. I'd like the button called 'WORD DOC' in the upper right of the form to open a word document on my local computer. Where I just push that button and a work doc opens right up in Word in another window.
    I was able to get .PDF documents to open up with those other two buttons there ('Big Java' and 'Beginning Java II') by adding the script
    app.openDoc("Big Java.pdf");
    and
    app.openDoc("Beginning Java II.pdf");
    to each of the buttons respectively, but those PDFs need to be in the same folder as the calendar for that to work. I tried just altering that script by replacing the name of the PDF file with the name of a Word doc file like this:
    app.openDoc("test.docx");
    but the button doesn’t work at all, it just does nothing.
    So that’s what I am trying to do. I have spent hours messing around with anything I could think of to get this to work, but unfortunately I just don’t know the language well enough to get it to work.
    I would really appreciate any advice on this at all. Thank you very much for your consideration.

    Hi,
    Thanks very much for your response! I was able to use the code to make the box turn green by adding that script to the 'click' event of textbox and changing the language from FormCalc to JavaScript. So what happened was that when I clicked in the textbox, the color turned green.
    I couln't firgure out how to add it to the checkbox though. When I tried, it didn't do anything. The problem now is that when I click in the textbox to add my homework, it turns green. I need it to turn green once I finish my homework.
    This would work great if the texbox turned green when I SHIFT clicked the box. Is there anything I could add to that scipt to do that?

  • Need help with threading in Swing GUI !!!

    I've written an app that parses and writes
    files. I'm using a Swing GUI. The app
    could potenially be used to parse hundreds or even
    thousands of files. I've included a JProgressBar
    to monitor progress. The problem is when I parse
    a large number of files the GUI freezes and only
    updates the values of the progress bar when the
    parsing and writing process is finished.
    I assume I need to start the process in a seperate thread. But, I'm new to threads and I'm not sure
    whether to start the Progressbar code in a seperate
    thread or the parsing code. As a matter of fact I really
    don't have any idea how to go about this.
    I read that Swing requires repaints be done in the
    event dispatch thread. If I start the parsing in a seperate
    thread how do I update the progressbar from the other
    thread? I'm a thread neophyte.
    I need a cigarette.

    In other words do this:
    Inside event Thread:
    handle button action
    start thread
    return from action listener
    Inside worker Thread:
    lock interface
    loop
    perform action
    update progress bar
    unlock interface
    return from worker ThreadDoesn't updating the progress bar (and locking/unlocking the interface components) from within the worker thread violate the rule that you shouldn't mess with Swing components outside the event thread? (Do I have that rule right?)
    In any case, is there any way to just post some kind of event to the progress bar to update it from within the worker thread, thereby insuring that the GUI progress bar update is being invoked from the event thread? This would also obviate the need to use a timer to poll for an update, which I think is a waste especially when the monitored progress is at a variable rate, (or for number crunching, is executing on different speed machines).
    Also, doesn't using invokeLater() or invokeAndWait() still block the event dispatching thread? I don't understand how having a chunk of code started in the event thread doesn't block the event thread unless the code's executed in a "sub-thread", which would then make it not in the event thread.
    I'm also looking to have a progress bar updated to monitor a worker thread, but also want to include a "Stop" button, etc. and need the event queue not to be blocked.
    The last thing I can think of is to implement some kind of original event-listener class that listens to events that I define, then register it with the system event queue somehow, then have the worker thread post events to this listener which then calls setValue() in the progress bar to insure that the bar is updated from the event queue and when I want it to be updated. I don't know yet if it's possible to create and register these kinds of classes (I'm guessing it is).
    Thanks,
    Derek

  • Need help with INSERT and WITH clause

    I wrote sql statement which correctly work, but how i use this statment with INSERT query? NEED HELP. when i wrote insert i see error "ORA 32034: unsupported use of with clause"
    with t1 as(
    select a.budat,a.monat as period,b.vtweg,
    c.gjahr,c.buzei,c.shkzg,c.hkont, c.prctr,
    c.wrbtr,
    c.matnr,
    c.menge,
    a.monat,
    c.zuonr
    from ldw_v1.BKPF a,ldw_v1.vbrk b, ldw_v1.bseg c
    where a.AWTYP='VBRK' and a.BLART='RV' and a.BUKRS='8431' and a.awkey=b.vbeln
    and a.bukrs=c.bukrs and a.belnr=c.belnr and a.gjahr=c.gjahr and c.koart='D'
    and c.ktosl is null and c.gsber='4466' and a.gjahr>='2011' and b.vtweg='01'
    ,t2 as(
    select a.BUKRS,a.BELNR, a.GJAHR,t1.vtweg,t1.budat,t1.monat from t1, ldw_v1.bkpf a
    where t1.zuonr=a.xblnr and a.blart='WL' and bukrs='8431'
    ,tcogs as (
    select t2.budat,t2.monat,t2.vtweg, bseg.gjahr,bseg.hkont,bseg.prctr,
    sum(bseg.wrbtr) as COGS,bseg.matnr,bseg.kunnr,sum(bseg.menge) as QUANTITY
    from t2, ldw_v1.bseg
    where t2.bukrs=bseg.bukrs and t2.belnr=bseg.BELNR and t2.gjahr=bseg.gjahr and BSEG.KOART='S'
    group by t2.budat,t2.monat,t2.vtweg, bseg.gjahr,bseg.hkont,bseg.prctr,
    bseg.matnr,bseg.kunnr
    ,t3 as
    select a.budat,a.monat,b.vtweg,
    c.gjahr,c.buzei,c.shkzg,c.hkont, c.prctr,
    case when c.shkzg='S' then c.wrbtr*(-1)
    else c.wrbtr end as NTS,
    c.matnr,c.kunnr,
    c.menge*(-1) as Quantity
    from ldw_v1.BKPF a,ldw_v1.vbrk b, ldw_v1.bseg c
    where a.AWTYP='VBRK' and a.BLART='RV' and a.BUKRS='8431' and a.awkey=b.vbeln
    and a.bukrs=c.bukrs and a.belnr=c.belnr and a.gjahr=c.gjahr and c.koart='S'
    and c.ktosl is null and c.gsber='4466' and a.gjahr>='2011' and b.vtweg='01'
    ,trevenue as (
    select t3.budat,t3.monat,t3.vtweg, t3.gjahr,t3.hkont,t3.prctr,
    sum(t3.NTS) as NTS,t3.matnr,t3.kunnr,sum(t3.QUANTITY) as QUANTITY
    from t3
    group by t3.budat,t3.monat,t3.vtweg, t3.gjahr,t3.hkont,t3.prctr,t3.matnr,t3.kunnr
    select NVL(tr.budat,tc.budat) as budat,
    NVL(tr.monat,tc.monat) as monat,
    NVL(tr.vtweg,tc.vtweg) as vtweg,
    NVL(tr.gjahr, tc.gjahr) as gjahr,
    tr.hkont as NTS_hkont,
    tc.hkont as COGS_hkont,
    NVL(tr.prctr,tc.prctr) as prctr,
    NVL(tr.MATNR, tc.MATNR) as matnr,
    NVL(tr.kunnr, tc.kunnr) as kunnr,
    NVL(tr.Quantity, tc.Quantity) as Quantity,
    tr.NTS as NTS,
    tc.COGS as COGS
    from trevenue TR full outer join tcogs TC
    on TR.BUDAT=TC.BUDAT and TR.MONAT=TC.MONAT and TR.GJAHR=TC.GJAHR
    and TR.MATNR=TC.MATNR and TR.KUNNR=TC.KUNNR and TR.QUANTITY=TC.QUANTITY
    and TR.VTWEG=TC.VTWEG and TR.PRCTR=TC.PRCTR
    Edited by: user13566113 on 25.03.2011 5:26

    Without seeing what you tried it is hard to say what you did wrong, but this is how it would work
    SQL> create table t ( n number );
    Table created.
    SQL> insert into t
      2  with test_data as
      3    (select 1 x from dual union all
      4     select 2 x from dual union all
      5     select 3 x from dual union all
      6     select 4 x from dual)
      7  select x from test_data;
    4 rows created.
    SQL>

  • I need help with CSS and floating

    Okay, I know I need to get up on CSS and get rid of tables in
    my sites.
    However, I'm running up against a problem, and after banging
    my head
    against it for a while, I realize I need help. I've stripped
    this down
    so as to only show the area where I'm having difficulty.
    What I want is a page that has everything down the center,
    taking up no
    more than 750 pixels and no more than 550 pixels of width. No
    problem there.
    After the header and the top content, I'd like to have two
    "columns",
    each in it's own separately-colored box. I would like the
    right-side
    column/box to be a static size, while the left-side
    column/box sizes
    dynamically.
    Where I'm having problems is that when one column is boxed,
    it's fine,
    but whenever I wrap each column in its own box, the
    fixed-size box
    either jumps below or above the other box (depending on which
    one has
    been floated and which order the div's appear in the code).
    Here are the links:
    CSS:
    http://www.afice.org/stylesheet/floatmestyles.css
    ex 1:
    http://www.afice.org/floatme1.html
    ex 2:
    http://www.afice.org/floatme2.html
    Before sending, I took a look again, just to see if I was
    missing
    anything. I did notice that it doesn't seem to be that the
    box is
    jumping down so much as it is that it's getting written over.
    Anyway, sorry for the long-winded explanation. I hope I've
    managed to
    explain what I'm trying to do well enough that someone can
    tell me where
    I'm going wrong.
    Thanks,
    --Kevin

    Do you want something like this:
    http://www.pmob.co.uk/temp/spointfooter.htm
    You will need to look at the code to see how it was done.
    Otherwise, there are different examples here on Pauls' site:
    http://www.pmob.co.uk/temp/3colfixedtest_4.htm
    Nadia
    Adobe� Community Expert : Dreamweaver
    http://www.csstemplates.com.au
    - CSS Templates | Free Templates
    http://www.perrelink.com.au
    - Web Dev
    http://www.DreamweaverResources.com
    - Dropdown Menu Templates|Tutorials
    http://www.adobe.com/devnet/dreamweaver/css.html
    "Kevin D-R" <[email protected]> wrote in
    message
    news:[email protected]...
    > Okay, I know I need to get up on CSS and get rid of
    tables in my sites.
    > However, I'm running up against a problem, and after
    banging my head
    > against it for a while, I realize I need help. I've
    stripped this down so
    > as to only show the area where I'm having difficulty.
    >
    > What I want is a page that has everything down the
    center, taking up no
    > more than 750 pixels and no more than 550 pixels of
    width. No problem
    > there.
    >
    > After the header and the top content, I'd like to have
    two "columns", each
    > in it's own separately-colored box. I would like the
    right-side column/box
    > to be a static size, while the left-side column/box
    sizes dynamically.
    >
    > Where I'm having problems is that when one column is
    boxed, it's fine, but
    > whenever I wrap each column in its own box, the
    fixed-size box either
    > jumps below or above the other box (depending on which
    one has been
    > floated and which order the div's appear in the code).
    >
    > Here are the links:
    >
    > CSS:
    http://www.afice.org/stylesheet/floatmestyles.css
    >
    > ex 1:
    http://www.afice.org/floatme1.html
    >
    > ex 2:
    http://www.afice.org/floatme2.html
    >
    > Before sending, I took a look again, just to see if I
    was missing
    > anything. I did notice that it doesn't seem to be that
    the box is jumping
    > down so much as it is that it's getting written over.
    >
    > Anyway, sorry for the long-winded explanation. I hope
    I've managed to
    > explain what I'm trying to do well enough that someone
    can tell me where
    > I'm going wrong.
    >
    > Thanks,
    >
    > --Kevin

  • Noob needs help with Logic and Motu live setup.

    Hello everyone,
    I'm a noob / semi noob who could use some help with a live setup using 2 MOTU 896HD's and Logic on a Mac.
    Here's the scenario:
    I teach an outdoor marching percussion section (a drumline and a front ensemble of marimbas and vibes). We have an amazing setup of live sound to amplify and enhance the mallet percussion. There is a yamaha PA system with 2 subs and 2 mains which are routed through a rack unit that processes the overall PA balance. I'm pretty sure that the unit is supposed to avoid feedback and do an overall cross-over EQ of the sound. Other then that unit, we have 2 motu896hd units which are routed via fire-wire. I also have a coax cable routing the output of the secondary box to the input of the primary box (digital i/o which converts to ADAT in (i think?)..?
    Here's the confusion:
    There are more then 8 inputs being used from the ensemble itself, so I need the 16 available inputs to be available in Logic. I was lead to believe that the 2nd motu unit would have to be sent digitally to the 1st motu unit via coax digital i/o. Once in Logic, however, I cannot find the signal or any input at all past the 8th input (of the 1st unit).
    Here's the goal:
    All of my performers and inputs routed via firewire into a Mac Mini running OSX and Logic pro.
    I want to be able to use MainStage and run different patches of effects / virt. instruments for a midi controller keyboard / etc.
    I want to be able to EQ and balance the ensemble via Logic.
    Here's another question:
    How much latency will I be dealing with? Would a mac mini with 4gb of ram be able to handle this load? With percussion, I obviously want the sound as latency free as possible. I also, however, want the flexibility of sound enhancement / modification that comes with Logic and the motu896hd units.
    Any help would be REALLY appreciated. I need the routing assistance along with some direction as to whether or not this will work for this type of application. I'm pretty certain it does, as I have spoken with some other teachers in similar venues and they have been doing similar things using mac mini's / logic / mainstage / etc.
    Thanks in advance,
    Chris

    You'll definitely want to read the manual to make sure the 896HDs are connected together properly. ADAT is a little tricky, it's not just a matter of cabling them together. Go to motunation.com if you need more guidance on connecting multiple devices. Beyond that initial hookup, here are a couple of quick suggestions:
    1. Open CueMix and see if both devices are reported there. If not, your connections aren't correct. Be sure to select 44.1kHz as your sample rate, otherwise you are reducing the number of additional channels. For instance at 88.2kHz you would get half the additional channels via ADAT.
    2. You may need to create an aggregate device for the MacBook to recognize more than the first 896HD. Lots of help on this forum for how to do that. Again, first make sure you have the 896HDs connected together properly.
    3. As for latency with Mainstage on the Mini, no way to know until you try it. Generally MOTU is fantastic for low latency work but Mainstage is a question mark for a lot of users right now. If the Mini can't cut the mustard, you have a great excuse to upgrade to a MacBook Pro.

  • Need help with mac and java

    Hi, I'm trying to develop an application on a Machintosh OSX 10.2.8 machine.
    I'm having a herrendous time trying to get quicktime to work on it.
    I've somehow managed t oget 1.3.1 and QTJava.jar to work together but now i need encryption, however that requires 1.4+
    Now 1.4.1 doesnt work with quicktime
    I've downloaded the latest software upgrades but Ive got no idea how to set up quicktime to work with java 1.4.1
    Now to add on top of that mac reports it can use AES encryption. this is from source code ripped striaght from this website.
    But first and foremost can anyone, annyonee help me out with setting up 1.4.1 with quicktime?
    Thank you

    If you need encryption with Java 1.3.1, download the JCE from either Sun (http://java.sun.com/products/jce/) or Bouncy Castle (http://www.bouncycastle.org/).
    Cheers,
    --Arnout                                                                                                                                                                                                                                                                                                                                                                   

  • Need Help with HTML Batch Processing

    Hi,
    New to this forum so be kind
    I am trying to work out a way to batch process html's.
    The html template is used in our eBay listings.
    All the information I want to change is the same.
    Eg in my template I have the number "0234" it appears for 6 times, sometimes in the text sometimes in part of the image title I am loading.
    I then have an excel sheet listing all my codes that i need to make htmls for - 0234, 0235, 0236 etc etc...
    I use say 10 templates depending on what number im doing.
    So next cell to the codes (in excel) I list what template I would need.
    Now I know in dreamweaver I can search for "0234" in my html & replace to create my new html. But I have 1000's to do, and I am sure I am doing it a long way manually.
    Is it possible to use the excel sheet and dreamweaver together to process all these changes in a scripted batch system? and even load which html to use?
    Or maybe use a different software?
    Any advice would be much appreciated.
    Kind Regards

    The closest to this I have done was in using Photoshop and text files to create hundreds of photoshop designed banners that all had different copy/type on them but based on a template and, the same idea but with pharmacy magnets using InDesign and Excel.
    The idea is that you put text boxes in the document and specify a variable for them and then equate those boxes either to variables in a text file or to column headers in an Excel file.
    Google on "Data Merging" and perhaps you'll find something.
    I'm not aware of a way to do this with html documents but if you approach the html as just a text file, then conceptually, you should be able to create a template whereby you assign a variable to certain divs or input boxes or whatever. Then, you might have to re-process the entire lot to remove the code needed to distinguish a field as dynamic but that would easier to remove.
    I'll watch this post as well because massive replacements are always something to know about!

  • Need help with font and bug with properties inspector bug

    Hey guys,
         I recentely bought a account at dreamtemplate and i'm working on creating my first website, ive got the basic down but whenever i want to change the font of one character in a word( lets say the k in kind to a different font) it switched the entire word or sentence to that font. ive contacted dreamtemplate about it and this is the solution they gave me but i dont understand it:
    To change the font, you need to put the TrueType font files of edwardian and Kunstler in the font file of the template folder.
    You may change the font of one character in a word as below.
    For example:
    In the HTML file,
    <h2 class="title"><span class="newfont">l</span>atest </span> <span >projects</span></h2>
    In the CSS file,
    @font-face {
    font-family: 'Kunstler';
    src: url('/fonts/Kunstler/Kunstler Script.eot');
    src: url('/fonts/Kunstler/ds-digi-webfonteot?#iefix') format('embedded-opentype'), url('/fonts/Kunstler/Script.woff') format('woff'), url('/fonts/Kunstler/Kunstler Script.ttf') format('truetype'), url('/fonts/Kunstler/Kunstler Script.svg#ds-digi-webfont') format('svg');
    .newfont{font-family: 'Kunstler'!important;}
    Feel free to contact us if you need any further assistance.
    if anyone can shed some light and knowledge on how to apply it that would be amazing.
    Also another problem i've been experiencing is that whenever i edit something in an html file (index.html) and save it and view it none of the changes show up besides the change in words(ie. no font change, no size change) but pictures are fine.
    Now my last which has bothered me a lot latly is an issue with my propertie inspector box, It works fine with an html file but whenever i try to edit a .js file it either goes blank or is greyed out, i've searched for solutions and have made sure im not in live mode, but no luck, i even reinstalled DW, still no luck. I need to edit a menu bar that is a .js and i cant do it with this issue. if anyone needs further info let me know.
    thanks in advance

    Before you get any deeper with this, you really need to learn all you can about HTML code and it's relationship with CSS.  Otherwise you will be forever confused, frustrated and incapable of understanding the answers we give you.
    HTML, CSS  Tutorials -
    http://w3schools.com/
    http://www.csstutorial.net/
    http://phrogz.net/css/HowToDevelopWithCSS.html
    When you have a firm grasp of the fundamentals, spend a few hours doing this 5-part tutorial on how to use DW.  It's time well spent.
    http://www.adobe.com/devnet/dreamweaver/articles/first_website_pt1.html
    Incidentally, you cannot edit JavaScript with the HTML properties inspector.   To edit JavaScript, switch to Code View.
    Nancy O.

  • Day one of my new MacBook Pro & I desparately need help with calendar and email

    It's day one of my new relationship with a Mac, and I need help! I'd like to use microsoft exchange to sync my calendars to iCal &amp; my emails the way I currently do with my iPhone 4 and iPad 2. The problem is that all I get are error messages. They either say that communication with the server cannot be established or communication to ports 80 &amp; 440 cannot be established. One account I'd an ssl and the others are gmail. Please advise!

    anyone? please? i would appreciate any information.

  • Need help with GetStringUTFChars and JAB

    Please help,
    I want to use the JNI function GetStringUTFChars with JAB (Java Access Bridge), without having to call JNI_CreateJavaVM as no matter what I do, JNI_CreateJavaVM fails. I have JAB successfully loaded, and I have used GetAccesibleFromHWND to get a valid jobect. Is there any way I can go from the jobect to use GetStringUTFChars?
    If not, is the source code availabe for GetStringUTFChars? OR is there an Windows/C++ equivalent available?

    RPhilbrook12, you've reached the right place for information regarding how to suspend your line while you're deployed. Are you being deployed for military purposes? If you have received military orders to relocate for 90 days or more to an area where Verizon Wireless doesn’t provide coverage and you need to suspend your service, you can contact us at 800-922-0204. You will need to be  prepared to provide information from your orders, including where you’ll be stationed and the name and rank of your Commanding Officer. Please be advised that your service can be suspended for up to 3 years for military deployment.
    For more details regarding your options to suspend services, click http://vz.to/1lfmyUI
    LasinaH_VZW
    Follow us on Twitter @VZWSupport
    If my response answered your question please click the "Correct Answer" button under my response. This ensures others can benefit from our conversation. Thanks in advance for your help with this!!

Maybe you are looking for

  • ITunes won't open after OS X reinstall..  Help!

    I am selling my MacBook (upgraded to a MB Pro), so I wiped it and reinstalled OS X 10.5.8.  I did all the software updates, and then tested a couple applications.  When I tried to open iTunes, a message pops up that says: "iTunes requires QuickTime 7

  • Xslt transform problem on Sun AS 8PE

    Hi, I have following xslt: <xsl:call-template name="CustomerFilter"> <xsl:with-param name="custFilterPath" select="CustomerFilter"/> </xsl:call-template> <xsl:template name="CustomerFilter">      <xsl:param name="custFilterPath"/>      <xsl:text>Cust

  • Frustrated...can't get headphones to w

    3 months ago I built my first computer from scratch. Wasn't sure I could do it, but was very happy to see the computer work perfectly, well almost. I have SB audigy II ZS sound card. Have plantronics headphones/mike along with plantronics speaker/hea

  • Try block problem !

    Hi all, I have problem to compile java program which has a large block of try {} This is the error message C:\Program Files\crt_table.java:3011: code too large for try statement catch (Exception e) ^ anyone has solution to this type of problem ? Than

  • Iframe and pl/sql

    I want to know if it is possible to have my portlet contents display in an iframe in order to implement a scrollbar, but all my portlets are pl/sql packages. Will this be possible?