What do you call this basic technique?

Request: Is there a name for the technique I'm using below, because I
know I've seen it and done it before.
Context: I'd like to allow the user to resize images, while preserving
their width:height aspect ratio. My GUI has a pair of JSpinners, for width
and height, and when one is adjusted, the other should change.
Example: if the aspect ratio is 2:1, setting the width spinner to 201
should cause the height spinner to change to 100 (I truncate), whilst setting
the height spinner to 100 should cause the width spinner to change to 200.
But: I don't want those reactions to cascade: from the example, if the
user sets the width spinner to 201, the height spinner should change to 100,
but that is where it should stop -- the width spinner shouldn't itself react
and change to 200.
My solution: I'm a fan of fixing it in the model, and here is my tweak for
SpinnerNumberModel: public class SafeSpinnerNumberModel extends SpinnerNumberModel {
     public SafeSpinnerNumberModel(int value, int minimum, int maximum, int stepSize) {
         super(value, minimum, maximum, stepSize);
     public void setValue(Object value) {
         if (!inSetValue) {
             inSetValue = true;
             super.setValue(value);
             inSetValue = false;
     private boolean inSetValue;
In my code, there are two JSpinners (with SafeSpinnerNumberModels),
and each model has a ChangeListener that reacts by adjusting the other model.
The flag stops the potential feedback loop.
So, again, what would you call this technique?
Thanks,
BDLH

Me too. And they love all those visual little
thingies so much: ooh, when
the number is positive it's displayed in black,
otherwise it's red. I'm a
genius! No lemme put 90 percent profit in here, just
for the "what-if"
question part. Yay! It's black!You should see some of the spreadhseets we have here. Risk management, process compliance, earned value management... I have no idea what any of this is, but its all thousands of rows of red-green-yellow, telling who's not doing any work. And if you change one value all the colors change all over the place. I bet they have Tetris encoded in there.
I attempted to finish my bookkeeping for Q3 last
Sunday but I was
distracted by myself attempting to do the Towers of
Hanoi puzzle
using Excel. I managed to make it work, but it was so
awful (using
additional cells etc) I deleted it all. I still have
to finish up Q3 ...Hmm, I believe I'll start short-selling JosAH Industries ;-)

Similar Messages

  • What do you call this?

    Hi, I'm very junior in programming and I want to build my
    resume from what I learn everyday at work. Today I learned how to
    write an application using CF without any interface. What my app.
    does is to read a text file, my boss calls this file a feed file.
    Then I put the records into a tables in a DB and then I need to use
    these tables to
    create the rest of the logic. After I'm done with it I need
    to set up my app. to pick up this feed every day once a day in
    certain location. So I also learned how to set up a schedule Task
    from CF administrator.
    Now, i want to write this experience in my resume, what am i
    supposed to say? can anyone help please? Thank you
    guyzzz....

    Coldfusion scheduled job

  • - What do you call this thing? -

    What is the common terminology for news article type
    templates/scripts like
    the one used by
    http://www.roadrun.com/blabbermouth.net/
    where users create
    accounts, read news articles, and comment on them?
    I know the talkbacks are referred to as talkbacks, but I'm
    referring to the
    entire driving engine... what is this thing powered by?
    What's that called,
    so I know what to search for?
    Thanks.

    Wiki?
    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
    ==================
    "R. Jay" <[email protected]> wrote in message
    news:eoot5a$5kl$[email protected]..
    > What is the common terminology for news article type
    templates/scripts
    > like the one used by
    http://www.roadrun.com/blabbermouth.net/
    where users
    > create accounts, read news articles, and comment on
    them?
    >
    > I know the talkbacks are referred to as talkbacks, but
    I'm referring to
    > the entire driving engine... what is this thing powered
    by? What's that
    > called, so I know what to search for?
    >
    > Thanks.
    >

  • (OT) What would you call this section of a Graphic Portfolio website?

    On my graphic design portfolio website, there will be a Portfolio section where you'll see finished items like posters and flyers.
    But I'll also add a section containing various airbrushing/photoshopping jobs. This section will hold before/after images... like 1) A picture of a person, 2) A picture of a cave, and 3) The photoshopped picture of the person inside the cave, with arrows to indicate that the first two pictures were merged. The section will also contain traditional airbrushing (before/after model shots).
    I am reluctant to call it just "Airbrushing" because there's a lot more intricate work than that. Taking a person or object out of one environment and placing them in another is referred to as "Photoshopping" nowadays... but I'd like to use an expression that isn't specific to this program, if at all possible. What would be a more appropriate name for such a section?
    I thought of "Photo Editing". Would that work? Or does that make you think of something else entirely?

    Well, I was being serious.  You didn't list the size limitation initially.
    How about "Work Samples", "See My Work", "Some of My Work".
    -Noel

  • My I mac screen had a small green light on the lower left.  on a black screen. the screen seemed unresponsive. When I re-srted the bong sounds but the wite screen never shows the apple - What do you think this means?

    My I mac screen had a small green light on the lower left.  on a black screen. the screen seemed unresponsive. When I re-srted the bong sounds but the wite screen never shows the apple - What do you think this means?

    Welcome to the world of Mac. Some ‘light’ reading to help the transition. I don’t recommend trying to get through all of this at once.
    A guide for switching to a Mac
    Anatomy of a Mac
    Mac Basics—Tutorials on using a Mac
    Mac OS X keyboard shortcuts,
    Mac Basics – Mac Find Out How
    Mac Basics – Switching From Windows
    Mac OS FAQ
    MacTips,
    Quick Assist
    Switch Basics
    Switching to Mac Superguide
    Switching to the Mac: The Missing Manual, Mountain Lion Edition
    Take Control E-books
    Welcome to the Switch To A Mac Guides

  • What do you call the number suffix afte the apple device name

    What do you call the number in ipad 3, ipad 4?
    Is it the 'version', 'model' or what?

    Maybe you'll get the answer here:
    http://support.apple.com/kb/HT5452

  • HT5622 an apple id is for iTunes among other things but what do you call the id you use when you first sign into your mac?

    an apple id is used to sign into iTunes among many other sites.  but what do you call the is or password you use just to get into your mac?

    Your Mac OS X user account.
    (111329)

  • What is it and what do you call it.

    Since I purchased my iMac two weeks ago, I have had a spinning colored symbol appear on the window a couple of times. I do not know what it is called or how to get it off the screen when this happens. I am sure there is an answer to this some place on the forum but I do not know what to ask since I don't know what this symbol is called or what it means. I have attempted to search but have been unable to find anything that addresses this problem. Any help will be very much appreciated. A new Apple user - John

    That icon is the spinning beachball, and it appears whenever the cursor is over an application which isn't responding to incoming requests. The application may be busy processing something, or it may be stuck, in which case it needs to be force quit by use of the Force Quit command in the Apple menu, or it may be in the process of unexpectedly quitting.
    (20166)

  • What do YOU call them, ipod touch or itouch?

    Iv heard alot of people use different names ..which one is actually like the real name..was the term itouch by apple or fans?
    what do u call it?..ipod touch or itouch?
    just wondering, what the real name is ..

    "Touch"
    To me when someone says "Touch", the 'ipod' is already implied, just like 'Apple' is.
    (i.e. "Hey Joe ! I got my new Apple Ipod Touch today" = "Hey Joe ! I got my new Touch today")

  • What you call this

    If i have 2 seprate classes in two different packages
    package in;
    public class Animal {
    public Animal() {
    //accessible only throw inhertance or throw the dot operator if the accessing class is in the same package
    protected void eat()
    System.out.println("animal");
    package out;
    public class Horse extends in.Animal {
    public Horse() {
    * Override the protected method eat
    protected void eat()
    System.out.println("horse");
    package in;
    import out.Horse;
    public class BarnHorse
    public BarnHorse()
    Animal a=new Horse();
    //calling polymorphiclly the eat method in the horse class
    a.eat();
    the code compiles fine and calles the Horse version of eat and outputs "horse" although the calling class shouldn't know anything about the Horse eat version.

    SunFred wrote:
    GONO wrote:
    the eat() in the horse class is protected this means that only classes inside the package or classes that inherits the horse class could access this methodWrong. protected means only the class itself and subclasses. "Classes inside the package" is the default access modifier.No, he was right.
    Protected is the declaring class, subclasses of the declaring class, and classes in the same package as the declaring class. Else the code woudn't have compiled.
    [JLS 6.6.1 Determining Accessibility|http://java.sun.com/docs/books/jls/third_edition/html/names.html#6.6.1]:
    Otherwise, if the member or constructor is declared protected, then access is permitted only when one of the following is true:
    Access to the member or constructor occurs from within the package containing the class in which the protected member or constructor is declared.
    Access is correct as described in �6.6.2.

  • Do NOT "update" to Anna!! You call this an UPDATE?...

    I knew I shouldn't have done it. Anyway, I got the **bleep**. Ehm... I mean, Anna.
    Here's what I got:
    - it took me ages to figure WHY my N8 was now connecting to the web using the mobile network. Turned out if it was now set to the G3 system, and for some reason it just doesn't CARE that you set it to use strictly your home wireless. So, I can only use GSM.
    - Out on the street, just NO WAY to browse using the mobile network, viceversa. Well, cool, it will help saving some money, I guess.
    - New themes and keyboard to enter messages. Nokia, what kind of beings do you employ in R&D, rats???!! Have you EVER seen a HUMAN being? I have NORMAL fingers, and I can tell you there is NO WAY I can use these **bleep**ing keys you and Anna have conceived.
    That's for the last 24 hours, will keep you UPDATEd with new findings. 

    I am having very bad experiece other than the keyboard and  features which they call it as added advantages....My problem after the upgrade are below:
    1. My N8 battery which used to last for minimum 2 to 3 days (for my normal usage - voice call, little GPRS browsing), after the upgrade it lasting only for 8 to 12 hours. When I installed battery monitor utility it says some Backgroud application is utilizing all my battery power.
    2. Phone is restarting by itself when not in use or when any call is landing.
    3. I tried formatting it couple of times using *#7370#  and 3 button reset and ended up more problem of losing internet not getting connected with error network connection rejected.
    4. I am using Nokia phone for past 8 years (Nokia 7610, N73Music edition) and I bought this N8 last year. I never had such a bad experience with any models. I am planning to scrap it and go for iPhone3GS which is now almost the same cost as N8 in chennai now.
    If I had referred to the forum prior to my update I wouldnt have done upgraded it. This is the first biggest mistake I did in my life.
    Is any Nokia R&D tech is reading this? Could you please give me any ERT for this issue fix else we will all come and literally throw the nokia handset and move to other products...
    Need a reply urgent...

  • Do you know this blending technique?

    First off it didn't require using gradients. I absolutely do not like using them.
    but this one required that you place the image you wanted to blend in with another image over it, then you would use the marquee tool, check how much you wanted to feather. Select which part of the second image you wanted to fade away, then you would press a button to achieve how much you wanted to fade and it would blend in perfectly. I'm almost positive the ctrl was used and another button but I could be wrong. It gave wonderful results, it was very easy to do. I remember very distinctly doing this.
    Does anyone know what this technique is or have another to show me that doesn't use gradients?

    Sound like your trying to create a photo collage.  If you place an image over an image the pace command put you into a transform dialog where you can size and position the image where you want it over the other image. If you then use the marquee tool to the select the placed image and feather the selection when you click on the add layer mask icon in the layers palette it will add a layer mask that will feather in the placed image.
    I use a different method when creating collages.  I create templates and populate these with interactive actions or batch populate a template using Photoshop scripts.  I created a collage toolkit you can download. Details and examples http://www.mouseprints.net/old/dpr/PhotoCollageExamples.html  My downloads can be found here http://www.mouseprints.net/Photoshop.html

  • What do you call the box in Dreamweaver???

    Hello, years ago, I remeber a function in Dreamweaver that allowed you to create a hidden text box, layer, or something to that effect, that if you were to run your mouse over certain text, images, etc., that DW could make it show.  Doeaanyone know what this is and how to create it?

    It used to be called Show-Hide Layers. It's now called Show-Hide Elements. See http://help.adobe.com/en_US/Dreamweaver/10.0_Using/WSc78c5058ca073340dcda9110b1f693f21-7af 6a.html.

  • OT: What do you call e-document maker?

    Hi there and thank you so long for your help.
    I need a bit off-topic help. What are those documents called with an *.exe extension but is a document that you can page through? There is a sort of animation when the pages are turned. These pages can normally be PDF or any graphic format.
    I trust you will be able to help me.
    Regards,
    Deon

    Thank you for the reply, Hans-Günter.
    I have Googled this whole morning and used words such as e-document maker and so on. I could not find anything I could use.
    While typing this, I remembered this South Africa site: http://www.game.co.za/RapidCat/Game/Cell-C/index.htm
    I have checked, it is made with: http://www.flashpageflip.com/
    I will check to see if I can find other products.
    Sincere Regards,
    Deon

  • What do you call those cool little icons?

    you know the ones... i cant figure out what there called or where to find a site that has a bunch of them for use.
    if you dont know what i mean theres an arch linux one and a firefox one at the bottom of dibbles page (first ones i found just now) http://dtw.jiwe.org/news.php

    cactus wrote:
    Penguin wrote:phrakture, what *in the hell* is that avatar?
    The "house keeping" robot from FLCL (fooly cooly).
    naw but he's red in the picture.... which means ass-kickage (... or the main character's brother / the man he will become ... depending on how deeply you'd like me to analyze it)

Maybe you are looking for