Pop up menu display problem

I have been using Fireworks for a short while, and am still
learning my way around. I have had problems with pop up menus in
that once the art is placed in a Dreamweaver page, any spaces in
the text of the pop up menus are replaced with a capital E with a
circumflex. I have managed to get rid of the errant character in
the past but am not sure exactly how! Now the problem is back and
driving me crazy! I don't know if this is a font problem, a
Fireworks problem or a Dreamweaver problem, but any help with this
would be greatly appreciated!!
I should add that I am using version 6.0 with on a Mac with
OSX 10.4.7

>I have been using Fireworks for a short while, and am
still learning my way
> around. I have had problems with pop up menus
If the first sentence is true, then you should not use the
pop-up menus. In
fact, nobody should use them. There are much better ways. The
FW pop-ups
are poorly conceived and poorly implemented, and will cause
you much more
trouble than you save by using them.
> I should add that I am using version 6.0 with on a Mac
with OSX 10.4.7
In addition to the pop-up menus, version 6.0 was just as
troublesome. There
were many unfortunate problems with that release version. You
should update
to 6.1 at your earliest convenience (use the updater at the
Adobe site).
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
==================
"SeaZee" <[email protected]> wrote in
message
news:ef270h$an6$[email protected]..
>I have been using Fireworks for a short while, and am
still learning my way
> around. I have had problems with pop up menus in that
once the art is
> placed in
> a Dreamweaver page, any spaces in the text of the pop up
menus are
> replaced
> with a capital E with a circumflex. I have managed to
get rid of the
> errant
> character in the past but am not sure exactly how! Now
the problem is back
> and
> driving me crazy! I don't know if this is a font
problem, a Fireworks
> problem
> or a Dreamweaver problem, but any help with this would
be greatly
> appreciated!!
>
> I should add that I am using version 6.0 with on a Mac
with OSX 10.4.7
>

Similar Messages

  • "Show Pop-Up Menu" behavior problems

    Greetings—
    The "Show Pop-Up Menu" under Add Behaviors is grayed-out and
    won't allow additional links to be added to the templates. I'm
    currently on DW MX 2004.
    Thank you

    > Does anyone have any suggestions what to do so this
    selection is not
    > grayed
    > out?
    The functionality has been REMOVED as a primary function in
    CS3. It will
    allow you to edit a LEGACY MENU, but not create a new menu
    from scratch.
    This is a good thing. The DW menus were indescribably
    horrible.
    In their place, use the Spry menus, or -
    Check the uberlink and MacFly tutorials at PVII -
    http://www.projectseven.com/
    and the Navbar tutorial/articles at Thierry's place
    http://tjkdesign.com/articles/dropdown/
    Or this one (more recent article):
    http://tjkdesign.com/articles/Pure_CSS_Dropdown_Menus.asp
    Or to get it done fast, go here -
    http://www.projectseven.com/tutorials/navigation/auto_hide/index.htm
    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
    ==================
    "Moni057" <[email protected]> wrote in
    message
    news:f3na5s$9lv$[email protected]..
    >I just got CS3 (and un-installed DW8) and I have learned
    that the "Show
    >Pop-Up
    > Menu" behavior is depreciated. The problem I'm having is
    it is Grayed out
    > (And
    > yes, I made sure I had a 'link' selected when I tried to
    choose this
    > behavior)
    Is there a setting in the Preferences that I missed or is CS3
    just teasing
    > me w/a remembrance of this easy to use pop up menu
    maker? Any help is
    > appreciated :)
    >
    > Thanks,
    > Monica
    >
    > [email protected]
    >
    > ps: I do know about the "Spry assets" but I want to see
    if the above
    > option is
    > possible first. thanx :)
    >

  • Pop up menu link problem in MX

    I've added a test pop up menu which isn't working. The drop down 'New Link' links to www.taxaccount.co.uk/cgs.html but it doesn't show the link when clicked although the drop down does show. I've also uploaded the mm_menu.js file but no joy. Any ideas what to do to solve the problem please?

    Your link code is being processed to search
    for: http://www.taxaccount.co.uk/www.taxaccount.co.uk/cgs.html
    which, as you can see, contains your domain name twice.
    Change target code to target just cgs.html
    Now that you have provided the link to the problem page, we can see the call for the remote javascript
    <script language="JavaScript" src="mm_menu.js"></script>
    located just above your </head> tag

  • Spry horizontal menu display problems

    I have two display problems with a horizontal spry menu bar
    that I added in Dreamweaver CS3:
    (1) In Firefox, it displays underneath a flash movie. I've
    tried fiddling with the z-indexes and still can't get it to display
    right. I embed the flash movie using SWFObject.
    (2) In IE, the submenus display very in a broken way
    sometimes and sometimes they don't. I don't know how else to
    explain it.
    You can see then menu here:
    http://www.davisbrotherscabinetmakers.com/dbmc/
    And here is a link to my SpryAssets stylesheet, which I may
    have ruined beyond repair!
    http://www.davisbrotherscabinetmakers.com/dbmc/SpryAssets/SpryMenuBarHorizontal.css
    Any help would really be appreciated! Thanks.

    I am not the world's best coder and I have spent forever
    trying to
    learn and figure out some problems on a menu bar i have
    created using
    the base dreamweaver spry framework. It looks exactly like
    what i want
    it to look like on Firefox, Safari, and Google Chrome,
    but--of
    course--- Internet Explorer is creating massive dificiulties.
    Namely,
    the drop down menu is completely non-existent. I tried
    changing the IE
    hack to float right, rather than float left and then the menu
    appeared
    but with all the subsequent boxes lined up in a row. Here are
    my
    links, can anyone help me?
    http://www.agellsworth.org/index2.html
    http://www.agellsworth.org/SpryAssets/SpryMenuBarHorizontal.css
    Thanks alot,
    bob

  • Pop up menu colour problem

    Hi,
    I tried to make a navigation bar in fireworks with a pop-up
    menu as well. I set the colour for the nav bar to be the same a s
    the web page its used for. However when I insert the resultant
    nav-bar into dreamweaver and preview it the colour is very grainy.
    Could anybody help with this? You can see what i mean if you look
    at www.hearttohand.net
    thanks

    How did you export the images? Or did you do that
    explicitly...? Hmm.
    I know Fireworks can save HTML, but don't use it. Export your
    images and give them real, meaningful names and build the navbar in
    Dreamweaver. Do you even know what this image is:
    <img name="navbar_r1_c1"
    src="images/navbar/navbar_r1_c1.gif" width="800" height="7"
    border="0" id="navbar_r1_c1" alt="" />
    Make your mockup in Fireworks. Set slices and name the slices
    so that you get image file names like home.gif, news.gif, and
    history.gif to work with in Dreamweaver.
    When you go to export your slices (File>Image Preview in
    CS3), set your palette to Adaptive or Exact, rather than Web 216.
    Adaptive or Exact palettes will use the colors of your image,
    rather than dithering (which is what looks like is happening for
    you) or shifting your colors.
    Also, for your banner, you should export at a higher quality
    level on the .jpg image. You have quite a bit of noise in it.

  • Spry Menu display problems in IE

    Hi!
    I'm making a menu for a website and i tried Spry. version 1.4
    returned me some trouble with IE, but none with FireFox.
    i then updated to version 1.6, expecting some changes, but
    nothing has happened.
    I'm using the following: SpryMenuBarHorizontal.css - version
    0.6 - Spry Pre-Release 1.6
    here's the address for you to see what's happening and
    possibly help me:
    page
    I'd like to thank you in advance and say i'm here for any
    other information you need.

    Hi ssorizo,
    Try removing those <div align="center"> tags inside the
    level one <li> tags.
    They are not needed.
    Also, I noticed that you have modified slightly the CSS file,
    please use a fresh version and modify only what you strictly need
    (fonts, colors etc), not the various widths measured in em.
    Florin TUDOR

  • Pop-up menu as auto-play main menu in Blu-ray

    Is there any way to set a timeline to play with pop-up menu auto on (without a need of clicking remote button)? I'm making a BD in Encore CS6 and I want to have the same effect as I saw in Blu-rays by Universal. In their discs main menu is actualy a pop-up menu displayed on some kind of a backgroud video.

    I didn't ask my question well, since there are multipage popups!
    My thought is that you may be seeing a regular multipage menu with its own motion background rather than a popup (multipage or not) on a timeline. The advantage of a regular multipage menu (compared to plain menus) is that the audio and video background keeps going. as you change "menus."

  • Help using right-click to display text in the console/call a pop-up menu

    Hi folks,
    I hope someone can help me with this problem because, to be honest, I cannot see where I'm going wrong!
    Basically, I'm trying to create a routine to display a bit of text in the console (and, if I can get this to work, call a pop-up menu) if a user clicks on an image panel (which I've already created and works fine). My code for this is as follows:
    // --- Rest of program here
    this.addMouseListener(new MouseAdapter()
    public void mouseClicked(MouseEvent e)
    // This bit works fine
    if (e.getClickCount()>=2)
    // Display a dialog box if the user double clicks on the panel
    else if (e.isPopupTrigger())
    System.out.println("Right mouse button clicked")
    // Rest of program in hereThe problem is that, despite my best efforts, "Right mouse button clicked" does not display in the console if the right mouse button is clicked, and I cannot figure out why. I can, however, get it to work PARTIALLY if I use e.isControlDown(), but this only works (I guess) if the user is working on a Mac but isn't using an external mouse. Not ideal.
    I'm developing on a Mac (10.4.8) using Eclipse (rather than a PC), but this surely cannot be the problem?

    Do you start this application in a console window?
    If yes then isPopupTrigger() is never true - presumably mouseClicked gets called.
    If no then please note that java does not 'pop' a console window when System.out is called. System.out represents an existing output connection. If you want to pop some sort of console then you need to add code to do that.

  • Problem with pop up menu created in fireworks

    I have created a banner with buttons and added a pop up menu to them.
    They work perfectly with-in Fireworks.
    I then export page to dreamweaver and both banner and buttons display properly but I cannot get pop up menu to show at all.
    I want to choose each menu and make the links with-in dreamweaver but cannot get pop up top show.
    I am using CS5 and would appreciate your help.
    AlSO I AM STILL LEARNING SO IF YOU COULD KEEP IT AS SIMPLE AS POSSIBLE I WOULD APPRECIATE IT. 

    HELLO AND THANK YOU FOR YOUR REPLY. I HAVE CREATED A QUICK BANNER WHICH IS SIMILAR TO THE ONE I WANT TO CREATE. THE LIST OF BUTTON ARE  PLACED INTO MY BANNER AND I HAVE ADDED POP UP MENUS TO ALL WITH 3 CELLS DEEP DROPPING DOWNWARDS. WHEN I VIEW THESE IN PREVIEW IN A WEB BROWSER FROM FIREWORKS THEY WORK PERFECTLY. THE PROBLEM IS THAT I DON'T SEEM TO BE ABLE TO MOVE THIS PAGE TO DREAM WEAVER AND HAVE IT DISPLAY THE POP UP MENUS. THEY WILL SHOW AS AN IMAGE AS IT IS SEEN HERE BUT WILL NOT DROP DOWN IN PREVIEW BROWSER IN DREAM WEAVER. I WANT TO BE ABLE TO SELECT THE INDIVIDUAL LISTS IN THE DROP DOWN MENU AND CREATE LINKS TO VARIOUS PAGES WITH-IN MY SITE IN DREAM WEAVER. IT MAY BE THE CASE THAT I AM NOT EXPORTING IT PROPERLY OR SAVING  IT CORRECTLY.

  • The spry pop-up menu I built in Adobe Dreamweaver worked fine in my old Firefox, I updated Firefox today and the menu no longer works--despite disabling the pop-up blocker in Firefox preferences...what's the problem??? I need the menu to work!!!

    I built a new pop-up menu for my website using Spry in Adobe Dreamweaver. Because of some differences in .HTML and .XHTML
    it took me days to get it right. I tested every variation in Firefox until it worked perfectly. Today, I installed the newest version of Firefox and now the pop-up no longer works. I changed the preferences in Firefox to disable to pop-up blocker and it STILL DOESN'T WORK...although an older style of pop-up menu (menu machine) which is no longer supported by Adobe, DOES WORK.
    HELP!!! THIS IS IMPORTANT.

    pixlor:
    OP is using CS3 and the menu blog is talking about the menus
    in earlier
    versions of FW, so *most* of the points made in the blog
    don't apply.
    That's not to say that using CS3 pop-up menus is a *good*
    thing....
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "pixlor" <[email protected]> wrote in
    message
    news:gbce7b$a50$[email protected]..
    >
    quote:
    Originally posted by:
    captainbianco
    > I agree completely and totally, and I will haha but I'd
    like to get this
    > one
    > fixed if I can. You can view the page here
    >
    http://www.flooringanswers.com/nysurfaces/index2.htm
    > Hover over the letters to see the pop-up menu's. The one
    over "t" is the
    > problem.
    > Under Flooring, for example, you have a div with id of
    > MMMenu0910163730_1_1
    > (ugh). Under that are four items and they have their own
    IDs:
    > MMMenu0910163730_1_1_Item_0
    > MMMenu0910163730_1_1_Item_1
    > MMMenu0910163730_1_1_Item_2
    > MMMenu0910163730_1_1_Item_3
    > MMMenu0910163730_1_1_Item_4
    >
    > Your CSS file, however, doesn't have location
    information for the ..Item_4
    > object.
    >
    > That's just from a quick, cursory look. In order to fix
    this, you're going
    > to
    > have to go through it line by line and debug it. By the
    time you do this,
    > you
    > might be better off getting something else and starting
    from scratch.
    >
    > Read this:
    >
    http://www.losingfight.com/blog/2006/08/11/the-sordid-tale-of-mm_menufw_menujs/
    >

  • Display Pop-Up Menu Programmatically

    Hellow
    Can Anybody tell me how to display popup menu programmatically??
    For Ex. If I used Left Click instead of
    Right-Click, I wanna have this menu displayed.
    Regards,
    Tariq

    > Sorry, this is post transferred from foundation forum.
    > I hope someone could help me on this issue. Just to add on, I have a
    > viewer (inherited from TreeViewer),
    > and upon right mouse click, it will display a pop-up menu.
    > I would like to programmatically set the options on this pop-up
    > menu.
    I can't tell if you're trying to change the contents of the menu when it
    pops up or if you're just trying to reuse the implementation of a menu
    action from the timer.
    A standard method for configuring the contents of a menu dynamically is to
    setRemoveAllWhenShown(true) on your MenuManager and then add an
    IMenuListener to the MenuManager that adds all your menu items every time
    the menu is shown.
    The tutorial at
    http://www.eclipse.org/articles/viewArticle/ViewArticle2.htm l covers this.
    Jeff

  • HT3805 aperture no longer displays "destination pop-up menu "when importing, any ideas? regards Laurie.

    Aperture no longer displays "destination pop-up menu" when importing. any ideas? thanks

    Not even the "reset to defaults" option?
    If it is there, try that.  Restart the system, if you have not already done so.
    If options in the User interface are missing, this is usually caused by corrupted preferences files and preset files in the user library. To check if that is the case, log into a different user account, for example the "Guest account". Launch Aperture. Do you see the missing import options there?
    (see: Isolating an issue by using another user account)

  • Search field pop-up menu no longer displays

    For some reason my search field pop-up menu no longer displays. I can still search, but the results are not consistent and since the pop-up menu is missing I can't select search options like to, from, etc.
    I have already recreated the envelope index and reset spotlight. Any other ideas?

    Right-click on a blank area of the toolbar in Mail (where the Search field should be) and choose "Customise Toolbar...". Then in the window that appears, drag the Search item back into the Toolbar.

  • Fireworks 8 pop up menu problem

    My problem involves creating a pop-up menu in Fireworks 8 and
    then when Iimport into Dreamweave 8, and then preview using
    Firefox, or EI, the box gets cut off and the words hang off the
    edge. I have the width and height specifications in Fireworks set
    to automatic. When I preview in Firefox or EI from fireworks, it
    looks great, so it almost seems it is something in the transition
    from Fireworks to Dreamweaver. Anyone deal with this?

    My problem involves creating a pop-up menu in Fireworks 8 and
    then when Iimport into Dreamweave 8, and then preview using
    Firefox, or EI, the box gets cut off and the words hang off the
    edge. I have the width and height specifications in Fireworks set
    to automatic. When I preview in Firefox or EI from fireworks, it
    looks great, so it almost seems it is something in the transition
    from Fireworks to Dreamweaver. Anyone deal with this?

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

Maybe you are looking for