Need help with JFormattedTextField and DocumentListener

I can't get my JTextField to work with my DocumentListener. I'm very new to Java so the solution might be quite simple. Any help is very appreciated!
Here is my complete code:
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.text.*;
import javax.swing.event.*;
import javax.swing.JFormattedTextField.AbstractFormatter;
import java.text.*;
public class Test extends JFrame {
private JFormattedTextField eingabeFeld;
private JFormattedTextField ausgabeFeld;
private String eingabe;
private String ausgabe;
public Test() {
     super("DocumentListener-Test");
     NumberFormatter textFormatter = new NumberFormatter(new DecimalFormat("###,##0.0#"));
     textFormatter.setCommitsOnValidEdit(true);
     textFormatter.setAllowsInvalid(false);
     DefaultFormatterFactory fmtFactory = new DefaultFormatterFactory(textFormatter);
     EingabeListener eingabeListener = new EingabeListener();
     JFormattedTextField eingabeFeld = new JFormattedTextField();
     eingabeFeld.getDocument().addDocumentListener(eingabeListener);
     eingabeFeld.getDocument().putProperty("name", "EingabeFeld");
     eingabeFeld.setFormatterFactory(fmtFactory);
     AbstractFormatter formatter = eingabeFeld.getFormatter();
     JFormattedTextField ausgabeFeld = new JFormattedTextField();
     ausgabeFeld.setEditable(false);
     // this is not needed!
     //ausgabeFeld.getDocument().addDocumentListener(eingabeListener);
     //ausgabeFeld.getDocument().putProperty("name", "AusgabeFeld");
     //ausgabeFeld.setText("1");
     JPanel contentPane = new JPanel();
     GridBagLayout gridbag = new GridBagLayout();
     GridBagConstraints c = new GridBagConstraints();
     contentPane.setLayout(gridbag);
     c.gridx = 0;
     c.gridy = 0;
     c.ipadx = 200;
     gridbag.setConstraints(eingabeFeld, c);
     contentPane.add(eingabeFeld);
     c.gridx = 0;
     c.gridy = 1;
     c.ipadx = 200;
     gridbag.setConstraints(ausgabeFeld, c);
     contentPane.add(ausgabeFeld);
     setContentPane(contentPane);
class EingabeListener implements DocumentListener {
     public void insertUpdate(DocumentEvent e) {
          Calculate(e);
     public void removeUpdate(DocumentEvent e) {
          Calculate(e);
     public void changedUpdate(DocumentEvent e) {
     private void Calculate(DocumentEvent e) {
          // this does not work!
          //eingabe = eingabeFeld.getText();
          //double wert = Double.parseDouble(eingabe);
          //wert = wert/2;
          //ausgabe = Double.toString(wert);
          //ausgabeFeld.setText(eingabe);
public static void main(String[] args) {
     final Test frame = new Test();
     frame.addWindowListener(new WindowAdapter() {
          public void windowClosing(WindowEvent e) {
               System.exit(0);
     frame.pack();
     frame.setVisible(true);
}

Thanks that worked! Now I changed
JFormattedTextField ausgabeFeld = new JFormattedTextField(); to
ausgabeFeld = new JFormattedTextField(); as well.
I changed eingabe, ausgabe from String to Object and .getText and .setText into .getValue and .setValue. I also added ausgabeFeld.setFormatterFactory(fmtFactory);
AbstractFormatter formatteraus = ausgabeFeld.getFormatter();
But now I have the probelm, that I don't know how to parse the eingabe Object into a double and back to be able to calculate with it.
And another problem is, that the ausgabeFeld get's only updated and the eingabeFeld formatted if the eingabeFeld loses focus.
I hope anybody can help me with these problems now! Thanks in advance.

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

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

  • 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                                                                                                                                                                                                                                                                                                                                                                   

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

  • 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

  • Hey guys i need help with facetime and i am ready to blow up!

    I got some many ppl telling me that i have to pay for facetime! My dad got iphone 4 and we live in canada (calgary) My brother lives in Australia and i have mac! Is facetime free to talk to him! Telus is telling us that it will cost my dad 2 dollars a min then Rogers is telling us it is free! I need help cause if both have wifi it should be free! We want to know! Please let me know! thanks! I am ready to blow up here LOL!

    All FaceTime calls are over WiFi, thus they are "free", unless you're using a WiFi hotspot that charges for its use.

  • Need help with backup and clean install

    Need Assistance with G5
    Background
    I'm an inexperienced Mac user with a G5, twin 2.0 gig processors and 1.5
    gig ram. The OS is v10.3.6. It is the latest OS that will not slow down
    internet (Safari/Mail) applications. Anything newer has really slowed internet applications down big time.
    Current Problem
    I've probably messed up my hard drive by switching back and forth
    (archive/install) from newer to present OS. I now have corrupted data and
    while my Mac is useable, several things do not work (disk utility, printing
    and possibly more). I have a mixture of new and older versions of
    these applications/utilities in my OS.
    Going Forward
    I believe I need to wipe out my hard drive and do a clean install. I also have a Mac mini which I can use (I believe) for backup via firewire.
    Backup
    Is everything I need to backup in the "User" folder? My spouse and I have
    separate accounts and a shared account on the same Mac, with a total of 8.5 gig of data, mostly photo's and music. We want to save that and the usual preferences and favorites/bookmarks/addresses/email, etc. It would be nice if all I had to do was drag the user folder into the target drive.
    I'd appreciate any assistance. I have more questions which I'll get to later, but I need to start somewhere.
    Thanks all
    Mac G5    

    Backing up your Users folder will save everything in all the accounts on the computer including pictures, music, preferences, etc. as long as they were kept in that folder.
    If you have File Vault turned on you should turn it off. The "correct" procedure for transferring to your Mac Mini is as follows:
    1. Turn both computers off. Connect them together with a Firewire cable.
    2. Boot the G5 into Target Disk Mode.
    3. Then boot the Mac Mini normally. The G5's hard drive should be present on the Mini's Desktop.
    4. Create a new folder on the Mini and name it something appropriate like G5 User Backup. Drag the Users folder on the G5 into this new folder on the Mini.
    After the transfer completes you should verify that everything has been transferred and is there in the folder.
    5. Drag the G5's hard drive icon from the Desktop to the Trash or CTRL-click on its icon and select Eject from the contextual menu.
    6. Shutdown the G5 and remove the Firewire cable connecting the two computers.
    You can now proceed to fix the G5. Because you are planning to erase the hard drive I would like to suggest you do an extended format to prep the hard drive properly for your restoration:
    1. Boot from your Panther Installer Disk. After the installer loads select Disk Utility from the Installer menu.
    2. After DU loads select your hard drive (this is the entry with the mfgr.'s ID and size) from the left side list. Click on the Partition tab in the DU main window.
    3. Set the number of partitions from the dropdown menu (use 1 partition unless you wish to make more.) Set the format type to Mac OS Extended (Journaled, if supported.) Click on the Partition button and wait until the volume(s) mount on the Desktop.
    4. Select the volume you just created (this is the sub-entry under the drive entry) from the left side list. Click on the Erase tab in the DU main window.
    5. Set the format type to Mac OS Extended (Journaled, if supported.) Click on the Options button, check the button for Zero Data and click on OK to return to the Erase window.
    6. Click on the Erase button. The format process will take 30 minutes to an hour or more depending upon the drive size.
    You can then quit Disk Utility and return to the installer. Now proceed to reinstall OS X. Be sure you set up your accounts with the exact same usernames and passwords as you used before.
    Once you have completed your reinstallation on the G5 you can restore your Users folder from the Mac Mini.
    1. Shut down both computers. Connect them with a Firewire cable.
    2. Boot the G5 into Target Disk Mode.
    3. Boot the Mac Mini normally. G5's hard drive should appear on the Mini's Desktop.
    4. Open a Finder window on the G5's hard drive and drag the Users folder to the Trash (don't delete yet.)
    5. Now copy the saved Users folder from the Mac Mini to the G5 (only the Users folder, not the folder in which you stored it.)
    6. Eject the G5's hard drive from the Mini's Desktop and shut down the G5.
    7. Disconnect the Firewire cable.
    Now restart the G5. If all worked well it should start up normally and you should find everything normal in your accounts.
    There is one potential problem in all the above. All your account preferences are contained in the Users folder. If you have any corrupted preferences, they will still be corrupted and may continue to cause problems. If that's the case you may need to trash the /Home/Library/Preferences/ folder's contents. Hopefully, this won't be the case, but you should be aware of the possibility.
    If eveything is working normally you can empty the Trash and delete the contents. Same on the Mac Mini.

  • Need help with buttons and fading clips

    howdy,
    I have 3 buttons on a stage that play 3 different movies.
    While no button is pressed, there is a looping video on the stage
    playing. When a button is pressed, that looping movie needs to fade
    out and fade in the movie that button calls for. I have attached
    script but it isn't working at all. Not sure where to go from here.
    thanks for your help.

    Hello again,
    Now I'm completely lost. Where should I add that code in your
    last post?
    thanks.

  • I am a rookie and need help with max and min values

    Hello all, i am into this intro to java class. my assignment is to write a program that prompts the user for two integers and then prints the sum, difference, average, product , distance (absolute value of the difference) Maximum(largest of the two) and Minimum(smallest fo the two) here is my code so far
    import java.io.BufferedReader;
    import java.io.IOException;
    import java.io.InputStreamReader;
    import java.lang.Math;
    public class Sample4
       public static void main(String[] args) throws IOException
          try // attempt the following
    {           // create the stream to read from
    InputStreamReader istream = new InputStreamReader(System.in);   // create a buffer to hold the stream
    BufferedReader console = new BufferedReader(istream);           // prompt the user
          System.out.println("Enter a number please");              // get input as a string
          String input = console.readLine();                        // convert to an integer
          int num1 = Integer.parseInt(input);
          System.out.println("Enter a number please");              // get input as a string
          String input2 = console.readLine();                       // convert to an integer
          int num2 = Integer.parseInt(input2);
          int sum = num1 + num2;                                    // get the sum of the two inputs
          int difference = num1 - num2;                             // get the difference of the two inputs
          int product = num1 * num2;                                // get the product of the two inputs
          int average = sum / 2;                                    // get the average of the two inputs
          int abs = Math.abs(difference);                           // get the absolute value of the two inputs
              // new section
                 // display the number
          System.out.println("The total sum = " + sum);
          System.out.println("The total difference = " + difference);
           System.out.println("The total product = " + product);
           System.out.println("The total average = " + average);
           System.out.println("The total absolute value = " + abs);
    } // if something breaks, catch the exception
    catch (IOException e)
       System.out.println(e); // displays the exception
       System.exit(1);  // quits the program
    }what will be the right syntax or code to find the MAX and MIN values of two numbers a User Inputs, hope someone can help with this. thank you for your help.

    Thanks alot man, sheesh i do not know why my book
    doesnt give me all the static methods. but i do really
    appreciate your help. peaceA complete list of the java.lang.Math methods can be found at http://java.sun.com/j2se/1.4/docs/api/java/lang/Math.html
    btw,
    max(a, b) == (a > b) ? a : b
    min(a, b) == (a < b) ? a : b

  • Need help with iphoto and dragging to external hard drive

    Hello,
    I have my iphoto very organized into Events and I recently just moved them to be in folders.  I would like to have only certain Events (or folders/albums) on the external hard drive.  The apple store rep said to go to Finder, Pictures, Iphoto, then right click to "Show Package Contents."  Then go to either "original" or "modified." From there I can drag into the hard drive.  However, I'm very confused because the "modified" or "original" are not organized at all by folders or events.  There are dates only.  What can I do to find, drag the events (each are named)?  Please help!
    Katie

    1. Ignore the Apple store rep.
    2. You need to clarify:
    I have my iphoto very organized into Events and I recently just moved them to be in folders
    Moved them to be where in folder? In iPhoto? In the FInder?
    I would like to have only certain Events (or folders/albums) on the external hard drive.
    In an iPhoto Library? Or in the Finder?
    Do not access the Library via the Finder or any other app. You risk damaging your Library and you will lose data.
    If you want to have some Events/Albums on an External Disk within iPhoto:
    Make sure the drive is formatted Mac OS Extended (Journaled)
    1. Quit iPhoto
    2. Copy the iPhoto Library from your Pictures Folder to the External Disk.
    Now you have two full versions of the Library.
    3. On the Internal library, trash the Events you don't want there
    Now you have a full copy of the Library on the External and a smaller subset on the Internal
    Some Notes:
    As a general rule: when deleting photos do them in batches of about 100 at a time. iPhoto can baulk at trashing large numbers at one go.
    You can choose which Library to open: Hold down the option (or alt) key key and launch iPhoto. From the resulting menu select 'Choose Library'
    You can keep the Library on the external updated with new imports using iPhoto Library Manager
    If you want to have them in Folders in the Finder
    Use the FIle > Export command to get photos out of iPhoto.
    This User Tip
    https://discussions.apple.com/docs/DOC-4921
    has details of the options in the Export dialogue.

Maybe you are looking for

  • Ipad mini calender and reminder problem

    i am currently using IPad mini, why my calender and reminder cannot add new items ?

  • Pages, monitor colors don't match printed colors

    Hey Everyone, I'm new to this mac world, and boy do I feel like a newbie. I'm trying to use Pages to print some nice brochures. I have a Savin commercial color Laser CLP27DN, 1200 dpi When I print the default color templates from Pages, It prints col

  • Help with choosing the correct adapter

    Hi, could anyone help please. I have a 20inch Cinema display that I would like to connect to an imac at work. Am i correct in thinking that all I need is the mini DVI to DVI adapter. I'm a little confused. Thanks John

  • IPhoto freezes when using Crop

    When I am editting photos and I use the Criop tool, Iphoto freezed the whole sysyen. This happens whether ZI use the Crop tool as the first step in editting or do other edits first then go to Crop.

  • Is there a way to access the date in the XI message header

    Hello, Is there a way to access the date in the XI message header i.e. the date on which XI has received a particular message. Regards, Sylvester