Question about hearing when a window resizes.

I have a class that extends JLabel on the LayeredPane of a JFrame and when I resize the JFrame to the point that I no longer see the JLabel, the label does not redraw. I am currently overriding the paintComponent of JLabel but when the resize puts my Label outside the window, it doesn't show up. Any help would be appreciated.

Are you familiar with the premise of Occam's Razor?
Why is it important that the lable be drawn when it can't be seen by the user anyway?
The simple solution would be to set the minimum size of the container such that it's always visible, that way it always repaints when the container repaints.
Something you might try if you really want to, is to put all of the screen elements into a scroll pane that way, when the frame resizes to smaller than the display area, you'll have scroll bars so the user can move the view area (snip). I don't know off hand whether the paint of the label would be called if the label wasn't currently in view though my first thought is probably that it wouldn't be called until it entered the view area.
It would take some experimentation to find out.
Good luck
-ps31

Similar Messages

  • Question about transfering files between windows OS and mac OS when using bootcamp

    I'm thinking about buying the latest macbook pro, however, many of the statistical programs I use are only compatible with windows OS.  I am aware of fusion and parallels, but I was advised to use bootcamp to maximize the performance of both the statistical programs AND the macbook itself.  When using bootcamp, if I were to create a word document for my statistical output in the windows 7 partition, would I be able to access it directly from the hard drive in the mac OS partition using windows for mac?  Any suggestions would be appreciated!

    I run both Windows and OS X on my Mac. I would never ever want the Windows partition to have write access to my OS X partition. Be cautious when considering this ability. I would much prefer sharing files by a third drive, be it a flash drive, and external HDD, NAS, or an SD card.

  • Questions about Lumia Line and Windows Phone 8

    hey , i am using Nokia 701, a Symbian smarphone i love very much, but would like to know more about the WP OS and how it fares against it. If u have answers for the questions below or even better - if u own a Lumia 720, which i find interesting, please give ur opinions.
    1. There are many GPS Apps in Android which still havent been ported to WP8. Nokia 701 has , in its native browser, GPS functionality, so when i enter GPS enabled websites, I can share my location to them on my Nokia 701, and also using the Opera Mobile browser.
    Does the Lumia 720 have GPS enabled BROWSERS ? 
    2. Second question - the thing i LOVE about symbian is that Whatsapp is always connected and so - messages are immadietly delivered, faster than android even, i believe. 
    If u keep internet connection ON with the WP device and  a friend sitting next to you will message you over WhatsApp, how fast will it reach,
    when the app is closed and when the app is in the background?
    And is there any difference between having the screen locked or unlocked ?
    I hate it when there's a delay in recieving messages. It happens with android and some iPhones. 
    3. The Lumia 720 has 512 mb of RAM. Does it limit downloading of apps, meaning you simply cant download them because they cant work on the device? 
    And do you feel LAGS with apps who should work with your 720?
    I'd love hearing all of your thoughts. This will help not only me but other users who read this in time to come and maybe even Nokia when they perform R & D .  

    rgkline4 wrote
    Phone also monitors your movements, usage, and sends to the owner -Microsoft. You don't own the phone or controls to privacy, Microsoft claims to do that for you. It also uploads your device contacts somewhere once you open an account in order to use the phone and the WP8.1 OS. THINK TWICE
    lol.. Try again, every app which wants to access location or other data needs to get permission from you to do so. Also you have the choice to allow the phone to send information to Microsoft during the first set up of the phone..
    Click on the blue Star Icon below if my advice has helped you or press the 'Accept As Solution' link if I solved your problem..

  • Premiere Pro CS4 Crashes When Video Window Resizes

    I have done a search for this topic and did not find any answers but I apologize if this topic has already been posted.
    Whenever I try to resize a video window in Premiere CS4 by dragging a panel with the mouse the program crashes and quits. This is pretty much repeatable 100% of the time. I meet all system requirements and have the latest drivers for my video card. All CS4 apps have been updated..
    Any help with this issue would be greatly appreciated.
    Andrew

    Please provide
    these details to help us help you.
    Cheers
    Eddie
    PremiereProPedia   (
    RSS feed)
    - Over 300 frequently answered questions
    - Over 250 free tutorials
    - Maintained by editors like
    you
    Forum FAQ

  • Very basic questions about a db in windows

    I have a db (9.2.0) in a W-XP machine and I have started it up via windows services. (The db was created when installing the software).
    My questions are:
    1. When I connect to the db with the system user it connects to the only db that is created in my PC, but not having the ORACLE_SID variable defined, how would the sqlplus command know which db I want to connect in case I had several?
    F:\oracle\ora92\bin>echo %ORACLE_SID%
    %ORACLE_SID%
    F:\oracle\ora92\bin>sqlplus system
    SQL*Plus: Release 9.2.0.1.0 - Production on Dom Dic 17 19:16:27 2006
    Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
    Introduzca la contrase±a:
    Conectado a:
    Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
    With the Partitioning, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.1.0 - Production
    SQL>
    2. Why can't I connect as sysdba with a windows console? (I suppose there must be some problem with my os user).
    F:\oracle\ora92\bin>sqlplus "/ as sysdba"
    SQL*Plus: Release 9.2.0.1.0 - Production on Dom Dic 17 19:06:19 2006
    Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
    ERROR:
    ORA-01031: insufficient privileges
    Introduzca el nombre de usuario:
    3. How can I write dos commands in sqlplus whitout exiting (in sqlplus for unix I know it is with the ! mark)?

    - I have no idea what the sqlnet.ora files does when
    I connect to my local database by a sqlplus in the
    command window (I thought it played no role as the
    listener does not play any either).http://download-east.oracle.com/docs/cd/B10501_01/network.920/a96581/sqlnet.htm
    - I am very ignorant at windows and do not know where
    to see the user groups, my system only has 1 user
    (there is no oracle user and the oracle installation
    was made with this only user). For me it has no sense
    that there exists an ORA-DBA group because there is
    no oracle user, but I repeat, I do not know how
    windows manages users and groups.If you only have one user on your system and the install was done with that user, then chances are good the user is in the ORA_DBA group. You can find User and Group settings by right clicking My Computer and selecting Manage. You will find the users and groups under Local Users and Groups.

  • Why won't icons/files sort when I window resize?

    Not sure I worded the topic right but...
    Like I open a folder, click and drag on the bottom right corner to re-size to whatever and the icons won't follow the window...
    So say a picture folder, it would stay at whatever they already were (3 pics across by 6 down etc.) some folders are more than that (8 across etc. annoying)
    Past issue that no one could ever solve that caused the above issue:
    When I move a pic from a web page to a folder I want, the desktop just flings the folder to whatever location on the desktop it wants for the day...
    So I tried all the advice I was given, something about holding command at the finder icon I don't remember. Clearing this or that, that's what caused the above issue.
    Nothing ever worked...I'm tempted to change to a 1TB drive and install Leopard fresh.
    Any tips? Thanks

    No that doesn't solve it, it just cleans up files/folders been piled up on each other.

  • Question about video driver and window manager

    Dear All:
    I have been using Arch for a couple of months now and I am absolutely amazed by how top of the line this system is.
    Congratulations and thank you to all the developers!
    A couple of questions for anybody interested in these topics:
    1) Do people usually use open-source video drivers, or proprietary? What are the advantages/disadvantages of either solution, in terms of stability and performance? (I have an ATI Radeon Mobility graphics card on an IBM T43 laptop).  Also, I use dual-head with an external NEC lcd display using MergedFramebuffer, but I notice that the external monitor is not set completely well.  Looking closely at the black background standard in Openpox, for example, I notice a constant flickering of the pixels.  Can it be because I am not using the proprietary ATI driver?
    2) What is, in your opinion, the fastest and most reliable window manager?  I wonder whether somebody has run objective comparisons.
    I fell in love with wmii recently, but managed to crash it twice when I tried to run kmail (perhaps because this application is not wm-independent?).
    Also, applications seem to respond the fastest in fvwm on my system!? Isn't wmii supposed to be the fastest, being the lightest?
    Thank you for your help!

    There's two different pages for this model on the Toshiba site depending on the DVD
    DVD-Multi
    DVD-R/RW
    Concerning the memory you can check on different memory suppliers like Orca, Crucial, Offtek etc. This is the Orca page
    http://www.orcalogic.co.uk/asp/prodtype.asp?prodtype=27947&ft=m&st=3

  • A Few Questions About Parallels 5 and Windows 7

    Hey guys!
    So, I am taking a computer programming class that requires Windows, just so we can all be on the same screen at the same time (lame, I know). Anywho, I have a Mac, so my teacher provided me with a log-in to MSDNAA, to get Windows 7 for free, and he gave me Parallels 5.0 for free as well. (go community colleges!)
    A few questions:
    1- I am running Snow Leopard right now on my 2009 MacBook Pro, and my processor is the 64-bit processor, but after running the command uname -a I discovered that my Kernal is loading in the 32-bit mode. Is this normal? Shouldn't it be running in 64-bit mode?
    2- Which Windows 7 should I get, the x64 or x86 (32-bit or 64-bit)?
    Thanks for any/all help!
    Model Name: MacBook Pro
    Model Identifier: MacBookPro5,4
    Processor Name: Intel Core 2 Duo
    Processor Speed: 2.53 GHz
    Number Of Processors: 1
    Total Number Of Cores: 2
    L2 Cache: 3 MB
    Memory: 4 GB
    Chipset Model: NVIDIA GeForce 9400M
    Type: GPU
    Bus: PCI
    VRAM (Total): 256 MB
    Terminal reply after command:
    local 10.4.0 Darwin Kernel Version 10.4.0: Fri Apr 23 18:28:53 PDT 2010; root:xnu-1504.7.4~1/RELEASE_I386 i386
    the i386 means it's in 32-bit mode, right?

    Try the Windows forum area - http://discussions.apple.com/forum.jspa?forumID=687

  • Question about the Insignia 8: Windows 8.1 Tablet

    Here is my situation. I currently have a 10.1" Gateway Netbook that seems like it's running on it's last leg. I bought it used originally and it's a 2009 model.
    Today I was browsing BestBuy.com and I came across a 8" Insignia Tablet running Windows 8.1 and having an Intel Atom Processor. I read the specs and it says it has access to plug in a USB 2.0 device.
    What I was wondering, is the USB 2.0 access through a dongle that connects to the Tablet itself? And another question I had was the way it charges. I was wondering if the charging mechanism plugs into the wall through the USB port that's on the tablet or if it's another jack that charges it. I was going to use it as a "Light desktop" replacement for my Bedroom to watch Youtube videos and play very very light games on it, etc. It looks like it's also energy efficient and it's similar in specs with the 32GB eMMC Solid State Drive that's on my HP Stream Laptop. 
    I'd want to use a stand for it, and also connect a USB 2.0 Hub just to be able to connect a wired keyboard and mouse. 
    Thanks to anyone for any insight you may have on this. 
    *******DISCLAIMER********
    I am not an employee of BBY in any shape or form. All information presented in my replies or postings is my own opinion. It is up to you , the end user to determine the ultimate validity of any information presented on these forums.

    Hockeycanuckjc,
    I actually have this tablet personally so I'd be happy to help you with how I got it to work.
    Because the Insignia 8.1 tablet doesn't have a full USB port, you would need a dongle that converts micro-USB to USB in order for this to work. I actually picked up this guy one night after work and it solved my problem instantly:
    http://www.bestbuy.com/site/samsung-galaxy-micro-usb-to-usb-adapter/1688641.p?id=1219059709888&skuId...
    Although it says it only works with Galaxy devices, I have gotten it to work on many different tablets and phones of varying brands and OSes, including the Insignia tablet. Although I personally haven't plugged in a USB hub to the extender, I don't think it will have any problems.
    Hope this helps!
    Alex M. | Best Buy Mobile - State College, PA (Store 369)
    Any opinions expressed in this post are those of
    the author and do not represent Best Buy Co., Inc.

  • Photoshop CS6: Question about Resolution when Post-Cropping Film Scans

    Hopefully, somebody with more understanding than I on this topic, can help me with this.
    I am about to get a film scanner I have on order, to scan in 35mm negatives. I've had one before but I had problems with the model and had to return it.
    When scanning film frames, I like the idea of setting the scan area marquee, at the scanning stage, so that it scans slightly beyond the film frame edges, so that I can carefully crop to the edge of the film frame later, in Photoshop CS6, rather than setting it, at the scanning stage, and then later, when examining the film frame in CS6, maybe discovering that I have not scanned to the edge of the film frame quite enough, as I can easily zoom right into the image when in CS6, to carefully examine where the film frame edges are.
    My concern about doing it like this, though, is that I may be reducing the resolution of the image. For example, say I scan a film frame in at 3600ppi, and later crop the image slightly in CS6 in order to precisely trim off any slight amount of black around the film frame edges. By cropping the film frame like this in CS6, am I reducing the image resolution of the film frame to lower than 3600ppi? As I best understand it, I do not think post-cropping like this results in any reduction in image resolution, but am I correct in thinking this?

    Hi.
    The scanner is a Reflecta ProScan 7200. As I said to station_two, I am in London. I understand the brand is known as 'Pacific Image' over in the US.
    The scanning software I will be using it with will be 'SilverFast Ai Studio 8'.
    Do take a look at this excellent review of the scanner:
    http://www.filmscanner.info/en/ReflectaProScan7200.html
    (I may be incorrectly assuming too much when on these forums that I am speaking exclusively with folk from the US - the way you spell 'labour' makes me think you are not from the US?)

  • Flash Professional Question: About the compiler error window

    Sorry if this is the wrong forum however I was unable to post a question to the Flash Professional forum for some wierd reason. Basically my question is, when I get an error in my console in Flash Professional is there an elegant way of zooming to my intended editor, Flash Builder? The built in code viewer is useless and a hassle to use.

    Launch the movie Flash Builder:
    Run > Test Movie will launch in Flash Pro and give compile errors in Flash Builder
    Run > Debug As.. will start a debug session (in browser or AIR) and you can debug it from Flash Builder (runtime errors, breakpoints, etc.)
    -Aaron

  • I've encountered a problem about drivers when installing Windows on my Mac

    I am installing Windows 8.1 on my Mac mini Late 2012. During the installation, i got message saying "No device drivers were found. Make sure that the installation media contains the correct drivers, then click OK." Even though I have the pendrive where Boot Camp installed the drivers (WININSTALL) it doesn't seem to detect any drivers. Any help on how to get through this?

    Did you build the USB with Bootcamp Assistant and check the box to download the latest drivers?
    This is what a typical W8.1 USB structure looks like. Please check what you have on the USB.
    You can also directly download the drivers from Boot Camp Support Software 5.1.5621 to the Windows side, unzip them and run the setup.exe in the Bootcamp folder.
    System Requirements
    MacBook Air (11-inch & 13-inch, Mid 2011)
    MacBook Air (11-inch & 13-inch, Mid 2012)
    MacBook Pro (15-inch & 17-inch, Mid 2010)
    MacBook Pro (13-inch, & 15-inch, Early 2011)
    MacBook Pro (17-inch, Early 2011)
    MacBook Pro (13-inch,15-inch & 17-inch  Late 2011)
    MacBook Pro (13-inch & 15-inch, Mid 2012)
    MacBook Pro (Retina, Mid 2012)
    MacBook Pro (Retina, 13-inch, Late 2012)
    MacBook Pro (Retina, 13-inch and 15-inch, Early 2013)
    Mac Pro (Early 2009)
    Mac Pro (Mid 2010)
    Mac Pro (Mid 2012)
    Mac mini (Mid 2011)
    Mac mini (Late 2012) 
    iMac (27-inch, Mid 2010)
    iMac (21.5-inch & 27-inch, Mid 2011)
    iMac (21.5-inch & 27-inch, Late 2012)
    iMac (21.5-inch) Early 2013
    Windows 7, Windows 8, and Windows 8.1, 64 bit

  • Question about installing and removing Windows on Mac OS X

    Forgive me for asking this because the answer is probably extremely simple, but I just wanted to make sure.
    If I use Boot Camp to install windows XP or 7 onto my Mac (OS X), then if I choose to remove windows and repartition my mac into one hard drive will it be the same as if I had not installed windows at all? Will I be losing any space on my computer once Windows is removed? Thanks! I'm still new to macs....and computers for the most part ha....
    Message was edited by: dukebsbll

    If I use Boot Camp to install windows XP or 7 onto my Mac (OS X), then if I choose to remove windows and repartition my mac into one hard drive will it be the same as if I had not installed windows at all?
    Yes.
    Will I be losing any space on my computer once Windows is removed?
    No.
    (55798)

  • Question about Photoshop Elements 11, Windows 8, and new Dell Computer

    Since I bought a new Dell Inspirion 660 computer, running Windows 8, my Photoshop Elements 11 occassionally gives me an error message saying I cannot save the file because I do not have enough RAM.  I have 8GB of RAM.  I never had this problem on my Old Dell Windows XP computer.  Any suggestions?

    Try reinstalling the application and see if this works.

  • Question about Photoshop 7 and Windows 7

    The harddrive on my old computer crashed.  I had Photoshop 7 on this computer.  I recently purchased a new laptop(windows 7 64 bit).  Is it possible to install Photoshop 7 on my laptop?  Also, can more than one version of Photoshop (i.e. Photoshop 7 and Photoshop CS5) reside on the same harddrive?
    Thanks
    Cari

    Also, can more than one version of Photoshop (i.e. Photoshop 7 and Photoshop CS5) reside on the same harddrive?
    Yes, they can. All installs are independent. As to whether PS7 will install and run on W7 I cannot tell from personal experience, but from reading other people's threads it seems to work for some, but not for others. In any case, nothing is lost by trying...
    Mylenium

Maybe you are looking for

  • Adobe Acrobat won't install, can't get past "reader installer" "retreiving install"

    I'm unable to open PDF files on my computer and cannot install Acrobat Reader 1--Click the "download now" button for: Adobe Reader X (10.1.0) (37.86 MB) 2--Click the "save file" button 3--Click the "Adobe Reader Installer" 4--On computer "Retrieving

  • -ve sign to left

    Frnds, The negative sign of a currency field is being displayed at the end of the value ( i.e at thr right side of the value). I want it at the left, i.e at the begining of the value.. how do i get it ??? i dont want to convert it into a character ty

  • Opening email attachments with iOS 7

    After the latest update, I cannot open PDF or word attachment on my corporate emails.... Help please?

  • What is SQL Plus trying to connect to? I don't have a database on my machine.

    Strange because I don't know what I'm doing.  I have a Linux box.  It has a fresh install of 11gR2 for learning.  I'm now on my Windows machine.  I thought I could connect to the Linux machine.  On the Windows machine when I start SQL Plus it is aski

  • Using Preview's Slideshow, Add to iPhoto does nothing

    Preview has a SlideShow feature under the View menu.  Using it to page through a PDF file I've printed from Excel, I've noticed the tools that appear at the bottom of the screen include an "Add to iPhoto" icon.  When I click it, it highlights briefly