Problem with multiple transparent JPanels

Hi,
I'm currently trying to implement some kind of message box that can fade in and out. This message box is a subclass of JComponent, the message it contains can be an arbitrary Swing-Component.
The message container and the message itself have the same background color. When fading, the (partly transparent) colors of the of the container and the message are added, which I do not want.
Here are two images to illustrate my problem:
What I have: http://www.inf.tu-dresden.de/~ab023578/javaforum/reality.gif
What I want: http://www.inf.tu-dresden.de/~ab023578/javaforum/wish.gif
Here is the code:
import java.awt.*;
import javax.swing.*;
public class Main {
    static float transparency = 0f;
    public static void main(String[] args) {
        JPanel jpBack = new JPanel() {
            protected void paintComponent(Graphics g) {
                Graphics2D g2d = (Graphics2D)g;
                g2d.clearRect(0, 0, getWidth(), getHeight());
                g2d.setColor(getBackground());
                AlphaComposite alpha = AlphaComposite.getInstance(AlphaComposite.SRC_OVER, transparency);
                g2d.setComposite(alpha);
                g2d.fillRect(0, 0, getWidth(), getHeight());
        jpBack.setBackground(Color.WHITE);
        jpBack.setLayout(null);
        JPanel jpContainer = new JPanel();
        jpContainer.setBackground(Color.RED);
        jpContainer.setLayout(null);
        JPanel jpMessage = new JPanel();
        jpMessage.setBackground(Color.RED);
        JLabel jlMessage = new JLabel("MESSAGE");
        jpBack.add(jpContainer);
        jpContainer.add(jpMessage);
        jpMessage.add(jlMessage);
        jpContainer.setBounds(10, 10, 120, 100);
        jpMessage.setBounds(10, 10, 100, 50);
        JFrame frame = new JFrame();
        frame.setBounds(0, 0, 150, 150);
        frame.setBackground(Color.WHITE);
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        frame.setContentPane(jpBack);
        frame.setVisible(true);
        for (double a = 0; true; a += 0.01D) {
            try {
                Thread.sleep(10);
            catch (InterruptedException e) {}
            transparency = (float)Math.abs(Math.sin(a));
            jpBack.repaint();
}I understand that the Porter-Duff-Rule SRC_OVER causes the container to be drawn over the message (or vice versa) and both of them over the background. I think what I need is a way to handle the whole jpContainer-Panel and all its subcomponents as a single source image. Is that possible?

Thank you for your answer, Sarcommand. Unfortunately the test program I provided is a bit too simple as your solution works here but not for my original problem. :|
Let me explain what I want to achieve and why.
I'm writing a tool for algorithm visualisation. Currently I am dealing with a parsing algorithm (having compontents such as an automaton with an input tape, output tape and a stack). Those components (containers) can contain multiple JComponents (GraphicalObjects), which display a BufferedImage that can be altered during the animation.
I want to create my message windows the same way. A container that contains GraphicalObjects (or, if necessary, any other Swing component). One GraphicalObject has a very limited field of responsibility: mereley displaying its information.
Aligning the GraphicalObject is one of the container's responsibilities.
What I'm currently trying to do is to put my GraphicalMessage into the center of a container, leaving an offset on the left/right/upper/lower side. This is why I need the same background color for both the GraphicalMessage and the MessageContainer, I don't want the user to see that there are actually two JComponents on top of each other.
While I could use another approach for text messages I prefer this one as I would be able to fade arbitrary Containers and their GraphicalObjects .
Here is the code:
import java.awt.*;
import javax.swing.*;
import java.awt.image.BufferedImage;
public class Main {
    static float transparency = 0f;
    public static void main(String[] args) {
        JPanel jpBack = new JPanel() {
            protected void paintComponent(Graphics g) {
                Graphics2D g2d = (Graphics2D)g;
                g2d.clearRect(0, 0, getWidth(), getHeight());
                g2d.setColor(getBackground());
                AlphaComposite alpha = AlphaComposite.getInstance(AlphaComposite.SRC_OVER, transparency);
                g2d.setComposite(alpha);
                g2d.fillRect(0, 0, getWidth(), getHeight());
                super.paintComponent(g);
        jpBack.setBackground(Color.WHITE);
        jpBack.setLayout(null);
        JPanel jpContainer = new JPanel();
        jpContainer.setBackground(Color.RED);
        jpContainer.setLayout(null);
        GraphicalMessage msg = new GraphicalMessage();
        jpBack.add(jpContainer);
        jpContainer.add(msg);
        jpContainer.setBounds(10, 10, 120, 100);
        msg.setBounds(10, 10, 160, 60);
        JFrame frame = new JFrame();
        frame.setBounds(0, 0, 150, 150);
        frame.setBackground(Color.WHITE);
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        frame.setContentPane(jpBack);
        frame.setVisible(true);
        float stepSize = 0.01f;
        float step = stepSize;
        for (float a = 0; true; a += step) {
            try {
                Thread.sleep(10);
            catch (InterruptedException e) {}
            if (a >= 1) {
                step = -stepSize;
                a -= stepSize;
            if (a <= 0) {
                step = stepSize;
                a += stepSize;
                msg.updateInternalContent();
                msg.redraw();
            transparency = a;
            jpBack.repaint();
class GraphicalMessage extends JComponent {
    private String text;
    private Graphics2D ig2d;
    private BufferedImage image;
    public GraphicalMessage() {
        setLayout(null);
        image = new BufferedImage(100, 50, BufferedImage.TYPE_INT_ARGB);
        ig2d = image.createGraphics();
        ig2d.setColor(Color.BLACK);
        ig2d.setBackground(Color.RED);
        ig2d.setFont(new Font("Courier New", Font.BOLD, 20));
        updateInternalContent();
        redraw();
    public void paintComponent(Graphics g) {
        super.paintComponent(g);
        Graphics2D g2d = (Graphics2D)g;
        g2d.drawImage(image, 0, 0, null);
    public void redraw() {
        ig2d.clearRect(0, 0, image.getWidth(), image.getHeight());
        ig2d.drawString(text, 0, 20);
    public void updateInternalContent() {
        text = String.valueOf((int)(Math.random() * 10000));
}A possibility to erase the text from the BufferedImage without having to draw a rectangle would help me as well.

Similar Messages

  • Problem with multiple Toplink/JPA apps in same server

    Anyone have experence of running serveral Toplink/ EJB-3 Web apps in the same server (OC4J, alas)?
    We seem to get a problem with the second app failing to initialise toplink, with an entity not found message. Each app runs OK on it's own.

    Yes, they access the same datasource and most of the tables overlap.
    We're thinking it might help to have common entity classes and put them in a shared library, but I don't know if this is relevant (setting up shared libraries complicates testing and tends to snowball, I reckon we need about 15 jars all told).
    I''ve had some funnies on OC4J before which I think may be to do with it's use of ClassLoaders, for example I initially put persistence.xml in the libary jar with the data model, but for some reason I get the entity not found error that way. It only seems to work if it's in the classes folder.
    For the moment we're getting arround the problem with multiple OC4J instances in the server.

  • Problem with multiple versions of documents being published with 001, 002, etc.

    I am using Contribute CS3. I am having a problem with multiple versions of documents being published on the sever with 001, 002, etc in the name. So that I end up with 2 or 3 versions of a document on the server. Does anyone know why / how Contribute  is doing this? Thanks for any help you can give.

    Your Web site administrator will need to update your key to allow you to delete files you are able to edit.

  • Problems with multiple idocs in one file ( Inbound file )

    HI,
    Thanks in Advance for your suggestions.. Highly appreciated.
    We have problems with multiple IDocs in one file.
    We are using XIB ( Amtrix ) as Middleware to receive the files.
    Curretenly When the file contains one IDoc then there is no problem. IDoc is created and everything is ok.
    If file contains two IDocs ( for example two messages ORDERS and DELVERY ) then it is creating two IDocs but both IDocs contains ORDERS plus DELIVERY segements information. That is the problem. Some how SAP unable to differentiate the IDocs in the file.. But it knows that how many idocs are there in the file..because it is creating exact number of idocs.
    We are using TRFC port ... Do I need to change it to File port..
    When we have more than one idoc do we need set any parameter in the file ...

    Thanks for the swift response. Always ideas are useful.
    As of now , Middleware cannot split the file.
    Thing is SAP is creating two Idocs with different message types. Problem is First IDoc contains ORDERS message type but also DELIVERY segments as well. Second IDoc with DELIVERY message tyoe but ORDERS segments as well... This is the problem... I think we are missing some field activation in file for EDIDC record.
    As far as I know file port supports the number of IDocs in one file.. Hope TRFC port also supports that

  • Problem with multiple forms and subview

    I have a problem when using NetBean Web Pack (JDK6, Net Beans 5.5, JSF 1.2).
    1) I created a JSF page (hello.jsp) and a page fragment (header.jspf) inside Web Pack, and let the JSF page (hello.jsp) includes the page fragment.
    2) The include instruction is outside of the "form" element id=main_form() of the first JSF page.
    3) Inside the page fragment (header.jspf), I put a form (id=header_form) with some input fields inside the "subview" element.
    4) When running the web application, the form and its children (id=header_form) inside the subview are not rendered.
    It seems to be a problem with multiple forms on a page and the subview.
    Do I use these JSF components incorrectly? Any advice?
    Thanks

    The forms are not nested.
    hello.jsp
    <webuijsf:body ...>
    <!-- BEGIN: include header -->
    <div style="margin: 0px 0px 10px 0px; left: 0px; top: 0px">
    <jsp:directive.include file="Header.jspf"/>
    </div>
    <!-- END: include header -->
    <webuijsf:form ...>
    From above fragment, you can see the header.jspf is outside of the form element.

  • LOV Problem with multiple values

    HI All,
    I have a problem with LOV .When ever i click LOV after search button all values are displaying fine.
    But when i get so many values i want to select only one vlaue that is not cmng to the main page ....Cursor is in running state always after that time out error is coming in my application .
    This problem is coming with with only single value selection in lOV only problem with Multiple values retrival that time only...
    (Iam using 11.1.1.3 Jdeveloper.)
    Thanx in advance...

    duplicate of {thread:id=2286814}

  • Multiple transparent JPanels paint problem (smearing strings)

    I created full screen JWindow application.
    I created three panels:
    MainPanel - non transparent
    PPIPanel - transparent
    GlassPanel - transparent.
    All three panel and JWindow has the same bounds. Then I added PPIPanel and GlassPanel to MainPanel and then I added MainPanel to JWindow.
    MainPanel.add(PPIPanel);
    MainPanel.add(GlassPanel);
    JWindow.getContentPane().add(MainPanel);
    Whole application displays Air Traffic Situation comming from RADAR. MainPanel is a black background with airways, PPIPanel displays aircrafts and GlassPanel is MouseEvent listener for ZOOM, CENTER and other mouse operations.
    The painting code is always placed in paint(Graphics g) metod of each component. All aircraft are painted on the transparent PPIPanel with small dot fillOval() and two BOLD strings g.drawString("Aircraft")descibing aircraft.
    paint(Graphics g) {
    g.setColor(Color.GREEN);
    g.setFont(bold font);
    iterate Collection of aicrafts {
    g.fillOval(x,y,4,4);
    g.drawString(x+3,y+3,"Aircraft xxx");
    g.drawString(x+3,y+18,"Flight level");
    The situation is changing every 4 seconds and every 4 seconds special Thread calls repaint() method on PPIPanel to referesh the situation.
    The main problem is garbage remaining after refresh. Some aircrafts has smeared label after repaint ( probably because multiple transparent panels).
    What are your proposals to solve the problem. I'm just a java begginer so I need clear explenation (i.e. code example).

    just to make it clear
    paint(Graphics g) {
    super.paint(g)
    g.setColor(Color.GREEN);
    g.setFont(bold font);
    iterate Collection of aicrafts {
    g.fillOval(x,y,4,4);
    g.drawString(x+3,y+3,"Aircraft xxx");
    g.drawString(x+3,y+18,"Flight level");
    or
    paintComponent(Graphics g) {
    g.setColor(Color.GREEN);
    g.setFont(bold font);
    iterate Collection of aicrafts {
    g.fillOval(x,y,4,4);
    g.drawString(x+3,y+3,"Aircraft xxx");
    g.drawString(x+3,y+18,"Flight level");
    should work..
    Cheers
    Mike

  • Advance level drawing problem with Jframe and JPanel need optimize sol?

    Dear Experts,
    I m trying to create a GUI for puzzle game following some kind of "game GUI template", but i have problems in that,so i tried to implement that in various ways after looking on internet and discussions about drawing gui in swing, but i have problem with both of these, may be i m doing some silly mistake, which is still out of my consideration. please have a look at these two and recommend me one of them, which is running without problems (flickring and when you enlarge window the board draw copies (tiled) everywhere,
    Note: i don't want to inherit jpanel or Jframe
    here is my code : import java.awt.BorderLayout;
    public class GameMain extends JFrame {
         private static final long serialVersionUID = 1L;
         public int mX, mY;
         int localpoints = 0;
         protected static JTextField[][] squares;
         protected JLabel statusLabel = new JLabel("jugno");
         Label lbl_score = new Label("score");
         Label lbl_scorelocal = new Label("local score");
         protected static TTTService remoteTTTBoard;
         // Define constants for the game
         static final int CANVAS_WIDTH = 800; // width and height of the game screen
         static final int CANVAS_HEIGHT = 600;
         static final int UPDATE_RATE = 4; // number of game update per second
         static State state; // current state of the game
         private int mState;
         // Handle for the custom drawing panel
         private GameCanvas canvas;
         // Constructor to initialize the UI components and game objects
         public GameMain() {
              // Initialize the game objects
              gameInit();
              // UI components
              canvas = new GameCanvas();
              canvas.setPreferredSize(new Dimension(CANVAS_WIDTH, CANVAS_HEIGHT));
              this.setContentPane(canvas);
              this.setDefaultCloseOperation(EXIT_ON_CLOSE);
              this.pack();
              this.setTitle("MY GAME");
              this.setVisible(true);
         public void gameInit() {     
         // Shutdown the game, clean up code that runs only once.
         public void gameShutdown() {
         // To start and re-start the game.
         public void gameStart() {
         private void gameLoop() {
         public void keyPressed(KeyEvent e) {
         public void keyTyped(KeyEvent e) {
         public void gameKeyReleased(KeyEvent e) {
              PuzzleBoard bd = getBoard();
              for (int row = 0; row < 4; ++row) {
                   for (int col = 0; col < 4; ++col) {
                        if (e.getSource() == squares[row][col]) {
                             if (bd.isOpen(col, row)) {
                                  lbl_score.setText("Highest Score = "
                                            + Integer.toString(bd.getPoints()));
                                  setStatus1(bd);
                                  pickSquare1(col, row, squares[row][col].getText()
                                            .charAt(0));
         protected void pickSquare1(int col, int row, char c) {
              try {
                   remoteTTTBoard.pick(col, row, c);
              } catch (RemoteException e) {
                   System.out.println("Exception: " + e.getMessage());
                   e.printStackTrace();
                   System.exit(1);
         // method "called" by remote object to update the state of the game
         public void updateBoard(PuzzleBoard new_board) throws RemoteException {
              String s1;
              for (int row = 0; row < 4; ++row) {
                   for (int col = 0; col < 4; ++col) {
                        squares[row][col].setText(new_board.ownerStr(col, row));
              lbl_score.setText("Highest Score = "
                        + Integer.toString(new_board.getPoints()));
              setStatus1(new_board);
         protected void setStatus1(PuzzleBoard bd) {
              boolean locals = bd.getHave_winner();
              System.out.println("local win" + locals);
              if (locals == true) {
                   localpoints++;
                   System.out.println("in condition " + locals);
                   lbl_scorelocal.setText("Your Score = " + localpoints);
              lbl_score
                        .setText("Highest Score = " + Integer.toString(bd.getPoints()));
         protected PuzzleBoard getBoard() {
              PuzzleBoard res = null;
              try {
                   res = remoteTTTBoard.getState();
              } catch (RemoteException e) {
                   System.out.println("Exception: " + e.getMessage());
                   e.printStackTrace();
                   System.exit(1);
              return res;
         /** Custom drawing panel (designed as an inner class). */
         class GameCanvas extends JPanel implements KeyListener {
              /** Custom drawing codes */
              @Override
              public void paintComponent(Graphics g) {
                   // setOpaque(false);
                   super.paintComponent(g);
                   // main box; everything placed in this
                   // JPanel box = new JPanel();
                   setLayout(new BoxLayout(this, BoxLayout.Y_AXIS));
                   // add(statusLabel, BorderLayout.NORTH);
                   // set up the x's and o's
                   JPanel xs_and_os = new JPanel();
                   xs_and_os.setLayout(new GridLayout(5, 5, 0, 0));
                   squares = new JTextField[5][5];
                   for (int row = 0; row < 5; ++row) {
                        for (int col = 0; col < 5; ++col) {
                             squares[row][col] = new JTextField(1);
                             squares[row][col].addKeyListener(this);
                             if ((row == 0 && col == 1) || (row == 2 && col == 3)
                             || (row == 1 && col == 4) || (row == 4 && col == 4)
                                       || (row == 4 && col == 0))
                                  JPanel p = new JPanel(new BorderLayout());
                                  JLabel label;
                                  if (row == 0 && col == 1) {
                                       label = new JLabel("1");
                                       label.setHorizontalAlignment(JLabel.LEFT);
                                       label.setVerticalAlignment(JLabel.TOP);
                                  else if (row == 4 && col == 0) {// for two numbers or
                                       // two
                                       // blank box in on row
                                       label = new JLabel("2");
                                       label.setHorizontalAlignment(JLabel.LEFT);
                                       label.setVerticalAlignment(JLabel.TOP);
                                  else if (row == 1 && col == 4) {
                                       label = new JLabel("3");
                                       label.setHorizontalAlignment(JLabel.LEFT);
                                       label.setVerticalAlignment(JLabel.TOP);
                                  else if (row == 4) {
                                       label = new JLabel("4");
                                       label.setHorizontalAlignment(JLabel.LEFT);
                                       label.setVerticalAlignment(JLabel.TOP);
                                  else {
                                       label = new JLabel("5");
                                       label.setHorizontalAlignment(JLabel.LEFT);
                                       label.setVerticalAlignment(JLabel.TOP);
                                  label.setOpaque(true);
                                  label.setBackground(squares[row][col].getBackground());
                                  label.setPreferredSize(new Dimension(label
                                            .getPreferredSize().width, squares[row][col]
                                            .getPreferredSize().height));
                                  p.setBorder(squares[row][col].getBorder());
                                  squares[row][col].setBorder(null);
                                  p.add(label, BorderLayout.WEST);
                                  p.add(squares[row][col], BorderLayout.CENTER);
                                  xs_and_os.add(p);
                             } else if ((row == 2 && col == 1) || (row == 1 && col == 2)
                                       || (row == 3 && col == 3) || (row == 0 && col == 3)) {
                                  xs_and_os.add(squares[row][col]);
                                  // board[ row ][ col ].setEditable(false);
                                  // board[ row ][ col ].setText("");
                                  squares[row][col].setBackground(Color.RED);
                                  squares[row][col].addKeyListener(this);
                             } else {
                                  squares[row][col] = new JTextField(1);
                                  // squares[row][col].addActionListener(this);
                                  squares[row][col].addKeyListener(this);
                                  xs_and_os.add(squares[row][col]);
                   this.add(xs_and_os);
                   this.add(statusLabel);
                   this.add(lbl_score);
                   this.add(lbl_scorelocal);
              public void keyPressed(KeyEvent e) {
              public void keyReleased(KeyEvent e) {
                   gameKeyReleased(e);
              public void keyTyped(KeyEvent e) {
         // main
         public static void main(String[] args) {
              SwingUtilities.invokeLater(new Runnable() {
                   @Override
                   public void run() {
                        new GameMain();
      thanks a lot for your time , consideration and efforts.
    jibby
    Edited by: jibbylala on Sep 20, 2010 6:06 PM

    jibbylala wrote:
    thanks for mentioning as i wasn't able to write complete context here.Yep thanks camickr. I think that Darryl's succinct reply applies here as well.

  • Problem with JTable and JPanel

    Hi,
    I'm having problems with a JTable in a JPanel. The code is basicly as follows:
    public class mainFrame extends JFrame
            public mainFrame()
                    //A menu is implemeted giving rise to the following actions:
                    public void actionPerformed(ActionEvent evt)
                            String arg = evt.getActionCommand();
                            if(arg.equals("Sit1"))
                            //cells, columnNames are initiated correctly
                            JTable table = new JTable(cells,columnNames);
                            JPanel holdingPanel = new JPanel();
                            holdingPanel.setLayout( new BorderLayout() );
                            JScrollPane scrollPane = new JScrollPane(holdingPanel);
                            holdingPanel.setBackground(Color.white);
                            holdingPanel.add(table,BorderLayout.CENTER);
                            add(scrollPane, "Center");
                            if(arg.equals("Sit2"))
                                    if(scrollPane !=null)
                                            remove(scrollPane);validate();System.out.println("ScrollPane");
                                    if(holdingPanel !=null)
                                            remove(holdingPanel);
                                    if(table !=null)
                                            remove(table);table.setVisible(false);System.out.println("table");
                            //Put other things on the holdingPanel....
            private JScrollPane scrollPane;
            private JPanel holdingPanel;
            private JTable table;
    }The problem is that the table isn't removed. When you choose another situation ( say Sit2), at first the table apparently is gone, but when you press with the mouse in the area it appeared earlier, it appears again. How do I succesfully remove the table from the panel? Removing the panel doesn't seem to be enough. Help is much appreciated...
    Best regards
    Schwartz

    If you reuse the panel and scroll pane throughout the application,
    instantiate them in the constructor, not in an often-called event
    handler. In the event handler, you only do add/remove of the table
    on to the panel. You can't remove the table from the container
    which does not directly contain it.
    if (arg.equals("Sit2")){
      holdingPanel.remove(table);
      holdingPanel.revalidate();
      holdingPanel.repaint(); //sometimes necessary
    }

  • HT6065 I installed this update.  I have never had problems with "multiple prompts to unlock "Local items" keychain" until after I installed this update.  Now, I can't get it to STOP prompting me.

    So how do I fix this?  How do I get this to go away?  It's prompting me for a password that I haven't ever set up!

    I have the same problem with three pop-up prompts:
    (1) com.apple.iCloudHelper wants to use the "login" keychain. Please enter the keychain password.
    (2) CalendarAgent wants to use the "login" keychain. Please enter the keychain password.
    (3) AddressBookSourceSync wants to use the "login" keychain. Please enter the keychain password.
    I can enter my login password and the prompt goes away for a little while, but eventually returns.  Or I can click on "Cancel" many multiple times and it goes away for a little while, but returns again.
    I want a solution too and hope this additional information will help.

  • Candlestick chart problem with multiple series

    Hello,
    I added one mx:CandlestickSeries object and couple additional
    mx:LineSeries objects to the chart. All series are represented but
    still I have one problem. More series I add - less candles are
    becoming of CandlestickSeries data. It seems that there should be
    any scaling option for all series in the chart or something like
    this, but I cannot find it. I'm still new in Flex Can anyone halp
    me with this?
    Thanx in advance
    marukas

    I've added screenshots to get better view of the problem.
    Here is chart with addtional series:
    Chart
    with multiple series
    And here nothing is changed except that additional line
    series were removed:
    Chart
    with only one CandlestickSeries
    Is it possible to get the same candles as in 2nd view with
    addiotnal series added?

  • Problems with flash transparent drop down menu over html in some browsers

    Hi everyone... this is my first post and it's about an issue
    that's causing me a few problems.
    I'm currently designing/ building my company's web site, the
    test page be viewed here: www.musflashtv.com/test.htm
    1) This layout contains an embeded flash movie (.swf) with a
    transparent background, this is the main navigation.
    The flash navigation has a drop down menu that animates down
    and covers the html page (containing links) below.
    The problem is that in most current browsers such as; Firefox
    2.0.05 (links below template don't work), Netscape 8.1.3
    (navigation drop down and links don't work) and Opera 9.10 (links
    below template don't work), any links just below the 'invisible'
    transparent area coverd by the navigation can't be clicked 'through
    the flash file'. The exception is IE 7.0, everything is fine there.
    (it hasn't been tested in any mac browsers though).
    Because the area below the navigation on
    www.kitachi.info/work is one large dummy jpeg file, the link below
    would be a much better example to look at.
    http://www.musflashtv.com/shows/ind...tlight-Sessions
    The flash navigation is embedded in the html (tlp) template
    file using the code below and aligned using an external style
    (.css) sheet, this html code not only embeds the flash movie but it
    also tells the browser to display it's background and as
    transparent. The flash movie is embedded in a layer that sits above
    the table.
    3) The flash embed code:
    <object
    classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="
    http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0"
    name="shows-navigation-tranparent" width="851" height="300"
    align="top" class="flash-navigation"
    id="shows-navigation-tranparent">
    <param name="allowScriptAccess" value="sameDomain" />
    <param name="movie"
    value="flash/navigation-tranparent.swf" />
    <param name="quality" value="high" />
    <param name="wmode" value="transparent" />
    <param name="bgcolor" value="#000000" />
    <param name="SCALE" value="exactfit" />
    <embed src="flash/navigation-tranparent.swf" width="851"
    height="300" align="top" quality="high" wmode="transparent"
    bgcolor="#000000" name="navigation-tranparent"
    allowscriptaccess="sameDomain" type="application/x-shockwave-flash"
    pluginspage="
    http://www.macromedia.com/go/getflashplayer"
    scale="exactfit" />
    </object>
    Does anybody know of any code that can solve this problem or
    know a different way of creating a flash navigation with a drop
    menu that can be embeded over html?
    Any help or advice would be greatly appreciated especially as
    this issue is holding back progress in a big way.
    Thanks in advance guys!
    Adie

    It's IE-only behaviour as a result of changes Microsoft made
    last
    year to their browser, regarding how Active Content (Flash,
    Quicktime etc)
    is handled, after losing a high profile court case.
    http://blog.deconcept.com/2005/12/15/internet-explorer-eolas-changes-and-the-flash-plugin/
    Background:
    http://en.wikipedia.org/wiki/Eolas
    See also
    http://www.adobe.com/devnet/activecontent/
    If you're running Dreamweaver 8.0.2, the fix is already built
    into DW's
    interface.
    If not, try
    http://blog.deconcept.com/swfobject/
    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
    ==================
    "swizzle_16" <[email protected]> wrote in
    message
    news:eqr0ib$48r$[email protected]..
    > Help please, I've put together a website using a drop
    down menu system
    > that
    > needs to drop down over a flash animation - I've managed
    to get the drop
    > downs
    > to go in front of the animation using the transparent
    tag - but each
    > option has
    > to be clicked on twice to get the link to work.
    >
    > Does anyone know how I can change it so the link needs
    to be only clicked
    > once?
    > The drop down menu system I've used is : * AnyLink Drop
    Down Menu- ©
    > Dynamic
    > Drive (www.dynamicdrive.com)
    >

  • Problem with multiple client numbers from a view

    Hi Gurus,
    I have a problem with a view
    Creates a view with a UNION ALL stmt
    =====================================
    Create view vw_benifits
    as
    SELECT
         Client_num, -- can have multiple values like 200,201,250
         PERNR,     
         OBJPS,     
         ENDDA,     
         BEGDA,
         AEDTM,     
         UNAME,
         COB_MNTH_AMT
    FROM
         STG_SAP_PA9211_TB
    UNION ALL
    SELECT
         null, -- no client number for legacy data
         PERNR,     
         OBJPS,     
         ENDDA,     
         BEGDA,
         AEDTM,     
         UNAME,
    COB_MNTH_AMT
    from
         LEG_STG_SAP_PA9211_TB;
    ==============================
    The second table contains legacy data (LEG_STG_SAP_PA9211_TB). The first table now contains multiple client data (ie the client_num can be 201,202,250 like that.
    Now if the users qery the view they will only get that clients data.
    eg selet * from vw_benifits where client_num=250 results only client 250 data. But I want to add the legacy data also with that.
    I don't want to propose
    selet * from vw_benifits where client_num in (250,NULL) since the users will be confused.
    Is there any other way to do this . my requirement is like
    If they query
    select * from vw_benifits where client_num=250, the data should include all the records satisfying client=250 + the records from the legacy data. The view need to be created like that.
    Appreciate your help
    Deepak

    Hi Thanks for the suggestion.
    But I am not sure this may work for me. Here my users may not be able to use that since they don't know Oracle.
    I want to hide that details from them
    They may just issue a statement like this
    select * from vw_benifits where client_num =250
    Or
    select * from vw_benifits where client_num =400 . But both times I need to show them the data from the legacy table.
    Deepak

  • Problems with Multiple Photo Galleries

    Hey all, I am having issues with multiple photo galleries. The problem is, iWeb will randomly delete old photo libraries when new ones are made.
    My workflow is each blog entry has its own Photo Library attached to it, so i really would love to be able to keep this functionality.
    Does anyone have any clues as to why they are getting deleted? They literally just vanish from the entries in iWeb...
    Many thanks, Matt

    mattperrott wrote:
    Each blog entry has a iweb photo gallery attached to it. I create these by duplicating a previous blog entry, and changing the details as well as the photos contained inside.
    Matt ~ Even without adding such complexity, many people have problems with their iWeb blog. So even if someone helps you to solve this problem, you may then be back with a different iWeb blog problem: Lost all your blog entries or all your comments or unable to publish, etc.
    mattperrott wrote:
    Any thoughts on why this might happen?
    The simple answer is that Apple's implementation of iWeb's blog appears to be buggy. Every day on these forums you'll likely see a couple of problems with iWeb's blog, often "solved" like this: +"I deleted my blog page, and was able to successfully publish the site"+. Also, if you ever have to re-publish everything (say, after upgrading iWeb) you'll wish you had a web-based blog.
    mattperrott wrote:
    This isnt a problem currently but if i ever need to republish my entire site it is a potential killer, especially as it grows...
    The person who posted the following thread had similar concerns saying: +"...I get the feeling when this gets bigger, it'll outgrow iWeb's capability."+ Read his solution here:
    _To blog or not to blog_
    And to link to an external blog from iWeb's navbar:
    Create a blank internal page titled "Blog" (Actually you can name the page whatever you want.) Then in that Blog page add an HTML Snippet with the following code:
    <script type="text/javascript">
    parent.window.location = "http://www.yourblogname.com"; // change this to your own URL
    </script>
    ...Once published, clicking on "Blog" in the navbar will immediately redirect to your external Blog page. (Thanks to Cyclosaurus for the code).
    By the way, rather than posting your URL in these forums like this:
    www.local-hero.com.au
    ...include the prefix to make it conveniently clickable:
    http://www.local-hero.com.au

  • Problems with multiple e-mail accounts on Droid 2 & also can't put phone into Silent mode

    I just received my Droid 2 and having a problems with having multiple e-mail accounts.
    My original droid worked fine with all of this.
    I have 2 different personal e-mail accounts setup.
    When I click e-mail, it just defaults to the default e-mail address and I have no way of switching accounts. I have to change the default e-mail account in order to view the other account.
    Along with having a shortcut on the home page to each e-mail account, it always just goes to the default one and no way of adding a shortcut to both.
    When I did this on the original droid, i could choose which e-mail account I wanted a shortcut for and could obviously have both on the home screen.
    I also have found no way to NAME the accounts, ex. Comcast & Work.
    That way I could distinguish the difference between the 2 on my home screen even if I could get a shortcut to both.
    not sure how this could be overlooked but I sure dont think there is a way to make this happen.
    Also, what is with 2.2 System and not allowing you to put it in silent mode?
    I updated my original Droid to 2.2 and could no longer make it silent with the volume button on side or going into the sound settings and changing it to silent, it would always stay on vibrate.
    And now it does the same thing with Droid 2. I cant make it silent at all.
    Any ideas on either issue

    becker800 wrote:
    ok I got the silent problem fixed.
    The update changed vibrate to be always, even when on Silent mode.
    The e-mail problem however is stll an issue and I realy hope they release an update to fix this.
    I'm sure I'm not the only one with 2 e-mail accounts on their droid.
    I never had an original Droid, so I can;t compare to what was on that.  For me, I am using the "Messaging" app - it seems to be set up for multiple e-mail accounts better than the email app.  Messaging is the one recommended by the manufacturer - give that a try.

Maybe you are looking for