Resizing does not resize graphics?

Hi,
I'm playing with a layout that is created using floats and em
for size. The
audience will be older seniors, so I would like the page to
resize both
larger and smaller.
The page has graphics that are screwing up the resizing to a
smaller size so
that some of the floats are dropping. Is there any way of
controlling what
happens with the graphics to stop the float drops, or am I
doing something
else wrong?
IE6 - when going smaller, the float drop problem occurs.
FF2 - works ok, but graphics stay same size, so
proportionally not right.
Opera9 - works the way I want, graphics resize too, so all is
proportional.
http://jmt.jobmark.com/jmo/workforce50/template2.htm
The css is in the template.
Thanks,
Doug

Thanks Murray,
As soon as I wrote the min-width and sent it, I realized IE
doesn't support
it. I thought it was the other way around and it was
supported by IE6 until
I looked it up. I ended up not floating the middle section,
not setting a
width for it and just setting left and right margins using
em's. That seems
to have worked.
Doug
"Murray *ACE*" <[email protected]> wrote
in message
news:[email protected]...
> Since IE6 doesn't support min-width, probably not. Just
try making that
> section about 3px narrower to see if that helps.
>
> --
> 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
> ==================
>
>
> "Doug" <[email protected]> wrote in message
> news:[email protected]...
>> Murry,
>>
>> I just used "float drop" for lack of a better term.
Since this only seems
>> to happen in IE6 (not sure about IE7), would the
min-width for the middle
>> section be a solution?
>>
>> Doug
>>
>> "Murray *ACE*"
<[email protected]> wrote in message
>> news:[email protected]...
>>>> or am I doing something else wrong?
>>>
>>> What causes the floats to drop is when the
containing box resizes to
>>> something too narrow to place the floated
element beside the rest of the
>>> content.
>>>
>>> When you resize the browser viewport, graphics
do not resize.
>>>
>>> I do not see float drop in IE6, by the way.
>>>
>>>
>>> --
>>> 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
>>> ==================
>>>
>>>
>>> "Doug" <[email protected]> wrote in
message
>>> news:[email protected]...
>>>> Hi,
>>>>
>>>> I'm playing with a layout that is created
using floats and em for size.
>>>> The audience will be older seniors, so I
would like the page to resize
>>>> both larger and smaller.
>>>>
>>>> The page has graphics that are screwing up
the resizing to a smaller
>>>> size so that some of the floats are
dropping. Is there any way of
>>>> controlling what happens with the graphics
to stop the float drops, or
>>>> am I doing something else wrong?
>>>>
>>>> IE6 - when going smaller, the float drop
problem occurs.
>>>> FF2 - works ok, but graphics stay same size,
so proportionally not
>>>> right.
>>>> Opera9 - works the way I want, graphics
resize too, so all is
>>>> proportional.
>>>>
>>>>
http://jmt.jobmark.com/jmo/workforce50/template2.htm
>>>>
>>>> The css is in the template.
>>>> --
>>>> Thanks,
>>>>
>>>> Doug
>>>>
>>>
>>>
>>
>>
>
>

Similar Messages

  • Using Win 7 64bit on desktop and laptop. OK on laptop; desktop does not load graphics in broswer with/without exts/addons. Any ideas?

    Browser loads text on page but not full graphics - some - sometimes; sometimes none. I use same search engine on both desktop and laptop. I've tried disabling add-ons and extensions but it makes no difference. As I didn't know which version of Shockwave Flash to install I've installed both!!!

    Thanks for this. I could not select Shockwave Flash 9.0.45.0 - but downloaded the uninstaller from Adobe which removed the newer Flash 11 version. I reopened Firefox in Safe Mode and yes, Flash 9 was still there. I ran the uninstaller again - after closing Firefox. It said that Flash was removed however when I reopened Firefox in Safe Mode - Flash 9 was still there - disabled - but there. Nothing appears in the Control Panel/Programs list. So how do I uninstall this older version?
    Graphics problem continues in Safe Mode.
    After reading: Flash 9.0 r28 and below: Your Windows list of installed programs may have an entry for "Adobe Flash Player ActiveX" but this will only remove the Flash Player for Internet Explorer and AOL. To completely remove Flash from your system, download the Flash uninstaller from Adobe.com. To remove Flash from Mozilla browsers only, delete these Flash plugin files from all locations. [17]
    I searched for but did not find:
    NPSWF32.dll
    flashplayer.xpt
    This sort of stuff is out of my comfort zone!

  • TS3408 I am unable to use Safari because the web pages fail to load or does not load graphics.  I am not pleased with the current Safari and will now have to use a secondary browser.

    My issues is with multiple websites.  Buttons do not work, pages do not load completly or the graphics are not visible.  I need to use another browser such as FIrefox or Chrome.

    Please read this whole message before doing anything.
    This procedure is a test, not a solution. Don’t be disappointed when you find that nothing has changed after you complete it.
    Step 1
    The purpose of this step is to determine whether the problem is localized to your user account.
    Enable guest logins* and log in as Guest. Don't use the Safari-only “Guest User” login created by “Find My Mac.”
    While logged in as Guest, you won’t have access to any of your personal files or settings. Applications will behave as if you were running them for the first time. Don’t be alarmed by this; it’s normal. If you need any passwords or other personal data in order to complete the test, memorize, print, or write them down before you begin.
    Test while logged in as Guest. Same problem?
    After testing, log out of the guest account and, in your own account, disable it if you wish. Any files you created in the guest account will be deleted automatically when you log out of it.
    *Note: If you’ve activated “Find My Mac” or FileVault, then you can’t enable the Guest account. The “Guest User” login created by “Find My Mac” is not the same. Create a new account in which to test, and delete it, including its home folder, after testing.
    Step 2
    The purpose of this step is to determine whether the problem is caused by third-party system modifications that load automatically at startup or login, by a peripheral device, by a font conflict, or by corruption of the file system or of certain system caches.
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards, if applicable. Start up in safe mode and log in to the account with the problem. You must hold down the shift key twice: once when you boot, and again when you log in.
    Note: If FileVault is enabled, or if a firmware password is set, or if the boot volume is a software RAID, you can’t do this. Ask for further instructions.
    Safe mode is much slower to boot and run than normal, with limited graphics performance, and some things won’t work at all, including sound output and Wi-Fi on certain models. The next normal boot may also be somewhat slow.
    The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    Test while in safe mode. Same problem?
    After testing, reboot as usual (not in safe mode) and verify that you still have the problem. Post the results of Steps 1 and 2.

  • Audio waveform does not appear graphically.

    Line is straight. Size of Audiotrack doesn´t matter. 
    Recording with Blue USB-Mic, Logic X, Mavericks and a Mac Book Pro.
    (In Logic Express 8 it gives something like create audio overview, but I dont find it in LP X.)
    What setting have I missed?

    Hi,
    Tobimusic wrote:
    Well, I found the command but it was not applyable. Text is dimmed. Tried Update File Information but that made no difference.
    The file (not the region) needs to be selected for the option to be appliable.
    Tobimusic wrote:
    The graphic is well shown in the imported files but not in the newly recorded file.
    Yes, because the recording delay preference applies to recorded audio only.
    Tobimusic wrote:
    I´ll try the recording tip later today and come back on that. Perhaps that also fixes the tendency of delay in recording. (Forgot to write that earlier. )
    Yes, it will fix both problems.
    J.

  • PDF looks fine on screen but text does not print

    PDF created from Word looks fine on screen but text does not print (graphics do). Alos loses text on FTP or Email.  Windows 8.1 64bit. Acrobat XI Std. Word2013. Print to PDF from Word 600dpi, use doc fonts, download as softfont. Arial, calibrai - all fonts lost. Same issue as Phillipio61 and alacker2?.

    Problem not with all fonts.  Problem with arial and calibri fonts - maybe others.  Times New Roman, gil sans, viner are OK for example.

  • JApplet does not resize correctly

    Hello,
    I'm trying to practice with JLayeredPane in JApplet.
    The problem is that when i resize the applet JButton b3 is painted "as a background", and still works as a JButton.
    Why doesn't it resize correctly as the other JComponent do?
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    public class JLayeredPaneDemo extends JApplet {
         public void paint(Graphics g) {
              final JLabel l1 = new JLabel("LABEL 1",JLabel.CENTER);
              final JLabel l2 = new JLabel("LABEL 2",JLabel.CENTER);
              final JLabel l3 = new JLabel("LABEL 3",JLabel.CENTER);
              resize(400,300);
              l1.setOpaque(true);
              l1.setBackground(Color.blue);
              l1.setBorder(BorderFactory.createLineBorder(Color.black,2));
              l2.setOpaque(true);
              l2.setBackground(Color.green);
              l2.setBorder(BorderFactory.createLineBorder(Color.black,2));
              l3.setOpaque(true);
              l3.setBackground(Color.yellow);
              l3.setBorder(BorderFactory.createLineBorder(Color.black,2));
              l1.setBounds(0,0,100,100);
              l2.setBounds(30,30,100,100);
              l3.setBounds(60,60,100,100);
              getLayeredPane().add(l1,new Integer(1));
              getLayeredPane().add(l2,new Integer(2));
              getLayeredPane().add(l3,new Integer(3));
              JButton b1 = new JButton("LABEL 1 ON TOP");
              JButton b2 = new JButton("LABEL 2 ON TOP");
              JButton b3 = new JButton("LABEL 3 ON TOP");
              b1.setBounds(220,0,150,40);
              b2.setBounds(220,40,150,40);
              b3.setBounds(220,80,150,40);
              b1.addActionListener(new ActionListener() {
                   public void actionPerformed(ActionEvent e) {
                        if(getLayeredPane().getLayer(l2)>getLayeredPane().getLayer(l3))
                             getLayeredPane().setLayer(l1,new Integer(getLayeredPane().getLayer(l2)+1));
                        else
                             getLayeredPane().setLayer(l1,new Integer(getLayeredPane().getLayer(l3)+1));
              b2.addActionListener(new ActionListener() {
                   public void actionPerformed(ActionEvent e) {
                        if(getLayeredPane().getLayer(l1)>getLayeredPane().getLayer(l3))
                             getLayeredPane().setLayer(l2,new Integer(getLayeredPane().getLayer(l1)+1));
                        else
                             getLayeredPane().setLayer(l2,new Integer(getLayeredPane().getLayer(l3)+1));
              b3.addActionListener(new ActionListener() {
                   public void actionPerformed(ActionEvent e) {
                        if(getLayeredPane().getLayer(l1)>getLayeredPane().getLayer(l2))
                             getLayeredPane().setLayer(l3,new Integer(getLayeredPane().getLayer(l1)+1));
                        else
                             getLayeredPane().setLayer(l3,new Integer(getLayeredPane().getLayer(l2)+1));
              add(b1);
              add(b2);
              add(b3);
    }If i use the init() method instead of the paint(Graphics g) method JButton b3 is painted as large as possible since the beginning.
    thanx in advance :)

    Swing related questions should be posted in the Swing forum.
    If i use the init() method instead of the paint(Graphics g) methodWell, thats the proper way to write a Swing applet. The code for building the GUI should be in the init() method. You never need to override the paint() method of the JApplet.
    Components will not be automatically resized when the size of the applet changes. A layered pane does not use a layout manager, therefore it is up to you to manually change the size of each component. You can add a ComponentListener to the applet to be notified when the size changes.

  • Popup windows are small and cannot be resized in Firefox v31.0. v30.0 and earlier does not have this problem. Example: Hostgator's SmarterMail. XP, 7, 8.1.

    My webmail interface is SmarterMail from Plesk as supplied by Hostgator. When Firefox updated to v31.0, I lost the ability to send mail because the popup windows for "New", "Reply", "Reply All", and "Forward" are too small to enter information and cannot be resized or maximized.
    This problem does not occur with older versions of Firefox (tested 16.0.2, 21.0, 24.0, and 30.0) or with Chrome or Internet Explorer. While I am writing to you from a Windows XP Pro SP3 system, I have also verified the problem under Windows 7 Pro (x64) and Windows 8.1 (x64).
    It's not profile settings, malware, or add-ons. I've tried Firefox Safemode and I've tried "Reset Firefox".
    For the time being the workaround is to disable Firefox updates and downgrade everybody with v31 to v30. Please fix this ASAP. You have lots of people reporting it.

    As a temporary workaround, you can block website scripts from resizing windows. It's a bit of a sledgehammer, but another user who has this problem indicated that it does stop the SmarterMail script from rolling up the window.
    Here's how:
    (1) In a new tab, type or paste '''about:config''' in the address bar and press Enter. Click the button promising to be careful.
    (2) In the search box above the list, type or paste '''dom''' and pause while the list is filtered
    (3) Double-click the '''dom.disable_window_move_resize''' preference to switch it from false to true.

  • In Adobe Acrobat X Standard, our user used to be able to resize drawings to 8.5 x 10, it stopped working yesterday. It allows her to do this without an error but the size does not change?

    In Adobe Acrobat X Standard, our user used to be able to resize drawings to 8.5 x 10, it stopped working yesterday. It allows her to do this without an error but the size does not change?

    Try unmounting the volume on your iMac using Disk Utility. Then mount it again. You may need to reboot the laptop or relaunch its Finder process (using the Force Quit window) after remounting the drive on your iMac. Remember that no process may be accessing any files on the drive you plan to unmount, or the unmount will fail. Unmounting and remounting an external drive on my iMac made it become visible on my MacBook Pro after it had disappeared.

  • Node Container that does not resize with Window Resize Event

    Hello,
    I'm not new to Java but I am new to JavaFX.
    I plan to have a container/Canvas with multiple shapes (Lines, Text, Rectangle etc) in it. This Container can be X times in the Szene with different Text Shapes. I need to Zoom and Pan (maybe rotation) the whole Szene and the Containers/Canvas.
    So I was playing around with that but I have two issues.
    1) all Canvas classes that I found (like Pane for example) do resize with the main window resize event. The content of the canvas isn't centered any more.
    2) I added a couple of Rectangles to the canvas and both the rectangles and the canvas have a mouse listener which will rotate the item/canvas. Problem is, that even if I click the rectangle also the underlaying canvas is rotated...I think I need some kind of Z-Info to find out what was clicked.
    Here is the little example program, it makes no produktiv sense but it demonstrates my problem.
    Does anybody has a tip what canvas class would fit and does not resize with the main window and how to figure out what was clicked?
    public class Test extends Application
         Scene mainScene;
         Group root;
         public static void main(String[] args)
            launch(args);
        @Override
        public void init()
            root = new Group();
            int x = 0;
            int y = -100;
            for(int i = 0; i < 5; i++)
                 x = 0;
                 y = y + 100;
                 for (int j = 0; j < 5; j++)
                      final Rectangle rect = new Rectangle(x, y, 30 , 30);
                       final RotateTransition rotateTransition = RotateTransitionBuilder.create()
                             .node(rect)
                             .duration(Duration.seconds(4))
                             .fromAngle(0)
                             .toAngle(720)
                             .cycleCount(Timeline.INDEFINITE)
                             .autoReverse(true)
                             .build();
                     rect.setOnMouseClicked(new EventHandler<MouseEvent>()
                          public void handle(MouseEvent me)
                               if(rotateTransition.getStatus().equals(Animation.Status.RUNNING))
                                    rotateTransition.setToAngle(0);
                                    rotateTransition.stop();
                                    rect.setFill(Color.BLACK);
                                    rect.setScaleX(1.0);
                                    rect.setScaleY(1.0);
                               else
                                    rect.setFill(Color.AQUAMARINE);
                                    rect.setScaleX(2.0);
                                    rect.setScaleY(2.0);
                                    rotateTransition.play();
                      root.getChildren().add(rect);
                      x = x + 100;
        public void start(Stage primaryStage)
             final Pane pane = new Pane();
             pane.setStyle("-fx-background-color: #CCFF99");
             pane.setOnScroll(new EventHandler<ScrollEvent>()
                   @Override
                   public void handle(ScrollEvent se)
                        if(se.getDeltaY() > 0)
                             pane.setScaleX(pane.getScaleX() + 0.01);
                             pane.setScaleY(pane.getScaleY() + 0.01);
                        else
                             pane.setScaleX(pane.getScaleX() - 0.01);
                             pane.setScaleY(pane.getScaleY() - 0.01);
             pane.getChildren().addAll(root);
             pane.setOnMouseClicked(new EventHandler<MouseEvent>(){
                   @Override
                   public void handle(MouseEvent event)
                        System.out.println(event.getButton());
                        if(event.getButton().equals(MouseButton.PRIMARY))
                             System.out.println("primary button");
                             final RotateTransition rotateTransition2 = RotateTransitionBuilder.create()
                                  .node(pane)
                                  .duration(Duration.seconds(10))
                                  .fromAngle(0)
                                  .toAngle(360)
                                  .cycleCount(Timeline.INDEFINITE)
                                  .autoReverse(false)
                                  .build();
                             rotateTransition2.play();
             mainScene = new Scene(pane, 400, 400);
             primaryStage.setScene(mainScene);
            primaryStage.show();
    }Edited by: 953596 on 19.08.2012 12:03

    To answer my own Question, it depends how you add childs.
    It seems that the "master Container", the one added to the Scene will allways resize with the window. To avoid that you can add a container to the "master Container" and tell it to be
    pane.setPrefSize(<child>.getWidth(), <child>.getHeight());
    pane.setMaxSize(<child>.getWidth(), <child>.getHeight());
    root.getChildren().add(pane);and it will stay the size even if the window is resized.
    Here is the modified code. Zooming and panning is working, zomming to window size is not right now. I'll work on that.
    import javafx.animation.Animation;
    import javafx.animation.ParallelTransition;
    import javafx.animation.ParallelTransitionBuilder;
    import javafx.animation.RotateTransition;
    import javafx.animation.RotateTransitionBuilder;
    import javafx.animation.ScaleTransitionBuilder;
    import javafx.animation.Timeline;
    import javafx.animation.TranslateTransitionBuilder;
    import javafx.application.Application;
    import javafx.event.EventHandler;
    import javafx.geometry.Point2D;
    import javafx.scene.Group;
    import javafx.scene.Scene;
    import javafx.scene.input.MouseButton;
    import javafx.scene.input.MouseEvent;
    import javafx.scene.input.ScrollEvent;
    import javafx.scene.layout.Pane;
    import javafx.scene.paint.Color;
    import javafx.scene.shape.Rectangle;
    import javafx.stage.Stage;
    import javafx.util.Duration;
    public class Test extends Application
         Stage primStage;
        Scene mainScene;
         Group root;
         Pane masterPane;
         Point2D dragAnchor;
         double initX;
        double initY;
         public static void main(String[] args)
            launch(args);
        @Override
        public void init()
            root = new Group();
            final Pane pane = new Pane();
            pane.setStyle("-fx-background-color: #CCFF99");
            pane.setOnScroll(new EventHandler<ScrollEvent>()
                @Override
                public void handle(ScrollEvent se)
                    if(se.getDeltaY() > 0)
                        pane.setScaleX(pane.getScaleX() + pane.getScaleX()/15);
                        pane.setScaleY(pane.getScaleY() + pane.getScaleY()/15);
                        System.out.println(pane.getScaleX() + " " + pane.getScaleY());
                    else
                        pane.setScaleX(pane.getScaleX() - pane.getScaleX()/15);
                        pane.setScaleY(pane.getScaleY() - pane.getScaleY()/15);
                        System.out.println(pane.getScaleX() + " " + pane.getScaleY());
            pane.setOnMousePressed(new EventHandler<MouseEvent>()
                public void handle(MouseEvent me)
                    initX = pane.getTranslateX();
                    initY = pane.getTranslateY();
                    dragAnchor = new Point2D(me.getSceneX(), me.getSceneY());
            pane.setOnMouseDragged(new EventHandler<MouseEvent>()
                public void handle(MouseEvent me) {
                    double dragX = me.getSceneX() - dragAnchor.getX();
                    double dragY = me.getSceneY() - dragAnchor.getY();
                    //calculate new position of the pane
                    double newXPosition = initX + dragX;
                    double newYPosition = initY + dragY;
                    //if new position do not exceeds borders of the rectangle, translate to this position
                    pane.setTranslateX(newXPosition);
                    pane.setTranslateY(newYPosition);
            int x = 0;
            int y = -100;
            for(int i = 0; i < 5; i++)
                 x = 0;
                 y = y + 100;
                 for (int j = 0; j < 5; j++)
                      final Rectangle rect = new Rectangle(x, y, 30 , 30);
                       final RotateTransition rotateTransition = RotateTransitionBuilder.create()
                             .node(rect)
                             .duration(Duration.seconds(4))
                             .fromAngle(0)
                             .toAngle(720)
                             .cycleCount(Timeline.INDEFINITE)
                             .autoReverse(true)
                             .build();
                     rect.setOnMouseClicked(new EventHandler<MouseEvent>()
                          public void handle(MouseEvent me)
                               if(rotateTransition.getStatus().equals(Animation.Status.RUNNING))
                                    rotateTransition.setToAngle(0);
                                    rotateTransition.stop();
                                    rect.setFill(Color.BLACK);
                                    rect.setScaleX(1.0);
                                    rect.setScaleY(1.0);
                               else
                                    rect.setFill(Color.AQUAMARINE);
                                    rect.setScaleX(2.0);
                                    rect.setScaleY(2.0);
                                    rotateTransition.play();
                      pane.getChildren().add(rect);
                      x = x + 100;
            pane.autosize();
            pane.setPrefSize(pane.getWidth(), pane.getHeight());
            pane.setMaxSize(pane.getWidth(), pane.getHeight());
            root.getChildren().add(pane);
            masterPane = new Pane();
            masterPane.getChildren().add(root);
            masterPane.setStyle("-fx-background-color: #AABBCC");
            masterPane.setOnMousePressed(new EventHandler<MouseEvent>()
               public void handle(MouseEvent me)
                   System.out.println(me.getButton());
                   if((MouseButton.MIDDLE).equals(me.getButton()))
                       double screenWidth  = masterPane.getWidth();
                       double screenHeight = masterPane.getHeight();
                       System.out.println("screenWidth  " + screenWidth);
                       System.out.println("screenHeight " + screenHeight);
                       System.out.println(screenHeight);
                       double scaleXIs     = pane.getScaleX();
                       double scaleYIs     = pane.getScaleY();
                       double paneWidth    = pane.getWidth()  * scaleXIs;
                       double paneHeight   = pane.getHeight() * scaleYIs;
                       double screenCalc    = screenWidth > screenHeight ? screenHeight : screenWidth;
                       double scaleOperator = screenCalc  / paneWidth;
                       double moveToX       = (screenWidth/2)  - (paneWidth/2);
                       double moveToY       = (screenHeight/2) - (paneHeight/2);
                       System.out.println("movetoX :" + moveToX);
                       System.out.println("movetoY :" + moveToY);
                       //double scaleYTo = screenHeight / paneHeight;
                       ParallelTransition parallelTransition = ParallelTransitionBuilder.create()
                               .node(pane)
                               .children(
                                   TranslateTransitionBuilder.create()
                                       .duration(Duration.seconds(2))
                                       .toX(moveToX)
                                       .toY(moveToY)
                                       .build()
                                   ScaleTransitionBuilder.create()
                                       .duration(Duration.seconds(2))
                                       .toX(scaleOperator)
                                       .toY(scaleOperator)
                                       .build()
                      .build();
                       parallelTransition.play();
        public void start(Stage primaryStage)
             primStage = primaryStage;
            mainScene = new Scene(masterPane, 430, 430);
             primaryStage.setScene(mainScene);
            primaryStage.show();
    }

  • JFrame which does not allow resizing (maximizing, minimizng)

    I want to develop a login frame which does not allow resizing (maximizing, minimizing as this does not make sense) and with 2 fields, JTextField and JPasswordField.
    The frame is developed but has the usual resizing handles.
    How to do?
    Many tks for any information.
    John Pashley

    Don't use a JFrame. Also, don't expect code like this again; I did it for fun.
    It requires your modification.
    * Title:        Login Screen<p>
    * Description:  Login Screen<p>
    * Class:        Login ScreenLoginScreen<p>
    * Copyright:    who cares<p>
    * Company:      who cares<p>
    * @author who cares
    * @version who cares
    import java.awt.*;
    import java.awt.event.*;
    import java.net.URL;
    import java.util.Vector;
    import java.io.File;
    import javax.swing.*;
    public class LoginScreen extends JDialog implements ActionListener, FocusListener
       private JTextField      name;
       private JPasswordField  password;
       private JButton         loginButton;
       private JButton         cancelButton;
       private JDialog         thisDialog = this;
       private ImageIcon       splashImage;
       private String          appTitle;
       private int             logCounter;
       public LoginScreen()
          super();
          this.toFront();
          setTitle("Login");
          addWindowListener(new WindowAdapter()
             public void windowClosing(WindowEvent e)
                    System.exit(0);
          getContentPane().setLayout(new BorderLayout());
          splashImage = new ImageIcon( getClass().getResource("images" + File.separator + "image.jpg")) );
          getContentPane().add(new JLabel(splashImage), "North");
          getContentPane().add(makeLoginPanel(), "Center");
          getContentPane().add(makeButtonPanel(), "South");
          pack();
          setResizable(false);
          setLocationRelativeTo(null);
          setVisible(true);
        * make login panel
       private JPanel makeLoginPanel()
          JPanel loginPanel = new JPanel();
          JLabel label;
          loginPanel.setBorder(BorderFactory.createEmptyBorder(20, 20, 0, 20));
          GridBagLayout gbl = new GridBagLayout();
          GridBagConstraints gbc = new GridBagConstraints();
          loginPanel.setLayout(gbl);
          gbc.weightx = 1.0;
          gbc.fill = GridBagConstraints.HORIZONTAL;
          gbc.insets = new Insets(0, 5, 10, 5);
          gbc.gridx = 0;
          gbc.gridy = 0;
          label = new JLabel("Login Name:", SwingConstants.LEFT);
          gbl.setConstraints(label, gbc);
          loginPanel.add(label);
          gbc.gridx = 1;
          name = new JTextField("insider", 10);
          name.addFocusListener(this);
          gbl.setConstraints(name, gbc);
          loginPanel.add(name);
          gbc.gridx = 0;
          gbc.gridy = 1;
          label = new JLabel("Password:", SwingConstants.LEFT);
          gbl.setConstraints(label, gbc);
          loginPanel.add(label);
          gbc.gridx = 1;
          password = new JPasswordField("insider",10);
          password.addFocusListener(this);
          gbl.setConstraints(password, gbc);
          loginPanel.add(password);
          return loginPanel;
        * make button panel
       private JPanel makeButtonPanel()
          JPanel buttonPanel = new JPanel();
          buttonPanel.setBorder(BorderFactory.createEmptyBorder(10, 10, 10, 10));
          //make LogIn button
          loginButton = new JButton("Login");
          loginButton.setActionCommand("Login");
          buttonPanel.add(loginButton);
          rootPane.setDefaultButton(loginButton);
          loginButton.addActionListener(this);
          this.getRootPane().setDefaultButton(loginButton);
          //make Cancel button
          cancelButton = new JButton("Cancel");
          cancelButton.setActionCommand("Cancel");
          buttonPanel.add(cancelButton);
          cancelButton.addActionListener(this);
          this.addKeyListener(new KeyAdapter()
             public void keyReleased(KeyEvent e)
                if(e.getKeyCode() == KeyEvent.VK_ESCAPE)
                   cancelButton.doClick();
             return buttonPanel;
        * Action handler for login and cancel buttons
       public void actionPerformed(ActionEvent e)
          JButton btn = (JButton) e.getSource();
          if (btn.getActionCommand().equals("Login"))
             // Because login() process happens before swing process (above),
             // force it to happen "later"
             SwingUtilities.invokeLater(new Runnable()
                public void run()
                   login(); //create this method, okay?!
          else if (btn.getActionCommand().equals("Cancel"))
             System.exit(0);
        * Focus gained handler for username and password buttons
       public void focusGained(FocusEvent e)
          JTextField tf = (JTextField) e.getSource();
          tf.selectAll();
        * Focus lost handler for username and password buttons
       public void focusLost(FocusEvent e) {}
       private void showErrorMessage(String message, String header)
          JOptionPane.showMessageDialog(getContentPane(),
                                        message, header,
                                        JOptionPane.ERROR_MESSAGE);
        * This method controls the cursor for login window. If isWait is set to
        * true, dialog's cursor is set to Cursor.WAIT_CURSOR. If isWait is set
        * to false, the cursor is set ta Deafult.
        * While the window is in WAIT mode, this method will also disable Login
        * and Cancel buttons to ensure the user does not accidently request
        * a cancel while loging in or launching a second login.
       private void setWaitCursor(boolean isWait)
          /* In order to disable login and cancel buttons while logging in to the
             application, this method will temporarely change action commands and
             reset them when login process failed to give user another chance.
             Note: Disabling the buttons by calling setEnabled(false) did not work
             since login() method is called from an action event handler and the
             process will not be released to AWT until login method is complete.
          if (isWait)
             this.getGlassPane().setCursor(new Cursor(Cursor.WAIT_CURSOR));
             this.getGlassPane().setVisible(true);
             loginButton.setActionCommand("none");
             cancelButton.setActionCommand("none");
          else
             this.getGlassPane().setCursor(Cursor.getDefaultCursor());
             this.getGlassPane().setVisible(false);
             loginButton.setActionCommand("Login");
             cancelButton.setActionCommand("Cancel");
    } //end loginscreen

  • VS open website does not resize

    Using VS 2012: I resized fonts to something I can read - 12pt with a 14pt Title Bar. The open website (IIS) does not resize. The buttons are below the bottom of the page. So, I must go to personalize and resize the fonts just to open a website, and then
    set them back so I can read it.

    Hi
    DenniSys1,
    Thank you for posting in MSDN forum.
    >>I resized
    fonts to something I can read - 12pt with a 14pt Title Bar. The open website (IIS) does not resize.
    According to your description, I suggest you can go to Tools-->Options->Fonts and Colors->Select  Environment Font
    under Show settings for option-> change the font and size under the Font(bold type indicates fixed-width fonts).
    And then you open your website again, you will see the font is resized  in the open web site window.
    Best Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Unbundle does not resize

    Hello everybody,
    I am using Labview 7.1 and I have the following problem. I use the Fieldpoint express vi to read from my modules. The output is in the form of Dynamic Data Type (blue line) which I then convert to an array by usiing the DynamicDataType to Array function and then I use the array to cluster function to get all the data.
    My problem is that when I use the unbundle function to get every item of the cluster it does not let me resize it at all and it only comes with two items as an output although my cluster has all the channels of the module (ex. 8 channels). If I use the unbundle by name it has more options and it lets me resize, add element etc.
    Does anyone know why this happens and how I can solve it?
    Thanks a lot

    The Array to Cluster function doesn't know how many elements to give you. You have to tell it by right-clicking on it and selecting "Cluster Size...". You will see a dialog where you can specify how many elements you want.
    Dan Press
    Certified LabVIEW Architect
    PrimeTest Corporation

  • Window.resizeTo in addon (overlay commonDialog) does not resize after some minimum size in FF v17 & 18

    I created an addon which overlay commonDialog.xul.
    In the load event, window.resizeTo is called and set to a very small size (like 10x10) so it is almost invisible to users.
    This works fine in FF 15. After upgrading to FF 17 or FF 18, this stops working.
    When I set the size big, it works fine. When setting it to a small size, it seems like when hitting a limit, the window size stays the same. The window size is the same when setting to 10x10 or 100x100.
    This is on a MAC, but same behavior is observed on Windows too.
    It seems like there is a minimum size predefined and the window does not get smaller than that.
    Aren't we supposed to be able to resize the window as we wish in the addon?

    If you create your own window with a unique ID then it should be possible to create more specific CSS rules for that window.
    How (when) do you resize that window when you need it to show with the default dimensions?
    If you have specific questions about developing extensions then it is best to ask advice at the MozillaZine Extension Development forum.
    *http://forums.mozillazine.org/viewforum.php?f=19
    The helpers at that forum are more knowledgeable.<br>
    You need to register at the MozillaZine forum site in order to post at that forum.

  • Bug: View does not resize after soft keyboard dismissal

    On Android when resizeForSoftKeyboard=true, the view does not resize after dismissing the soft keyboard. This simple app demonstrates the bug.
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                   xmlns:s="library://ns.adobe.com/flex/spark"
                   applicationDPI="160"
                   resizeForSoftKeyboard="true"
                   applicationComplete="applicationComplete()">
        <fx:Script>
            <![CDATA[
                private function applicationComplete():void {
                    keywordTextInput.setFocus();
                private function keywordTextInputEnter():void {
                    stage.focus = null;
            ]]>
        </fx:Script>
        <s:Rect id="rect1" width="100%" height="100%">
            <s:stroke>
                <s:SolidColorStroke color="#FF0000" weight="4"/>
            </s:stroke>
        </s:Rect>
        <s:TextInput id="keywordTextInput" enter="keywordTextInputEnter()" returnKeyLabel="go"/>
    </s:Application>
    1) Start app.
    2) Click on the "go" button on the soft keyboard
    I observe that the red rectangle remains the same size (about half the screen). I expect the red rectangle to resize to fill the entire screen as it does on iOS.
    My environment:
    Flash Builder 4.7 beta
    Flex 4.6.0
    AIR 3.4
    ASUS Transformer (Android 4.0.3)

    Submitted bug:
    https://bugbase.adobe.com/index.cfm?event=bug&id=3657721

  • Quicklook does not work with WMV files and quick look no longer maintains resized views when viewing from a folder using the up/down arrows

    Quicklook does not work with WMV files and quick look no longer maintains resized views when viewing from a folder using the up/down arrows. Any fixes?

    Same problem here...

  • HT1414 iOS 7 does not let me resize my wallpaper pics to normal size to make a smaller wallpaper.

    iOS 7 is a good idea.  But for apple consumers that are familiar with computers this is a sad upgrade.  This was forcefully released with many issues.  First insure is my air play.  I can only airplay sounds and my IPAD 2 plays the picture.  Second issue is that the iOS system lags.  Third when accessing photos to make a photo a wallpaper, it does let you move but it does not let the photo be resized like the iOS 6.  Another issue is that the apple store keeps showing me updates, but there are not any updates to update.  The auto brightness does not respond even when placing my hand over the sensor.  This is a disgrace for apple users.  How are these issues going to be resolved?  Do we have to go back to IOS6? I have rebooted many time is the fix for this issue? Remind me of windows vista, *****. Please fix.

    Ok, I just found the solution Thank God
    You see how with the new update the icons move as you tilt the phone to give you that "fancy" 3D look, well because of this the wallpaper gets distorted.
    I turned this option off, and the wallpaper resizing issue went away
    Here is how to turn that dumb 3D option off (which also drains your battery):
    Navigate to the iOS 7 Settings -> General -> Accessibility -> Reduce Motion -> ON
    Yep, that's all.
    Enjoy

Maybe you are looking for

  • Connecting a DVR via firewire

    according to wikipedia, there is a Firewire 400 port on every HD DVR produced since 2004. with that being said, what would I need to do in order to be able to download recorded media from my DVR to my mac?

  • Using a timer to refresh WSDL content

    I have a webservice that when refreshed, brings back updated information. Using Builder 4.6, I followed the wizzard and have all this information bound. Where I get stuck is that I don't know how to have the webservice refresh. I have tried using a t

  • Windows 2008 R2 RDS & HP P1505

    We run a Win 2008 R2 remote desktop server and are having some trouble with our P1505's.  - MS' EasyPrint feature works fine for small print jobs but on larger print jobs can balloon jobs into 30MB+ for 6 pages if there are graphics.  - There are no

  • Can't connect to samba share via VPN

    Hello all, I am looking for an answer for few days now and still can't manage to fix it. I found two workarounds in the meantime, but it's not what I want! My case: Cisco vpn on one side and Mac vpn client (native). I can connect alright, can't only

  • HT1338 How do I prevent iDVD 7.1.2 from shutting down every time I try to create a new project?

    Every time I try to create a new project on iDVD, the program shuts down with one of those "unexpected error" messages. This just started a few days ago, and was working fine prior to this.