Flip Over Components (Mirror Symmetry)

Hi,
I have to display dialogs, frames reversed like a mirror symmetry. How can flip over all components?
Or any tool to do it?

AbstractButton (which JButton extends) calls JComponent.paintImmediately upon a click, so I don't think you can stop it without overriding AbstractButton and JButton (not recommended).
Either override the paint method for your components to look like your overlaid image or remove your Swing components and test the mouse click location in the MouseListener.
--Jon

Similar Messages

  • How do you flip over frames?

    I took some video and loked down the orientation, so the video was captured "upside down".
    When I transfered it to iMovie, how would I "flip over" the clip?

    Hi
    Isn't it so that flip can have two meanings (at least it does to me)
    • 180 deg rotation
    • Mirroring
    180 deg - is as said - but Mirroring is harder - I think I had to export out as QuickTime .mov and in QuickTime-Pro or MPEG-StreamClip do the Mirroring then re-import.
    Yours Bengt W

  • How to paint over components in JWindow?

    Hi,
    Need to know if its possible to draw some lines over components in a JFrame or JWindow.
    Im writng a GUI for an mp3 player and one of the effects is to create scanlines over the Logo and Components (play, pause, etc)
    Heres what I'm trying to do:
    import java.awt.*;
    import java.awt.geom.RoundRectangle2D;
    import javax.swing.*;
    import java.awt.geom.Line2D;
    public class PLUSGUI extends JWindow {
         public PLUSGUI() {
              //super("+ PLUS-GUI");
              Container c = this.getContentPane();
              c.setBackground(Color.lightGray);
              this.setLayout(new FlowLayout());
              ClassLoader cldr = this.getClass().getClassLoader();
              java.net.URL imageURL   = cldr.getResource("+PLUS_Logo.jpg");
              ImageIcon PLUSLOGO = new ImageIcon(imageURL);
              this.add(new JLabel(PLUSLOGO));
              //this.add(new JButton("test"));
              //this.add(new JCheckBox("test"));
              //this.add(new JRadioButton("test"));
              this.add(new JProgressBar(0, 100));
              this.setSize(new Dimension(300, 300));
              this.setLocationRelativeTo(null);
              //this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              //this.setUndecorated(true);
    public void paint(Graphics g){
       Graphics2D g2 = (Graphics2D) g;
        g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
    //Draw the logo
    //g2.setPaint(Color.ORANGE);
    //g2.drawString("+ PLUS GUI", 50, 51);
    int x = 0;
    int y = 0;
    int w = 300;
    int h = 0;
    for (int i=0; i<150; i++){
       g2.setColor(Color.GRAY);
       g2.draw(new Line2D.Double(x, y, w, h));
       y=y+2;
       h=h+2;
         public static void main(String[] args) {
              //JFrame.setDefaultLookAndFeelDecorated(true);
              SwingUtilities.invokeLater(new Runnable() {
                   @Override
                   public void run() {
                        Window w = new PLUSGUI();
                        w.setVisible(true);
                        //com.sun.awt.AWTUtilities.setWindowOpacity(w, 0.5f);
                        com.sun.awt.AWTUtilities
                                  .setWindowShape(w, new RoundRectangle2D.Float(0, 0, w.getWidth(), w.getHeight(), 10, 10));
    }

    Custom painting is done by overriding the paintComponent(g) method of a Swing component that is not a top level container.
    You should never override the paint() method of a top level container (like JFrame, JWindow) espcially when you don't invoke super.paint(...).
    So if you want line above the label, then overide the label and add the custom code.
    Also, use proper Java naming convention. Class names and variable name should not be completely capitalized.

  • Adobe Captivate 7: "Flip over" animation?

    I'd like to include an animation that basically is circles that state "OBJECTIVES" and then having each circle "flip over" to show more text (the various objects of the video). Does Captivate have this type of animation/capability and I'm just missing it? Any suggestions? Thanks!

    Thanks,
    NeoSpeech seem to work on PC, not on a Mac.
    Their Voice Cloud service only offers English voices.
    In all the voices NeoSpeech offers, the only  French voice, is Chloe.
    Chloe is already installed with the language package for Captivate, and work´s well.
    Still can’t find a French MAN spoking voice to integrate directly into Captivate…
    Althought I found this (where there is two french man’s voices) : http://www2.research.att.com/~ttsweb/tts/demo.php
    But, needs to be generated on the web, then needs to be dowlaoded, then need to be imported into the project, and then must be synchronised into the timeline... 
    Thanks again and have a nice day
    Mel

  • Palm TX digitizer changeout and flip over screen cover needed

    I am trying to make my TX last until the PRE is available at Verizon and need to change the digitizer. I purchased a glass digitizer and tools to change it. I watched two videos and can't seem to see how to disconnect the cable connector from the motherboard. The one video is so out of focus and the guy's hands are in the way and the other guy doesn't even show this step. Does anyone know how to do this? I know it must be very easy, but I'm afraid of breaking something.
    The other thing that I need is the flip over cover for the display that comes with a new one. I can't see where I can purchase a replacement. I looked at PDAParts and they don't have it.
    Post relates to: Palm TX
    Post relates to: Palm TX

    Hi..  Welcome to the Palm forums.  Just did a google search for palm tx flip cover and found a couple of links;
    http://www.unityelectronics.com/product-product_id/4867
    http://www.pricewatch.com/pda_and_accessories/cover.htm
    Either link should take care of you issue.  You may have to copy and paste the above links into you browser to get them to work.
    Post relates to: Centro (Sprint)

  • My iphone plays pandora and youtube music but it will not play my itunes music whenever i try to hit play the button flips over to pause as normal but the music dosent work?

    my iphone plays pandora and youtube music but it will not play my itunes music whenever i try to hit play the button flips over to pause as normal but the music dosent work?

    I can understand this with videos you are streaming, i.e. maybe you have a slow data connection.
    Videos on your phone should not do this.  Try a reset by pressing the home and sleep buttons until you see the Apple logo, ignoring the slider. Takes about 5-15 secs of button holding and you won't lose any data or settings.

  • Nightly Builds - White Blocks Over Components?

    Hello,
    Working on a flex 4 project, have been using the latest milestone release (4.0.0.10485) — though need to implement drag drop in List components (which isnt supported in this release) Have just tried using some of the nightly builds and all my components render with big white blocks over them. Anyone seen this behaviour? Ideas on what might be causing it?
    Thanks,
    Rory

    ok ok. As you can see by the title of the post, I had originally intended to submit them to jira, but got lazy. However, today's a new day and the feature requests have been filed as follows:
    http://bugs.adobe.com/jira/browse/FB-23588
    http://bugs.adobe.com/jira/browse/FB-23589
    http://bugs.adobe.com/jira/browse/SDK-23822
    http://bugs.adobe.com/jira/browse/FB-23590
    http://bugs.adobe.com/jira/browse/FB-23591
    http://bugs.adobe.com/jira/browse/FB-23592
    http://bugs.adobe.com/jira/browse/FB-23593
    http://bugs.adobe.com/jira/browse/SDK-23823
    http://bugs.adobe.com/jira/browse/SDK-23824
    #10, #11 don't really need to be filed.
    @Peter, yes pd means you. -- it's got a nice ring to it, but I'll stick with Peter until I hear otherwise.
    @David, it's true, I would code all night if the g.f. would let me (and I still manage to sneak a few early-dawn marathons in anyway). I'm convinced though, that you don't get any sleep at all!
    - e

  • Flipped type on mirrored path

    When a path (quarter circle, or curve) with type is mirrored, the type then is backwards, or reverse reading. Is there a way to undo the flipped type after the mirror operation or even better, an option to prevent it before the mirror step?
    I've looked at Adobe Illustrator Help and tried to figure it out on my own with no luck.
    Any thoughts on this?
    Thanks.

    Not sure if this is what you mean but the only way I could do it was to first mirror the text on a staright line with the reflex tool and the curve it with a mesh or use the warp  feature and to get a perspective use the free distort effect  I guess it could also be done with the Free Transform tool.
    Once youy reflex the type you have the group them but you have to free distor only the reflexed version

  • Photo flipped over

    I took a photo a while back and transferred it from the camera to iPhoto. It looked fine, then in preparation for copying it to the iPod Touch, I dragged it to a folder on the hard drive. After it dragged over it also flipped upside-down. Hmmm...I rotated it back over and saved changes and when I open it there, it is always correct...but when I copied it to the iPod it is now upside-down again. Is there a way to overcome? Thx! Eric

    I rotated it back over and saved changes and
    There are 2 ways software can rotate an image; the easiest way is to just change the information in the file header, the other is to actually rotate the image data to change the data in the file.
    Some applications take the easy way out and just change the header; some viewing applications take the easy way out and ignore the header and just look at the file data. In this case, the image viewed wouldn't be rotated.
    What application are you using to rotate the image?

  • Scrolling over components

    I am having trouble and this may not even be possible but my aim is to have a scroller similar to a standard html site.
    I have accomplished this by using:
    <s:Scroller id="my_scroller" width="100%" height="100%" horizontalScrollPolicy="auto" verticalScrollPolicy="auto">
            <s:Group>            
               <mx:ModuleLoader id="header_module_loader" left="0" top="0" width="100%" height="150" />
                <s:BorderContainer id='main' width="100%" height="100%" left="0" top="150" skinClass="skins.gradient_background">
                            <mx:ModuleLoader id="main_module_loader"
                                                 top="5"
                                                 bottom="10"
                                                 width="1000"
                                                 height="100%"
                                                 horizontalCenter="0"
                                                 borderVisible="false"
                                                 cornerRadius="10" />
                </s:BorderContainer>
            </s:Group>
        </s:Scroller>
    This works fine except for the fact that the scrolling will not work if the mouse is hovering over some components.  I am not sure exactly which ones do it but I know that <s:TextArea>, <s:List> are 2 of them.  In other words if my mouse pointer is over the background (id='main') it will scroll with no problem, but if  the mouse pointer is over the list in the module (main_module_loader) it will not scroll the bg.  I understand the fact that the component has its own "area" but is there not a way around this?  Sort of like a "scroll whole page" feature?
    Couple Notes:
    The module loader main_module_loader is loading a module with a height of 1000.
    I tried setting the "scroller" attribute of the <s:List> to parentApplication.my_scroller.
    I have been struggling with this on several applications and have ended up redesigning the whole page in order to avoid scrolling in that manner (simple html scrolling).  This project is too big to not have scrolling and I would really like to do it in Flex but if the scrolling doesn't work, then I may have to step back and just do a lot of html/php/javascript/css.
    Thanks for any help.

    I am not sure of the best way to explain the "hovering".  When I say "hovering" I do not mean like onHover.  It is much more simplified than that, I am meaning the exact location of the mouse pointer on your screen.  In other words if I move the mouse pointer over one of the panels on the image in my previous post (and then stop moving the mouse) and then scroll the wheel, the page will not will not scroll based on the outer scroller that is defined in the image above.  I cannot figure out a way to include the component inside the "main" scroller.  This is really hard to explain but when you see it, very easy.  I am not trying to use "hover" as the term we would normally think of it as programmers.
    I am going on a backpacking trip for the weekend and will not be able to respond until Monday.  I greatly appreciate any help you can offer and hope you can help me solve this issue.  Like I said before, not being able to have scrolling similar to standard pages makes some clients hesitant to want a site developed in Flex.
    Thanks,
    Justin

  • Front Camera on iPhone 4s flips pictures horizontally (mirrored) how can i fix this?

    I have used the front camera many times and the pictures have come out the same way it looks on the screen. Recently, just today, the camera takes the picture but when i go to the photo library it has been mirrored, (flipped horizontally). This never occured before, how can i fix this? The other camera works fine.

    take a look here:
    https://discussions.apple.com/thread/2491655
    It was, you just didn't notice it

  • Painting over components

    Hi,
    I have the following panel which displays a series of labels, however when i try and draw a string onto the panel, all of the components disappear when the string is drawn, can someone please help me.
    Thanks
    Cath
    import javax.swing.*;
    import javax.swing.border.*;
    import java.awt.*;
    import java.awt.event.*;
    public class CurrentPlayersPane extends JPanel
         public CurrentPlayersPane()
              setLayout(null);
              red = new ImageIcon("images/red.gif");
              yellow = new ImageIcon("images/yellow.gif");
              green = new ImageIcon("images/green.gif");
              blue = new ImageIcon("images/blue.gif");
              cyan = new ImageIcon("images/cyan.gif");
              magenta = new ImageIcon("images/magenta.gif");
              red_l = new JLabel(red); red_l.setBounds(RIGHT, 10, 14, 14); add(red_l);
              yellow_l = new JLabel(yellow); yellow_l.setBounds(RIGHT, 27, 14, 14); add(yellow_l);
              green_l = new JLabel(green); green_l.setBounds(RIGHT, 44, 14, 14); add(green_l);
              blue_l = new JLabel(blue); blue_l.setBounds(RIGHT, 61, 14, 14); add(blue_l);
              cyan_l = new JLabel(cyan); cyan_l.setBounds(RIGHT, 78, 14, 14); add(cyan_l);
              magenta_l = new JLabel(magenta); magenta_l.setBounds(RIGHT, 95, 14, 14); add(magenta_l);
              player1 = new JLabel(); player1.setBounds(RIGHT+20, 10, 100, 14); add(player1);
              player2 = new JLabel(); player2.setBounds(RIGHT+20, 27, 100, 14); add(player2);
              player3 = new JLabel(); player3.setBounds(RIGHT+20, 44, 100, 14); add(player3);
              player4 = new JLabel(); player4.setBounds(RIGHT+20, 61, 100, 14); add(player4);
              player5 = new JLabel(); player5.setBounds(RIGHT+20, 78, 100, 14); add(player5);
              player6 = new JLabel(); player6.setBounds(RIGHT+20, 95, 100, 14); add(player6);
              arrow = new ImageIcon("images/arrow.gif");
              arrow_l = new JLabel(arrow); add(arrow_l);
         public void paint(Graphics g) {
              g.drawString("Hello World", 75, 50);
         // displayName() - Display the name of a player on the game board
         private void displayName(String name, int playerNo) {
              switch(playerNo)
                   case 1:
                        player1.setText(name);
                        break;
                   case 2:
                        player2.setText(name);
                        break;
                   case 3:
                        player3.setText(name);
                        break;
                   case 4:
                        player4.setText(name);
                        break;
                   case 5:
                        player5.setText(name);
                        break;
                   case 6:
                        player6.setText(name);
                        break;
         // moveArrow() - Move the arrow to point to the current player
         public void moveArrow(int playerNo) {
              arrow_l.setBounds(10, ARROWPOS[playerNo - 1], 29, 15);
         private Icon red, yellow, green, blue, cyan, magenta;
         private JLabel red_l, yellow_l, green_l, blue_l, cyan_l, magenta_l;
         private JLabel player1, player2, player3, player4, player5, player6;
         private ImageIcon arrow;
         private JLabel arrow_l;
         private final static int RIGHT = 45;
         private final static int[] ARROWPOS = {10, 27, 44, 61, 78, 95};
    }

    sorry, one more question, i need a panel which needs to shows some components (e.g. JSlider and labels) only at specific times. So there will be a blank panel most of the time but occasionally i will need to show these components, how can i achieve this?
    Many thanks
    Cath

  • Flash gallery (image flip over)

    Hi, anyone know if actionscript can do this kind of effect ? any similar tutorial i can find? or i can modify from market existing third party software? Many thanks.
    http://www.sonyericsson.com/cws/cws/home?cc=ca&lc=en

    flash can do that alone, as i mentioned in my email.

  • After Quicktime Update - Flips over to finder

    AFter updating my system to the latest version of Quicktime (auto update) every 5 mins or so the OS makes the finder window the primary window.
    Machine keeps working BUT very very annoying!
    Idea's?

    Check for incompatible third party applications.
    [Finder crashes associated with using Stuffit|http://discussions.apple.com/thread.jspa?threadID=1873700&tstart=0]
    [Finder crashing/looping/closing folders (Stuffit issue)|http://discussions.apple.com/thread.jspa?threadID=1882285&tstart=0]
    [Finder crashes associated with using Afloat|http://discussions.apple.com/message.jspa?messageID=8852780#8852780]

  • Display mirroring or flipping

    Hi, im wondering is there any chance to flip display in mirror mode, so everything looks like in mirror. Some days ago i found, that putting phone on cars dash its reflect on windscreen very nice and there is very easy to follom navigation only dissadvantage, that all is projected in mirror mode, so i need to make phone dispalying in mirror mode to see all info normaly

    Its already registered at Beta Labs..
    http://betalabs.nokia.com/apps/ovi-maps-30-beta-for-mobile/suggestion/ability-to-set-reverse-or-inve...
    --------------------------------------------------​--------------------------------------------------------​--------------------------------------------------​--If you find this helpful, pl. hit the White Star in Green Box...

Maybe you are looking for

  • Apple TV closed captioning text box location

    Can the location of the closed caption text box be moved? It is appearing at the top of the screen when I would like it on the bottom of the screen.

  • Sql server 2008/2012 Trigger Query

     Hi All, I am trying to create a SLQ server trigger so that when TAS1 code is 003 then change the HRSCODE to OTHR. Would anyone be able to provide me with a sample code as to do this please ?

  • How do i get data when displaying error message in BDC

    hi, I have generated one internal table for displaying error message using BDCMSGCOLL, i want the the error to display according to the field name, Hw can i get it... ex: <Material name> Error message as name already created or unit doesnt exit... Pl

  • Work Flow Doubt

    Hi Experts, I have a custom business object(An extension of the standard one BUS2012). Say I have a method abc. I have defined some importing parameters for this method. To get the data from the workflow container, i have used the following statement

  • Aperture Library vs Aperture Library_original

    Hi all, I have just completed my installation/upgrade from AP2 > AP3.... I'm liking the difference in speed definitely. A quick question, which may be redundant but I would like to be sure. I have a 1TB drive with my Aperture Library on. The *previou