Help!  GUI using two buttons

Hello all:
I have created a class for reading and writing to a text file on my hard drive. Also, I have created another class for a GUI to use for opening the text file with a button labeled Display. As you will see in the code below, I have created another button labeled Update. I seek to be able to edit and save the text directly in the text area with the Update button after opening the file with the Display button. Any help would be greatly appreciated. Thanks!
/** Class TextFile */
import java.io.*;
public class TextFile
    public String read(String fileIn) throws IOException
        FileReader fr = new FileReader(fileIn);
        BufferedReader br = new BufferedReader(fr);
        String line;
        StringBuffer text = new StringBuffer();
        while((line = br.readLine()) != null)
          text.append(line+'\n');
        return text.toString();
    } //end read()
    public void write(String fileOut, String text, boolean append)
        throws IOException
        File file = new File(fileOut);
        FileWriter fw = new FileWriter(file, append);
        PrintWriter pw = new PrintWriter(fw);
        pw.println(text);
        fw.close();
    } // end write()
} // end class TextFile
/** Class TextFileGUI */
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
public class TextFileGUI implements ActionListener
    TextFile tf = new TextFile();
    JTextField filenameField = new JTextField (30);
    JTextArea fileTextArea = new JTextArea (10, 30);
    JButton displayButton = new JButton ("Display");
    JButton updateButton = new JButton ("Update");
    JPanel panel = new JPanel();
    JFrame frame = new JFrame("Text File GUI");
    public TextFileGUI()
        panel.add(new JLabel("Filename"));
        panel.add(filenameField);
        panel.add(fileTextArea);
        fileTextArea.setLineWrap(true);
        panel.add(displayButton);
        displayButton.addActionListener(this);
        panel.add(updateButton);
        updateButton.addActionListener(this);
        frame.setContentPane(panel);
        frame.setSize(400,400);
        frame.setVisible(true);
    } //end TextFileGUI()
    public void actionPerformed(ActionEvent e)
        String t;
        try
            t = tf.read(filenameField.getText());
            fileTextArea.setText(t);
        catch(Exception ex)
            fileTextArea.setText("Exception: "+ex);
        } //end try-catch
    } //end actionPerformed()
} //end TextFileGUI

Swing related questions should be posted in the Swing forum.
You are using the same ActionListener for both buttons, so you need to be able to tell which button was pressed. There are a couple of ways to do this:
a) use the getSource() method of the ActionEvent and compare the source against your two buttons to see which one was pressed and then invoke the appropriate code.
Object source = e.getSource();
if (source == displayButton)
    //  do display processing
else if (source == updateButton)
    //  do update processingb) Check the action command to determine which button was clicked. This approach is demonstrated in the Swing tutorial on [url http://java.sun.com/docs/books/tutorial/uiswing/components/button.html]How to Use Buttons
Another option is to create separate ActionListeners for each button so there is no confusion
import java.awt.*;
import java.awt.event.*;
import java.io.*;
import javax.swing.*;
class TextAreaLoad
     public static void main(String a[])
          final JTextArea edit = new JTextArea(5, 40);
          JButton read = new JButton("Read some.txt");
          read.addActionListener( new ActionListener()
               public void actionPerformed(ActionEvent e)
                    try
                         FileReader reader = new FileReader( "some.txt" );
                         BufferedReader br = new BufferedReader(reader);
                         edit.read( br, null );
                         edit.requestFocus();
                    catch(Exception e2) { System.out.println(e2); }
          JButton write = new JButton("Write some.txt");
          write.addActionListener( new ActionListener()
               public void actionPerformed(ActionEvent e)
                    try
                         FileWriter writer = new FileWriter( "some.txt" );
                         BufferedWriter bw = new BufferedWriter( writer );
                         edit.write( bw );
                         edit.setText("");
                         edit.requestFocus();
                    catch(Exception e2) {}
          JFrame frame = new JFrame("TextArea Load");
          frame.getContentPane().add( new JScrollPane(edit), BorderLayout.NORTH );
          frame.getContentPane().add(read, BorderLayout.WEST);
          frame.getContentPane().add(write, BorderLayout.EAST);
          frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
          frame.pack();
          frame.setLocationRelativeTo( null );
          frame.setVisible(true);
}

Similar Messages

  • How to move node in treeView using two buttons ?

    Hello ,
    Am starter , and am working on a Winforms application.
    I browse an XML file , then I populate treeview in my interface. I want to move selected node in the two sens ( up and down)  using two button ( so not with events , normal drag and drop with mouse ) .
    - I select the nod 
    - I click on the up button , then the node take the new place ( something like , drop and insert maybe )
    I don't know if is possible to affect this events to button or they are another way to do this 
    this is my code concerning populating treeView :
    private void browseSourceFileBtn_Click(object sender, EventArgs e)
    var openSourceFile = openSourceFileDialog.ShowDialog();
    if (openSourceFile == DialogResult.OK)
    fichierSourcePath.Text = openSourceFileDialog.FileName;
    // Connect the XML FILE DATABASE to the application interface
    private void button1_Click(object sender, EventArgs e)
    if (openSourceFileDialog.FileName == String.Empty)
    MessageBox.Show("u should open a file", "Erreur de chargement", MessageBoxButtons.OK, MessageBoxIcon.Error);
    else
    try
    MessageBox.Show("plz wait ");
    statusLabel.Text = "Début de chargement du fichier";
    var doc = new XmlDocument();
    doc.Load(openSourceFileDialog.FileName);
    sourceTreeView.Nodes.Clear();
    var rootNode = new TreeNode(doc.DocumentElement.Name);
    sourceTreeView.Nodes.Add(rootNode);
    sourceTreeView.CheckBoxes = true;
    sourceTreeView.AllowDrop = true;
    DateTime starteTime = DateTime.Now;
    BuildNode(doc.DocumentElement, rootNode);
    DateTime endTime = DateTime.Now;
    TimeSpan duree = endTime - starteTime;
    sourceTreeView.ExpandAll();
    sourceTreeView.Nodes[0].EnsureVisible();
    string chargementTemps = "" + duree.Minutes + "min : " + duree.Seconds + "s : " + duree.Milliseconds + "ms";
    statusLabel.Text = "Chargement effectué avec succés en :" + chargementTemps;
    catch (Exception)
    sourceTreeView.Nodes.Clear();
    statusLabel.Text = "Echec de chargement";
    thanks u a lot 

    Hi Nico68er,
    According to your description, you'd like to move up or down the node in TreeView.
    By reseraching, I found this post in StackOverFlow is similar with your issue.http://stackoverflow.com/questions/2203975/move-node-in-tree-up-or-down
    From this answer.
    You can use the following extensions
    public static class Extensions
    public static void MoveUp(this TreeNode node)
    TreeNode parent = node.Parent;
    TreeView view = node.TreeView;
    if (parent != null)
    int index = parent.Nodes.IndexOf(node);
    if (index > 0)
    parent.Nodes.RemoveAt(index);
    parent.Nodes.Insert(index - 1, node);
    else if (node.TreeView.Nodes.Contains(node)) //root node
    int index = view.Nodes.IndexOf(node);
    if (index > 0)
    view.Nodes.RemoveAt(index);
    view.Nodes.Insert(index - 1, node);
    public static void MoveDown(this TreeNode node)
    TreeNode parent = node.Parent;
    TreeView view = node.TreeView;
    if (parent != null)
    int index = parent.Nodes.IndexOf(node);
    if (index < parent.Nodes.Count -1)
    parent.Nodes.RemoveAt(index);
    parent.Nodes.Insert(index + 1, node);
    else if (view != null && view.Nodes.Contains(node)) //root node
    int index = view.Nodes.IndexOf(node);
    if (index < view.Nodes.Count - 1)
    view.Nodes.RemoveAt(index);
    view.Nodes.Insert(index + 1, node);
    Child nodes will follow their parents.
    You could use this class in your program.
    If you want to move the node up. Call the Extensions.MoveUp(this.treeView1.SelectNode)
    private void button1_Click(object sender, EventArgs e)
                if (this.treeView1.SelectedNode != null)
                    Extensions.MoveUp(this.treeView1.SelectedNode);
    If you have any other concern regarding this issue, please feel free to let me know.
    Best regards,
    Youjun Tang
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Help with using two computers for iPod

    So, as the title hints to, I use two different computers for my day to day activities and have now run into a big hiccup.
    -I have, currently on my iPod about 475 songs. All were painstakingly loaded from their CD's onto the little devil. I did this at work in spare time (OK maybe not, but that's not wehat we're here about)
    -Today I tried connecting to load some new songs, from my home machine, onto the iPod and it says it will erase all of my previous work.
    -I did some browsing here and discovered things like Pod Soft or whatever but could none of those programs to work for me. I also attempted the shift/ctrl trick which failed as well.
    -Am I hooped? Do I just face facts and use only one machine for this? What happens when I trade a computer? Actually, in the meantime I am not worried about that, I just want my new tunes on the iPod. I am feeling quite limited by this and understood it would be a much easier process.
    Thanks for looking in on this and any advice given.

    This might also be of interest:
    Managing Songs Manually
    I hope this helps!

  • Is it possible to use two buttons on a master page to link to consecutive pages i.e. previous or next

    The easiest way to explain what I am attempting to achieve is to create a navigation template on the master page, with two identical arrows, one pinned to the left side, and one to the right, along with a basic 3 button navigation for; home - table of contents - end for example.
    The idea behind the arrows is that if on my "Plan" tab in Muse, I have all pages within the site in consecutive order from left to right and everytime I change the image that represents the previous or next, I have to go through every page, delete the source image, add the source image to every page (50+ pages) and then link each page individually to the next page in the order.
    Any help would be greatly appreciated.
    Jeff

    I produce a 300-page magazine twice a year that uses next/previous links. Unfortunately master items can't be edited on individual pages. My solution is to edit the HTML after the export. Too bad overrides don't work as they do in InDesign.
    In Muse you could create the arrows on an editable page, then copy/paste-in-place on the rest of the pages and edit the links on each page. Isolate them on a separate locked layer above the regular page content so they don't get moved accidentally.
    Julie

  • Help with using same buttons on timeline

    This is really basic,
    I've got 3 buttons on the main timeline, which is 25 frames. All my actions are on frame 14.
    Three buttons work on frame 15. But these same 3 buttons stop working on frame 17  - why?
    Please visit link below:
    http://www.simplecelebrations.info

    If your code is on frame 14 and your buttons are on frame 15, those buttons can't work unless they were on frame 14 first.  If you place new instances of these buttons on frame 17 but do not assign code for them, they will not work.  When you assign code to objects, such as buttons, they need to be present when that code executes.  So if you execute that code in frame 14, and the buttons are in frame 17, they are not present when that code executes so they cannot work.
    What you may find easier to deal with might be to have the buttons span the timeline where they are needed, meaning they have a keyframe at frame 14 where they get coded, and that extends as far down the timeline as you know those buttons need to be accessible.  You do not create new keyframes of them.  Then, if you need to hide the buttons for any reason, then you hide them by setting their visible property to be false. And if you need to display them again, you set it to true.
    There is not issue with having different buttons command the same thing, but if you are going to do that, then the different buttons should share the same function.  When I want to share a function or other code, such as variables, I always create a layer that I dedicate to the entire timeline.  It extends from frame 1 thru the last frame of the timeline.  All code on this layer is in frame 1. Any code on this layer is then accessible by anything along the timeline.  Then, as needed, I will have another actions layer that deals with frame level actions.
    So what I would do in your case, if you want to use different instances of the same buttons, would be to have the shared layer hold my event handler functions.  Then in my frame level actions layer I would have keyframes where I have the buttons and assign my event listners in those frames.  So if I had identical buttons in frames 15 and 17, but they were different instances, then in frame 15 I would have the same event listener assignments as I do in frame 17.  These listeners would be calling on the same functions that I have in that shared actionscript layer.
    // frame 15 code of frame level actions layer
    stop();
    btn1.addEventListener(MouseEvent.CLICK,go15);
    btn2.addEventListener(MouseEvent.CLICK,go18);
    btn3.addEventListener(MouseEvent.CLICK,go19);
    btn4.addEventListener(MouseEvent.CLICK,go20);
    btnb.addEventListener(MouseEvent.CLICK,go15);
    btnc.addEventListener(MouseEvent.CLICK,go17);
    // frame 17 code of frame level actions layer
    stop();
    btn1.addEventListener(MouseEvent.CLICK,go15);
    btn2.addEventListener(MouseEvent.CLICK,go18);
    btn3.addEventListener(MouseEvent.CLICK,go19);
    btn4.addEventListener(MouseEvent.CLICK,go20);
    btnb.addEventListener(MouseEvent.CLICK,go15);
    btnc.addEventListener(MouseEvent.CLICK,go17);
    frame 1 of shared actionscript layer...
    function go15(e:MouseEvent):void
    gotoAndStop(15);
    function go18(e:MouseEvent):void
    gotoAndStop(18);
    function go19(e:MouseEvent):void
    gotoAndStop (19);
    function go20(e:MouseEvent):void
    gotoAndStop (20);
    function go17(e:MouseEvent):void
    gotoAndStop (17);

  • Using two Button classes for single Button control MFC

    Hi,
    Here is my problem:
    I have a VC++ MFC dialog based application. There I am adding a Button to my dialog by just drag and drop from the tool box.
    I am also having a MyCustomButton.dll to give new looks to the button.
    Inside MyCustomButton.dll, MyCustomButton.cpp is the button class which is derived from CButton. 
    Now I want the behavior of my application in such a way at execution of my application, like if the  MyCustomButton.dll is present in system then the button of my dialog should look like as per implementation of MyCustomButton.dll, where as if the dll
    is not present normal MFC button should get displayed.
    Please guide me in achieving this. How can I make my application (*.exe) decide at run time.
    Thanks in Advance,
    Thanks & Regards, Mayank Agarwal

    Thanks Rupesh,
    But my requirement is like that only I have to decide at run time.
    Please look the scenario below:
    //  MyDialogDlg.h //
    #include "MyCustomButton.h"
    class MyDialogDlg
    MyCustomButton m_CalcButton;
    In the above piece of code
    m_CalcButton is object of  MyCustomButton class.
    and my requirement is such that if MyCustomButton
    .dll is not present then,  m_CalcButton should executed as the object of CButton class of MFC.
    There are cases where I  cant ship the dll.
    In such case how should I write the code? Please guide.
    Thanks in Advance.  
    Thanks & Regards, Mayank Agarwal

  • Help!  Using GUI button to update text file

    Desperately needing help on the following:
    As you will see, I have created two classes - one for reading and writing to a text file on my hard drive, and one for the GUI with two buttons - Display and Update. The Display button works perfectly in that it displays text from a file path. The Update button, however, does not work correctly. I seek for the Update button to update any edits to the same exact text file I view using the Display button.
    Any help would be greatly appreciated. Thanks!
    Class TextFile
    import java.io.*;
    public class TextFile
        public String read(String fileIn) throws IOException
            FileReader fr = new FileReader(fileIn);
            BufferedReader br = new BufferedReader(fr);
            String line;
            StringBuffer text = new StringBuffer();
            while((line = br.readLine()) != null)
              text.append(line+'\n');
            return text.toString();
        } //end read()
        public void write(String fileOut, String text, boolean append)
            throws IOException
            File file = new File(fileOut);
            FileWriter fw = new FileWriter(file, append);
            PrintWriter pw = new PrintWriter(fw);
            pw.println(text);
            fw.close();
        } // end write()
    } // end class TextFileClass TextFileGUI
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.io.*;
    public class TextFileGUI implements ActionListener
        TextFile tf = new TextFile();
        JTextField filenameField = new JTextField (30);
        JTextArea fileTextArea = new JTextArea (10, 30);
        JButton displayButton = new JButton ("Display");
        JButton updateButton = new JButton ("Update");
        JPanel panel = new JPanel();
        JFrame frame = new JFrame("Text File GUI");
        public TextFileGUI()
            panel.add(new JLabel("Filename"));
            panel.add(filenameField);
            panel.add(fileTextArea);
            fileTextArea.setLineWrap(true);
            panel.add(displayButton);
            displayButton.addActionListener(this);
            panel.add(updateButton);
            updateButton.addActionListener(this);
            frame.setContentPane(panel);
            frame.setSize(400,400);
            frame.setVisible(true);
        } //end TextFileGUI()
        public void actionPerformed(ActionEvent e)
            if(e.getSource() == displayButton)
                String t;
                try
                    t = tf.read(filenameField.getText());
                    fileTextArea.setText(t);
                catch(Exception ex)
                    fileTextArea.setText("Exception: "+ex);
                } //end try-catch
            } //end if
            else if(e.getSource() == updateButton)
                try
                  tf.write(filenameField.getText());
                catch(IOException ex)
                    fileTextArea.setText("Exception: "+ex);
                } //end try-catch
            } //end else if
         } //end actionPerformed()
    } //end TextFileGUI

    Here's your working example.
    In my opinion u do not have to append \n when u reading the file
    Look the source, if u have some problem, please, ask me.
    Regards
    public class TextFileGUI implements ActionListener
    TextFile tf = new TextFile();
    JTextField filenameField = new JTextField(30);
    JScrollPane scrollPane = new JScrollPane();
    JTextArea fileTextArea = new JTextArea();
    JButton displayButton = new JButton("Display");
    JButton updateButton = new JButton("Update");
    JPanel panel = new JPanel();
    JFrame frame = new JFrame("Text File GUI");
    public static void main(String args[])
    new TextFileGUI();
    public TextFileGUI()
    panel.setLayout(new BorderLayout());
    JPanel vName = new JPanel();
    vName.setLayout(new BorderLayout());
    vName.add(new JLabel("Filename"), BorderLayout.WEST);
    vName.add(filenameField, BorderLayout.CENTER);
    panel.add(vName, BorderLayout.NORTH);
    scrollPane.setViewportView(fileTextArea);
    panel.add(scrollPane, BorderLayout.CENTER);
    fileTextArea.setLineWrap(true);
    JPanel vBtn = new JPanel();
    vBtn.setLayout(new FlowLayout());
    vBtn.add(displayButton);
    displayButton.addActionListener(this);
    vBtn.add(updateButton);
    updateButton.addActionListener(this);
    panel.add(vBtn, BorderLayout.SOUTH);
    frame.setContentPane(panel);
    frame.setSize(400, 400);
    frame.setVisible(true);
    } // end TextFileGUI()
    public void actionPerformed(ActionEvent e)
    if (e.getSource() == displayButton)
    String t;
    try
    t = tf.read(filenameField.getText());
    fileTextArea.setText(t);
    catch (Exception ex)
    ex.printStackTrace();
    else if (e.getSource() == updateButton)
    try
    tf.write(filenameField.getText(), fileTextArea.getText(), false);
    catch (IOException ex)
    ex.printStackTrace();
    } // end try-catch
    } // end else if
    } // end actionPerformed()
    } // end TextFileGUI
    class TextFile
    public String read(String fileIn) throws IOException
    String line;
    StringBuffer text = new StringBuffer();
    FileInputStream vFis = new FileInputStream(fileIn);
    byte[] vByte = new byte[1024];
    int vPos = -1;
    while ((vPos = vFis.read(vByte)) > 0)
    text.append(new String(vByte, 0, vPos));
    vFis.close();
    return text.toString();
    } // end read()
    public void write(String fileOut, String text, boolean append) throws IOException
    File file = new File(fileOut);
    FileWriter fw = new FileWriter(file, append);
    PrintWriter pw = new PrintWriter(fw);
    pw.println(text);
    fw.close();
    } // end write()
    } // end class TextFile

  • Two buttons in same jsp page

    hello to java people
    My ? is, jsp page named as login.jsp, In this page i want to use two buttons.
    If i click on one buton it will goto sucess.jsp and for another button it will go to find.jsp.
    i.e, two actions in same page, is it possible ?
    help me by giving sample code.
    thanks

    thanks balu for ur answer.
    pure java ?
    But my doubt is see we take one form
    <form action="sucess.jsp">
    <input text...>
    <input text...>
    <input type=submit name=sucess>
    <input type=submit name=find>
    </form>
    means whether i take two buttons as submit and names r diff..
    but at top only one action is there .
    how can they know to which page it has to go?
    do u understand my ?
    can u please give some sample code so that i can understand
    thanks

  • I cant use the buttons on my nano ipod. I take it off lock but I still can not do anyhting with it! The only way I can play a song is if I shake it and it goes on shuffle. Please help!

    A month or two ago my ipod nano fell and now i can not use the buttons on my ipod! Please help! I love this ipod nad I dont want to get a new one!

    First thing to try is a reboot of your device. Press and hold the Home and Sleep buttons simultaneously ignoring the red slider until the Apple logo appears. Let go of the buttons and let the device restart. See if that fixes your problem.
    This fixes many little annoyances like this. Hope it works for you.

  • Using MoviePlayer sample with two buttons and two movies

    I am using the MoviePlayer template and would like to have two buttons on the screen and play two different movies. I can't seem to figure it out as to how I would do this. I have created the two buttons in interface builder but can't figure out the routine in the myViewController.m page to code it. I am thinking I need to create a variable for the movie path that fits into the -(IBAction)playMovie1:(id)sender and (IBAction)playMovie2:(id)sender sections. Please HELP if you have suggestions. I am stumped and can't find anything on this!
    Thanks,
    Frank

    Are you trying to acquire from one camera at a time or switch between the two cameras in the same acquisition?
    If you simply want to use channel 1 instead of the default channel zero, then just add a constant to the IMAQ Configure Buffer VI in the LL Triggered Snap example to specify channel 1.
    If you want to alternate between the two cameras, then you could start with the LL Ring Scan Channels example. Add a Configure Trigger VI between the Configure Buffer loop and the Start and specify "Trigger Each Buffer". By default the example will set up an acquisition on all 4 channels, however you can change this to use only 2.
    The board does not support using different triggers for different channels.
    Regards,
    Brent R.
    Applications Engineer
    National Instrument
    s

  • My iPad suddenly started to show crazy colors.  I turned it off and had to use the two button trick to turn it back on.  Now it shows only green stripes for a few seconds and goes back to sleep.

    My iPad suddenly started to show crazy colors.  I turned it off.  It would not reboot until I used the two-button reboot.  Now it shows only green stripes.  only for a few seconds and goes back to sleep.  HELP!

    Standard troubleshooting...
    1. Try a Restart by pressing the sleep/lock button until you see the slider.  Slide to power off.  Restart by pressing the sleep/lock button until you see the Apple logo.
    2. Try a Reset by pressing the home and sleep buttons until you see the Apple logo, ignoring the slider if, it comes up. Takes about 5-15 secs of button holding and you won't lose any data or settings.
    3. Remove all apps from Recently Used list...
    - From any Home Screen, double tap the home button to bring up the Recents List
    - Tap and hold any icon in this list until they wiggle
    - Press the red to delete all apps from this list.
    - Press the home button twice when done.
    4. If still a problem restore with your backup.
    5. If still a problem restore as new, i.e. without your backup. See how it runs with nothing synced to it.
    6. If still a problem, it's likely a hardware issue.

  • I use a two button mouse with my Mac Book Pro.  It works fine, but after installing Lion, the mouse wheel goes in reverse of what it did (rolling the wheel towards your palm goes up not down the page).  Anyone know how to fix this?

    I use a two button mouse with my Mac Book Pro.  It works fine, but after installing Lion, the mouse wheel goes in reverse of what it did (rolling the wheel towards your palm goes up not down the page).  Anyone know how to fix this?

    First sentence in OPs question:
    I use a two button mouse with my Mac Book Pro
    I guess the track pad settings would look similar to my screen shot?
    Regards,
    Colin R.

  • Need help using flash buttons

    Can anyone help me with flash buttons? I am trying to build
    my first website, and my five flash buttons (inside a 5 col. table)
    for page navigation work fine in testing all 5 web pages with
    mozilla firefox, and they look the same on the index page when
    testing with IE-7. However when I begin navigating to other pages
    in IE-7, the flash buttons disappear, and the 5 cols in the table
    where each flash button was placed now are not equal sizes anymore
    like they are on the index page. In my files area on the right, I
    notice 3 out of the five buttons I created have about 15 to 20
    "generations" shown there, with numbers 1 through 15 or even more
    to qualify them tacked on to the end of the names. Where do these
    come from, and why are 2 out of the five only have 1 "generation"
    each? I never expected this, and I think it has something to do
    with the problem, but maybe not. Please help me if you can!

    If you want to use Flash for navigation, consider this -
    1. Some people don't have Flash installed - what do they do?
    2. Search engines don't parse Flash links - your site will
    not be spidered
    3. Screen assistive devices don't parse Flash links - what
    will those users
    do?
    4. DW cannot maintain links within a Flash movie, so if you
    move or rename
    a linked file, your navigation will break - what will you do?
    It's usually a very bad idea for these reasons...
    Your problem is caused by navigating away from the previewed
    page. In
    general, this is not a good thing to do, since root relative
    links will not
    work as expected when you do that (locally).
    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
    ==================
    "dreamnovice" <[email protected]> wrote in
    message
    news:[email protected]...
    > Can anyone help me with flash buttons? I am trying to
    build my first
    > website,
    > and my five flash buttons (inside a 5 col. table) for
    page navigation work
    > fine
    > in testing all 5 web pages with mozilla firefox, and
    they look the same on
    > the
    > index page when testing with IE-7. However when I begin
    navigating to
    > other
    > pages in IE-7, the flash buttons disappear, and the 5
    cols in the table
    > where
    > each flash button was placed now are not equal sizes
    anymore like they are
    > on
    > the index page. In my files area on the right, I notice
    3 out of the five
    > buttons I created have about 15 to 20 "generations"
    shown there, with
    > numbers 1
    > through 15 or even more to qualify them tacked on to the
    end of the names.
    > Where do these come from, and why are 2 out of the five
    only have 1
    > "generation" each? I never expected this, and I think it
    has something to
    > do
    > with the problem, but maybe not. Please help me if you
    can!
    >

  • Using search help icon for a button

    Hi Experts,
    For a Webdynpro layout I have created a button and I want to assign an icon/image similar to the search help image(two squares type).
    Is there any way to assign the webdynpro search help icon to a button?
    I was searching in ImageSource under Button property but did not find any similar image. Else Is there any option to upload and assign an image to the button?
    Thanks.

    Hi,
    Under properties of button press F4 in image source attribute, you can select standard SAP icons, if not you can upload icon to your web dynpro component and then press F4 and select Component images tab and select your icon.
    For uploading icons to web dynpro abap check this reference: [Displaying Logos in WDA|http://www.****************/Tutorials/WebDynproABAP/Logo/Page1.htm]
    Hope this helps u.,
    Thanks & Regards,
    Kiran.

  • TS3682 I started updating my iPhone 4, but it went black screan and then started turning on and off non stop. I tried to hold the two buttons, but nothing different happened. Please, help! What should I do?!

    I started updating my iPhone 4, but it went black screan and then started turning on and off non stop. I tried to hold the two buttons, but nothing different happened. Please, help! What should I do?!

    First see if placing the iPod in Recovery Mode will allow a restore.
    Next try DFU mode and restore.
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    If not successful then time for an appointment at the Genius Bar of an Apple store. You are not alone with this problem.

Maybe you are looking for