Need Help: JTable POP up menu in a CellEditor to display on a right click

This was from a previous post:
I am trying to make a POP menu in a JTextComponent that has a assigned JEditorPane for a HTMLDocument to make use of the HTMLEditorKit to allow modifying HTML by the POP up menu.
import java.awt.*;
import java.awt.event.*;
import java.io.*;
import java.net.*;
import java.util.*;
import javax.swing.*;
import javax.swing.event.*;
import javax.swing.text.*;
import javax.swing.table.*;
import javax.swing.text.html.*;
import javax.swing.undo.*;
import javax.swing.border.*;
import javax.swing.filechooser.*;
public class SimpleTableDemo extends JFrame {
    public SimpleTableDemo() throws Exception {
        final JTable table = new JTable(new MyTableModel());
        table.setPreferredScrollableViewportSize(new Dimension(500, 70));
        TableColumn fileColumn = table.getColumnModel().getColumn(2);
        FileTableCellEditor editor = new FileTableCellEditor();
        fileColumn.setCellRenderer(editor);
        fileColumn.setCellEditor(editor);
        JScrollPane scrollPane = new JScrollPane(table);
        getContentPane().add(scrollPane, BorderLayout.CENTER);
        addWindowListener(new WindowAdapter() {
            public void windowClosing(WindowEvent e) {
            System.exit(0);
            table.setRowHeight(100);
        public static void main(String[] args) throws Exception {
            SimpleTableDemo frame = new SimpleTableDemo();
            frame.pack();
            frame.setVisible(true);
        class MyTableModel extends AbstractTableModel {
            String[] columnNames = {"First Name","Last Name","HTML File"};
            public Object[][] data;
            MyTableModel() throws Exception
                data = createArray();
            private Object[][] createArray() throws Exception
                Object[][] data = {{"One", "Andrews", createDoc("file1.html")}
            return data;
            private Document createDoc(String url) throws Exception
                File file = new File(url);
                URL baseURL = file.toURL();
                InputStream in = baseURL.openStream();
                InputStreamReader r = new InputStreamReader(filterTag(in));
                HTMLEditorKit kit = new HTMLEditorKit();
            Document doc = kit.createDefaultDocument();
            kit.read(r,doc,0);
            return doc;
            } // workaround for HTMLEditorKit.Parser, cant deal with "content-encoding"
            private InputStream filterTag(InputStream in) throws IOException {
                DataInputStream dins = new DataInputStream( in);
                ByteArrayOutputStream bos = new ByteArrayOutputStream(10000);
                DataInputStream din = new DataInputStream(new BufferedInputStream(in));
                while (din.available() > 0) {
                String line = din.readLine();
                String lline = line.toLowerCase();
                if (0 <= lline.indexOf("<meta ")) // skip meta tags
                continue;
                bos.write( line.getBytes());
                din.close();
                return new ByteArrayInputStream( bos.toByteArray());
            public int getColumnCount() {
                return columnNames.length;
            public int getRowCount() {
                return data.length;
            public String getColumnName(int col) {
                return columnNames[col];
            public Object getValueAt(int row, int col) {
                return data[row][col];
            public Class getColumnClass(int c) {
                return getValueAt(0, c).getClass();
            public boolean isCellEditable(int row, int col) {
            if (col >< 1) {
                return false;
            } else {
                return true;
public class FileTableCellEditor extends JScrollPane implements TableCellEditor , TableCellRenderer
    public JTextComponent jtext;
    JEditorPane editor;
    HTMLEditorKit kit = new HTMLEditorKit();
    HTMLDocument doc = new HTMLDocument();;
    private EventListenerList listenerList = new EventListenerList();
    private ChangeEvent event = new ChangeEvent(this);
    public FileTableCellEditor()
    editor = new JEditorPane();
    editor.setContentType("text/html");
    doc=new HTMLDocument();
    editor.addMouseListener(new MouseHandler());
    editor.setEditorKit(kit);
    editor.setDocument(doc);
    editor.setEditable(true);
    editor.setCaretColor(Color.RED);
    getViewport().setView(editor);
    setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED);
    setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
    public Component getTableCellRendererComponent(JTable table, Object value,
    boolean isSelected, boolean hasFocus, int row, int column)
        // System.out.println("has focus: "+hasFocus+", isSelected: "+isSelected);
        if (isSelected)
        table.editCellAt(row,column);
    table.editCellAt(row,column);
    return getTableCellEditorComponent(table,value,isSelected, row, column);
    public Component getTableCellEditorComponent(JTable table,
    Object value, boolean isSelected, int row, int column)
    editor.setDocument((Document)value);
    return this;
    public boolean isCellEditable(EventObject anEvent)
    { return true;
    public boolean shouldSelectCell(EventObject anEvent)
    { return true;
    public void cancelCellEditing()
    { fireEditingStopped();
    public boolean stopCellEditing()
    { return true;
    public Object getCellEditorValue()
    { return null;
    public void addCellEditorListener(CellEditorListener l)
    { listenerList.add(CellEditorListener.class, l);
    public void removeCellEditorListener(CellEditorListener l)
    { listenerList.remove(CellEditorListener.class, l);
    protected void fireEditingStopped()
    { Object[] listeners = listenerList.getListenerList();
    for (int i = listeners.length - 2; i >= 0; i -= 2)
    ((CellEditorListener)listeners[i+1]).
    editingStopped(event);
    protected void fireEditingCanceled()
    { Object[] listeners = listenerList.getListenerList();
    for (int i = listeners.length - 2; i >= 0; i -= 2)
    ((CellEditorListener)listeners[i+1]).
    editingCanceled(event);
        ///////////createPopupMenu///////////////
        protected JPopupMenu createPopupMenu()
        JPopupMenu popup =new JPopupMenu();
        popup.add(getTextComponent().getActionMap().get(HTMLEditorKit.cutAction)).setAccelerator(null);
        popup.add(getTextComponent().getActionMap().get(HTMLEditorKit.copyAction)).setAccelerator(null);
        popup.add(getTextComponent().getActionMap().get(HTMLEditorKit.pasteAction)).setAccelerator(null);
        popup.addSeparator();
        popup.add(getTextComponent().getActionMap().get("font-bold"));
        popup.add(getTextComponent().getActionMap().get("font-italic"));
        popup.add(getTextComponent().getActionMap().get("font-underline"));
        //popup.add(getTextComponent().getActionMap().get("break"));
        return popup;
    public JTextComponent getTextComponent()
         return jtext;
    protected class MouseHandler extends MouseAdapter{
       public void mouseReleased(MouseEvent me){
           if(me.getButton()==MouseEvent.BUTTON3){
           Point p=me.getPoint();
           createPopupMenu().show((Component)me.getSource(),p.x,p.y);
}

I got the pop up to work, I had to go back to and add a createActionTable editor that is a JEditorPane, vs the JTextComponent!
Here is the latest version:
import java.awt.*;
import java.awt.event.*;
import java.io.*;
import java.net.*;
import java.util.*;
import java.util.HashMap;
import javax.swing.*;
import javax.swing.undo.*;
import javax.swing.event.*;
import javax.swing.text.*;
import javax.swing.table.*;
import javax.swing.text.html.*;
import javax.swing.undo.*;
import javax.swing.border.*;
import javax.swing.filechooser.*;
public class SimpleTableDemo extends JFrame {
    public SimpleTableDemo() throws Exception {
        final JTable table = new JTable(new MyTableModel());
        table.setPreferredScrollableViewportSize(new Dimension(500, 70));
        TableColumn fileColumn = table.getColumnModel().getColumn(2);
        FileTableCellEditor editor = new FileTableCellEditor();
        fileColumn.setCellRenderer(editor);
        fileColumn.setCellEditor(editor);
        JScrollPane scrollPane = new JScrollPane(table);
        getContentPane().add(scrollPane, BorderLayout.CENTER);
        addWindowListener(new WindowAdapter() {
            public void windowClosing(WindowEvent e) {
            System.exit(0);
            table.setRowHeight(100);
        public static void main(String[] args) throws Exception {
            SimpleTableDemo frame = new SimpleTableDemo();
            frame.pack();
            frame.setVisible(true);
        class MyTableModel extends AbstractTableModel {
            String[] columnNames = {"First Name","Last Name","HTML File"};
            public Object[][] data;
            MyTableModel() throws Exception
                data = createArray();
            private Object[][] createArray() throws Exception
                Object[][] data = {{"One", "Andrews", createDoc("file1.html")}
            return data;
            private Document createDoc(String url) throws Exception
                File file = new File(url);
                URL baseURL = file.toURL();
                InputStream in = baseURL.openStream();
                InputStreamReader r = new InputStreamReader(filterTag(in));
                HTMLEditorKit kit = new HTMLEditorKit();
            Document doc = kit.createDefaultDocument();
            kit.read(r,doc,0);
            return doc;
            } // workaround for HTMLEditorKit.Parser, cant deal with "content-encoding"
            private InputStream filterTag(InputStream in) throws IOException {
                DataInputStream dins = new DataInputStream( in);
                ByteArrayOutputStream bos = new ByteArrayOutputStream(10000);
                DataInputStream din = new DataInputStream(new BufferedInputStream(in));
                while (din.available() > 0) {
                String line = din.readLine();
                String lline = line.toLowerCase();
                if (0 <= lline.indexOf("<meta ")) // skip meta tags
                continue;
                bos.write( line.getBytes());
                din.close();
                return new ByteArrayInputStream( bos.toByteArray());
            public int getColumnCount() {
                return columnNames.length;
            public int getRowCount() {
                return data.length;
            public String getColumnName(int col) {
                return columnNames[col];
            public Object getValueAt(int row, int col) {
                return data[row][col];
            public Class getColumnClass(int c) {
                return getValueAt(0, c).getClass();
            public boolean isCellEditable(int row, int col) {
            if (col < 1) {
                return false;
            } else {
                return true;
public class FileTableCellEditor extends JScrollPane implements TableCellEditor , TableCellRenderer
    JEditorPane editor = new JEditorPane();
    HTMLEditorKit kit = new HTMLEditorKit();
    HTMLDocument doc = new HTMLDocument();;
    private EventListenerList listenerList = new EventListenerList();
    private ChangeEvent event = new ChangeEvent(this);
    HashMap<Object, Action> actions;
    public FileTableCellEditor()
    getContentPane();
    editor.setContentType("text/html");
    doc=new HTMLDocument();
    editor.addMouseListener(new MouseHandler());
    editor.setEditorKit(kit);
    editor.setDocument(doc);
    editor.setEditable(true);
    editor.setCaretColor(Color.RED);
    getViewport().setView(editor);
    createActionTable(editor);
    makeActionsPretty();
    setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED);
    setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
    public void makeActionsPretty(){
         Action a;
                  a=editor.getActionMap().get(HTMLEditorKit.cutAction);
                  a.putValue(Action.SHORT_DESCRIPTION,"Cut");
                  a.putValue(Action.ACCELERATOR_KEY,KeyStroke.getKeyStroke('X',Event.CTRL_MASK));
                  a=editor.getActionMap().get(HTMLEditorKit.copyAction);
                  a.putValue(Action.NAME,"Copy");
                  a.putValue(Action.SHORT_DESCRIPTION,"Copy");
                  a.putValue(Action.ACCELERATOR_KEY,KeyStroke.getKeyStroke('C',Event.CTRL_MASK));
                  a=editor.getActionMap().get(HTMLEditorKit.pasteAction);
                  a.putValue(Action.NAME,"Paste");
                  a.putValue(Action.SHORT_DESCRIPTION,"Paste");
                  a.putValue(Action.ACCELERATOR_KEY,KeyStroke.getKeyStroke('V',Event.CTRL_MASK));
    public Component getTableCellRendererComponent(JTable table, Object value,
    boolean isSelected, boolean hasFocus, int row, int column)
        if (isSelected)
        table.editCellAt(row,column);
    table.editCellAt(row,column);
    return getTableCellEditorComponent(table,value,isSelected, row, column);
    public Component getTableCellEditorComponent(JTable table,
    Object value, boolean isSelected, int row, int column)
    editor.setDocument((Document)value);
    return this;
    public boolean isCellEditable(EventObject anEvent)
    { return true;
    public boolean shouldSelectCell(EventObject anEvent)
    { return true;
    public void cancelCellEditing()
    { fireEditingStopped();
    public boolean stopCellEditing()
    { return true;
    public Object getCellEditorValue()
    { return null;
    public void addCellEditorListener(CellEditorListener l)
    { listenerList.add(CellEditorListener.class, l);
    public void removeCellEditorListener(CellEditorListener l)
    { listenerList.remove(CellEditorListener.class, l);
    protected void fireEditingStopped()
    { Object[] listeners = listenerList.getListenerList();
    for (int i = listeners.length - 2; i >= 0; i -= 2)
    ((CellEditorListener)listeners[i+1]).
    editingStopped(event);
    protected JPopupMenu createPopupMenu()
        JPopupMenu popup =new JPopupMenu();
        popup.add(getActionByName(DefaultEditorKit.cutAction));
        return popup;
    protected class MouseHandler extends MouseAdapter{
       public void mouseReleased(MouseEvent me){
           if(me.getButton()==MouseEvent.BUTTON3){
           Point p=me.getPoint();
           createPopupMenu().show((Component)me.getSource(),p.x,p.y);
    private void createActionTable(JTextComponent textComponent) {
        actions = new HashMap<Object, Action>();
        Action[] actionsArray = textComponent.getActions();
        for (int i = 0; i < actionsArray.length; i++) {
            Action a = actionsArray;
actions.put(a.getValue(Action.NAME), a);
private Action getActionByName(String name) {
return actions.get(name);

Similar Messages

  • Need help with pop-up menu and applied Rules

    I'm working on a spreadsheet that calculates my profit and losses. I drive a big rig so it needs to keep track of a lot of variables so I know if I'm going to make money on a run or lose money.
    I get fuel discounts of various amounts depending on which vendor I fuel at.
    I went to a section of the sheet and did a pop-up menu that contains the vendor names.
    In the trip section I have cost of fuel per gallon, gallons purchased, total fuel cost, cost minus fuel surcharge.
    What I would like to do is apply a rule to cost per gallon box (H7) that takes a variable from the pop-up menu (B40).
    So if H7 has $2.58 entered as a cost and B40 has pilot selected then $0.050 will automatically be deducted from the $2.58. This way I will have a history of where I fuel, the deduction is made automatically, and I have a history of fuel prices in a certain region.
    If anyone looks at this and sees a simpler way of figuring this calculation please make the suggestion. I want to keep this sheet as small and hassle free as possible.
    I have 3 fuel stops per trip with totals that are connected to other areas. Once I get all of this done I will be adding a chart for easy comparison and long range simple tracking to see where improvements can be made and costs are going.
    Thanks in advance all help will be appreciated.
    Message was edited by: Hwoodwriter for clarification.

    The IF Lookup table worked. Did a little modification by placing the table in another part of the chart then hiding that part.
    I tried doing the discount as a negative but got a negative total which had a negative affect on my total trip income.
    Here is how it works in it's final version.
    Gallons on board minus gallons required for trip.
    Cost per gallon (retail) multiplied by gallons purchased.
    Fuel cost equals (Gallons purchased multiplied by Retail gallon price) minus ("IfLookup" multiplied by Gallons purchased)
    Fuel Cost Minus Fuel Surcharge (the actual price I pay, which includes all my savings) equals (Retail Gallon Cost minus Fuel Surcharge minus "IfLookup") multiplied by Gallons Purchased.
    Some of my trips take up to 3 fuel stops. So this helps me keep track of each fuel stop and all savings per trip.
    I now have where I fueled, the retail price, with discount and surcharge applied. A few keystrokes and I know if a trip is going to be profitable or a loss for me.
    Thank you for the help. I now have what I need at my fingertips to make my job more effective.
    Thanks again.

  • Need help with pop-up menu please!

    So I have an older version of Dreamweaver.
    I want to apply a drop-down menu or pop-up menu whatever to
    words, but so far I don't think I can do that.
    I've decided to apply it to a picture instead, and I've done
    this successfuly before.
    I select the picture, then go to behaviors and select "show
    pop-up menu", fill in the info and say OK, but I then get this
    message that goes something like "while applying behaviors action
    javascript failed" and "ReferenceError:imgName isNot defined" or
    whatever and it won't let me add it.
    I've restarted the program and even my computer but it won't
    go away.
    Does anyone know how to fix this?
    -anna

    > So I have an older version of Dreamweaver.
    DW4?
    The pop-up menus are very troublesome. Nobody here would
    recommend that you
    use them.
    > Does anyone know how to fix this?
    What is your operating system?
    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
    ==================
    "anzya91" <[email protected]> wrote in
    message
    news:eibt0r$esr$[email protected]..
    > So I have an older version of Dreamweaver.
    > I want to apply a drop-down menu or pop-up menu whatever
    to words, but so
    > far
    > I don't think I can do that.
    > I've decided to apply it to a picture instead, and I've
    done this
    > successfuly
    > before.
    > I select the picture, then go to behaviors and select
    "show pop-up menu",
    > fill
    > in the info and say OK, but I then get this message that
    goes something
    > like
    > "while applying behaviors action javascript failed" and
    > "ReferenceError:imgName
    > isNot defined" or whatever and it won't let me add it.
    > I've restarted the program and even my computer but it
    won't go away.
    > Does anyone know how to fix this?
    >
    > -anna
    >

  • Need help on Multi level menu implementation

    Hi All,
    Need help on Multi level menu implementation
    Thanks,
    Anu

    Hi Anu,
    Please go through this link Implement Multilevelmenu navigation
    Thanks,

  • How to display a seperate right click menu for each item of a tree control?

    Hi I want to display a specific right click menu when a particular tree item is selected. I know how to create a menu and how to display it. I am using the function GetLabelFromIndex() to get the active tree item and then compare the label and based on the result display a manu for that item. Now my problem is that when I use the above function in the EVENT_RIGHT_CLICK it gives me the error "the Index passed is out of range" while using the same function with the same arguments in EVENT_SELECTION_CHANGE it gives no error...below is the part of my code
    case EVENT_RIGHT_CLICK:
    GetLabelFromIndex(panelHandle, PANEL_TREE, eventData2, label1);
    //The function gives the stated error here
    if(eventData1)//after it I compare the result and display the menu
    case EVENT_SELECTION_CHANGE:
    GetLabelFromIndex (panelHandle, PANEL_TREE, eventData2, label1);
    //The function works fine here
    if (eventData1)
     If any one have any idea whats going on or alternate way of doing this Please share knowledge...Thanks
    If you are young work to Learn, not to earn.

    Hi,
    one possible approach of solving this problem is looking closer at the error message: The error "the Index passed is out of range" tells you that something is wrong with the index, either it is too small or too large So why don't you set a breakpoint and check the index value, it might be useful information...
    The other hint is to check the meaning of eventdata2 (using the help): It is different for different events! For the event_right_click it gives the horizontal mouse position, not the index as event_selection_change does...

  • I updated Firefox and now Realplayer can't download any videos( download button in upper right corner of video don't pop up and there is no download option if I right click) if I use Internet explorer it works fine, I also went in to make sure I had it ch

    I updated Firefox and now Realplayer can't download any videos( download button in upper right corner of video don't pop up and there is no download option if I right click) if I use Internet explorer it works fine, I also went in to make sure I had it checked to pop up it is?! So it's not just youtube for me its all videos!
    == This happened ==
    Every time Firefox opened
    == the last firefox update
    ''locking due to the age of this thread''

    haven't tried it myself but saw this earlier in a blog somewhere:
    "try retro installing FF v3.6.3",
    makes sense 'cos I've only been experiencing the same problem with mozilla & realplayer combo since updating to latest FF v3.6.4
    noted that under IE realplayer plugin still works fine, button to 'download this video' comes on as before.....
    from what I read retro install will pick up all your bookmarks etc. do no worries there
    naughty, NAUGHTY mozilla people! you were 'bombproof' until today....what happened? good luck sorting it out though!!!! I still luv you!

  • Help! Pop-up menu problem

    I made a pop-up menu in a trial version of Fireworks 8.
    Everything works great within Fireworks, but when I try to insert
    it in Dreamweaver 4 (using the Insert Fireworks html button) it
    tells me that I need to insert an Fireworks html that was exported
    from Fireworks. The pop-up menu I made was exported as an html from
    Fireworks. Help!

    I don't think you are going to have much success trying to
    marry DW4 with
    anything contemporary. It's methods and structure are so
    antique, you know?
    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
    ==================
    "Erin88" <[email protected]> wrote in
    message
    news:er308c$391$[email protected]..
    >I made a pop-up menu in a trial version of Fireworks 8.
    Everything works
    >great
    > within Fireworks, but when I try to insert it in
    Dreamweaver 4 (using the
    > Insert Fireworks html button) it tells me that I need to
    insert an
    > Fireworks
    > html that was exported from Fireworks. The pop-up menu I
    made was exported
    > as
    > an html from Fireworks. Help!
    >

  • Help sorting pop-up menu

    Hello all,
    I am trying to create a alphabetized pop-up menu from data on a second sheet and need help. Manually typing in the data into inspector will work once but data is continously added and would like it alphabetized.
    Here is what I have. Sheet 1 cell A1 contains the pop-up. Pop-up should pull from sheet 2 cell A1 on down. Various cells in sheet 1  will use the Vlookup function refrenced to cell A1, this part was easy since it was identical to Excel but Pop-up in Numbers isn't
    Someone had mentioned maybe trying to format cell A1 as Slider but this is beyond my ability. Any help would be appreciated.
    -aespinoza101

    Be wary of editing pop-up menus in Numbers. Altering any menu that has been set will change the menu AND its current setting.
    See Alphabetizing pop-up menu, particularly the entries by Badunit and Hiroto.
    Regards,
    Barry

  • I need help fixing an expandable menu

    Hi,
    I'm working on a website that needs to have an expandable menu. I designed it all in Photoshop, and set it up in Dreamweaver so each categorie was image mapped so the subcategories pop up. Here's what it looks like
    http://a.imageshack.us/img85/2239/menuhelp.jpg
    But then I realized that I cant make the subcategories clickable, and I cant even move the mouse over to them without having them dissapear.
    Is there any way to fix this or do I have to start all over?

    Have a look here http://labs.adobe.com/technologies/spry/samples/menubar/AutoWidthVerticalMenuBarSample.htm l or here http://www.adobe.com/cfusion/exchange/index.cfm?event=extensionDetail&extid=2141544
    The latter can easily be transformed into a vertical menu.

  • Help with pop-up menu

    Im haveing a hard time figuring out how to make a pop-up mene i created work correctly. I what to have a pop-up menu that will let you select a type of item, and return the items associate cost in the adjacent cell.
    Exaple:
    select option 1-3 in cell "A" and return values x,y & z in cell "B".
    I figured out how to create the pop-up in cell "a" but cant seam to fugure out how to give each of the options a seperate value that appears in "b".

    Assuming the pop up is in B1:
    you could enter the following formula in C1:
    =IF(B1=1, "A", IF(B1=2, "B", IF(B1=3, "C", "")))
    This will result in the following:
    B1 = 1,  C1 will return "A"
    B1 = 2,  C1 will return "B"
    B1 = 3,  C1 will return "C"
    This method is ok for a small translation set.  Much larger and it is hard to change and update.  So the next method is to recognize if there is a pattern.  If there is no pattern then you can make a translation table:
    In this case you look up the value "3" in the Data table (column 1) and return the corresponding value from a different cell in the same row (column 2):
    B3=VLOOKUP(A1, Data :: A:B, 2, 0)
    I hope this helps,
    Wayne

  • I need help to make this menu?

    This is normal menu, but i have only use Flash for any times,
    i don't know how to make this menu with Action Script in Flash.
    http://i238.photobucket.com/albums/ff189/viczon/Take.jpg
    Please help me! My menu with 2 level, the first cross-bar above
    include Home, Introduce, Products,... and if rovoller on it,
    example as if i rovoller on Product button, will have appear
    products's name below. Thank for help, this menu is more important
    for me to do now, if can please do in Flash and send .fla file for
    me! Thank you..

    Please Help me! I Need it now. Please..

  • Need help with pop up menus...

    Hi guys, hope u can help me with this. Im working on a flash
    website. I have to include a pop up menu which I have managed to
    create no problem. However, when I try to make the buttons inside
    the pop up to change to another scene when clicked I cant get them
    to work. This is the code I've used:
    on (release) {
    _root.gotoAndStop("Student_area","tests");
    I have defined the action to go to the frame labeled "tests"
    in the "Student_area" scene as I have been told in a tutorial I
    have. However when I test it and click on it nothing happens. I
    have tried many variations such as simply telling it to take me to
    the students scene like I would do with a normal button but still
    nothing happens.
    What am I doing wrong?
    Hope someone can help me, gotta submit this soon.
    Thanks in advance.

    bump...
    Anyone?? Please.

  • Need help with pop-up

    Need help with this one. All of a sudden I keep getting a
    pop-up saying "cannot locate file flash.ocx". What the heck is it
    and how do I get rid of it. It is QUITE annoying. Any help would be
    appreciated.

    I am glad to hear that changing or disabling the screensaver
    seems to fix this problem for most of us. Certainly, screensavers
    are pretty antiquated and pointless on the newer computers out
    there, but there are still some uses. Ever since I turned mine off
    on one computer and switched to an older screensaver on my oldest
    computer, I have not had this problem. And, unfortunately, I think
    the problem is isolated to such a small fraction of screensavers
    that adobe is just going to let those distributors take care of the
    problem rather than spending the time to fix whatever glitch is
    affecting them. The only downside is that once you figure out the
    problem, which can take time and effort, you could lose a pretty
    cool screensaver. All in all, that isn't much in the long run,
    certainly not enough to get adobe involved.

  • How to display images for right click menu items

    I am trying to display some image to the left of my right click menu items.I have searched the help but did't find anything wich can add an image to the menu items. If anyone knows how to do it, Please share 
    Thank to all.
    If you are young work to Learn, not to earn.

    Hi Mr,
    you should have searched the topic 'Programming with Menu Bars'
    Use the ATTR_SHOW_IMAGES attribute to add a column in the menu in which images can be placed. Then use the ATTR_ITEM_BITMAP attribute to specify an image to use for a submenu or menu item

  • I've managed to delete the NoScript menu bar and the NoScript option when I right click a page, how do I get them back?

    I was trying to allow a website on the NoScript menu, when I must have accidentally pressed something and the entire menu bar disappeared. While I was trying to correct this, I then managed to remove the NoScript option from the right-click menu. So now I cannot access my NoScript and I've tried re-installing it but nothing works. How do I get them back?

    menu bar is missing:
    https://support.mozilla.com/en-US/kb/Menu%20bar%20is%20missing
    from TOOLS then ADD-ONS you can see noscript
    thank you
    Please mark "Solved" the answer that really solve the problem, to help others with a similar problem.

Maybe you are looking for

  • Can you create nested condition in merge(e.g. insert/update) using owb

    Hi, Does OWB9iR2 allow you to build in nested condition in merge. such as If no match on col1 and col2 then if col3 match then no new sequence insert <--- else insert new sequence; else (there is match on col1 and col2) update col3 and sequence. I ha

  • Can't download preordered album

    I Recently preordered an album and received an email saying it was ready for downloading but when I go to purchased I don't see the album there and it's asking me to pay if I want the songs. why are the songs not showing up?

  • Expired Password issue

    Any update on the issues with expired passwords? We have seen the same issue other users have reported - and anxiously await some kind of real fix. Jim

  • Fail with recover password

    Hi my father tried to recover password and got that message: Sorry but that email address is not in our records, please try again. I'm 200% sure that email which I type to textbox is right. Because couple day ago my father recieved email from skype s

  • I have reset my password but I tunes is not accepting it as it is asking for it for me to inport

    Is I Tunes Passward differant from my apple Id and password.  I reset my password in the apple website for my ID but Itunes on my computer is saying it is not right.