Catching the start/end of component resizing?

Hi Folks,
I have a JPanel descendant and I want to store its initial size before being resized (by mouse), then at the end of resining, use this value to calculate the resizing factor.
componentAdapter.componentResized() works fine for Windows LAFs, as it is called just once (when the mouse is released). But, using other Look and feels, it is called several times during the resize process (it can be seen also that the panel is repainted continuously).
I tried to turn off repainting with setDynamicLayout(), but besides it did not worked at all, it looked ugly.
My question: is there a way to get an event for determining the beginning and the end of the resizing process using any LAFs?
Thanks,
-meri

Hello,
well, who's controlling the resize? You have a mouse
drag to do it? Then you can know on mouse press what
the size is...Yes, a mouse drag is used to resize a JDialog which contains my component. The problem with mouse press is if it's a resizing (grabbing the border of the dialog), then no other mouse events are fired on the component (either MousePressed).
or maintain the "current size" in a variable and
compare that to the componentResized call and after
done, reset the "current size" to the new size.Fine, I could do it (already done), but for special reasons, it would be much more better to calculate further sizes of the very first (initial) one.
Thanks anyway! I will keep on searching for some solution...
-meri

Similar Messages

  • Terminal - how to jump type to the start/end of a word or line?

    How do I jump to the start or end of a word or line in Terminal?
    In other OS X apps, Cmd or Opt + left/right arrows move to the start/end of a line or word respectively.

    Try these (note: the first two require the shift key, at least for me):
    ctrl-A beginning of line
    ctrl-E end of line
    (note: the next two require that you have the Terminal preferences, "settings" , "keyboard" opened, and the checkbox for "Use option as meta key" checked)
    opt-f forward word
    opt-b backward word
    ctrl-u clears the line before the cursor position. If you are at the end of the line, clears the entire line.
    ctrl-f forward character
    ctrl-b backward character
    ctrl-d delete character
    ctrl-l clear screen
    pageup page up in buffer
    pagedwn page down in buffer
    More here:
    http://osxdaily.com/2006/12/19/command-line-keyboard-shortcuts-for-mac-os-x/

  • FCP Audio Clips in Soundtrack Pro - Marking the Start & End Points

    When I double click on an audio clip that I've sent from FCP into Soundtrack Pro I seem to open up the entire media file.
    How do I lock off or at least mark the clip start & end?
    I don't see any markers that tell me which part of the clip is actually used in the imported FCP sequence.
    I only want to make (non-destructive) changes to the clip.
    I don't want to alter the original media file.
    And I just want to work on the part that's used in the FCP sequence.
    It makes sense that there's a way to show the start & end points of the clip but I'm just not seeing it.

    I am a bit of a newb here, so pardon if my explanation is a little unpolished, but I have been working on some of my projects like you are and this is what i figured out. I select my sequence in FCP and send to stp as a multitrack project. The whole audio timeline shows up just as it looks in fcp, and the video track shows as one large clip that is made up of all my cuts put together. Now, my audio tracks are all on one line, and i can see all the clips with their cuts on the sequence. I click the first one and open it up to work on in the waveform editor. At that point i see the entire audio clip, including the part before and after my cut that i am using in my sequence, but i also see, up near the playhead, gray markers that show the actual part of the clip i am using in my edit. It is easest to hit shift-z to look at the entire clip on screen, and then find the grey markers. Also, if you play audio before the in marker, you will hear it but you will see that the video is not playing anything, then once you enter into the in-out section the video will play along, and when you pass the out marker the video freezes as the audio keeps playing. Hope this helps.

  • How to remove the START/END marker ?

    Hi. At the top of the arrange page , where the bars and beats are numbered , i have these Start and End markers , which i can move about but cant get rid of. Once the song hits the end point, recording stops. I can move this further away to increase recording time, but i how can i remove it completely?
    Thanks
    Faisal

    Hey there,
    i don't think you can remove the Song End position.
    But you can extended it as you wish for it to stop at the song position you like.
    You can do that by double clicking on the right bottom of the transport window where you can add manually the Song's End position or on the bar ruler just drag it to the bar psn you want it to be .
    if you are running 7.2 you will find that under the tempo in the transport window.

  • Is It Possible To Snap The Start/End Point Of Gradient Tool To Edges Of An Object?

    When I am modifying a gradient on an object, I would like to snap the starting point and the ending point of the gradient to the edges of the object I am working on. Is there a way to do this? I tried just using Smart Guides, as well as the grid and regular guides with no luck. Any ideas?

    Krisler,
    Select your Inline graphic. Then click on the center of the graphic and drag the mouse's pointer into the text. When you get your pointer into the text you will see the insertion cursor (vertical bar) just at the tip of the mouse arrow. When you let go of the mouse button the insertion point for the graphic will be where the insertion bar was at that time. The key point is to concentrate on the position of your arrow tip as you attempt to reposition the insertion point.
    Jerry

  • Shortcut keys for the Start/End work area?

    Hey guys,
    Does anyone know if any shortcut keys exist for setting the Start and End points for the work area (i.e. grey bar with orange endpoints above timeline)?  On a large timeline, I usually have to zoom all the way out, find it and then drag it to where I'm currently editing so I can render a small work area. If I could save some time by using shortcut keys, that'd be great!

    Alt+[ and Alt+]
    Jeff

  • Keyboard shortcuts to get at the start/end of the line

    Hi everyone!
    I'm looking for a keyboard shortcut in Numbers that will select the cell at the start of a line or its end, not only moving the screen. But there is no mention of such a shortcut in the user's guide. Did I miss something ?
    Also, is there something similar for a column ?
    Thanks

    Hi TheMoose,
    I've looked in Help > Keyboard Shortcuts, User guide, and the Numbers 291 page PDF file for those shortcut keys but cannot find them.
    Let's hope someone smarter than I will jump in to assist you.
    Sincerely,
    RicD

  • How to find the start and end duration of "Selected frames" from Video using didFinishPickingMediaWithInfo?

    I am doing slow motion in audio and video using AVFoundation(for Video) and Dirac(Audio). As part of it, i will show the video as frames in which the user will select the frames to do slow motion. Eg: 5-6 min of 10 min video.
    I have to show the users two kinds of videos 1. through the video recorder from my application itself. 2. from the gallery.
    Case1: No problem Now,i can record the videos though my video recorder and show the videos as frames to the user to select. Once the user selects some frames(Eg: 5 to 6 min of 10 min recorded video), using the below code, i am able to find the start/end duration of the selected frames or video.
    NSNumber *start = [info objectForKey:@"_UIImagePickerControllerVideoEditingStart"]; NSNumber *end = [info objectForKey:@"_UIImagePickerControllerVideoEditingEnd"];  int startMilliseconds = ([start doubleValue] * 1000);int endMilliseconds = ([end doubleValue] * 1000);
    Case2: In this case, i am able to pick the video from the gallery and show them to the user in the form of frames to select. However, when i try to find the start/end duration of the video as i did in case 1 with the same code, its not working. I am always getting "0" for start/end duration.
    Can you please give some suggestion on my Issue ?

    +1 .. also. i'd to know is using "_UIImagePickerControllerVideoEditingStart"
    the app won't be rejected..
    thanks,
    F

  • Finding the simulation mode in start/end routine

    Hi ,
    I am also updating some other tables in my transformation apart from the actual target infoprovider data.
    But I would like to update those other tables only when the DTP is actually run and don't want to update when DTP is run in simulation mode.
    Is there any way in the start/end routine to find whether the DTP execution is simulation or Real?
    Regards,
    Ramesh

    Hi,
    This is not possible in the start routine as this check is done even before reaching the start routine by using the method :
    if_rsbk_dtp_maintain~set_simulation
    -Vikram

  • Primitive APAB editor in start/end routines in transformations

    When editing or viewing ABAP code in BI transformations, for example in a start routine, the editor that opens is very primitive compared to the normal SE38 editor. Some of the limitations include:
    The editor window doesn't cover the whole screen with seemingly no way to increase its size.
    The syntax check doesn't show on which line syntax errors are located.
    There is no option to perform a extended program check.
    There is no way to insert break-points (other than with the ABAP keyword of course)
    These limitations are present regardless of whether i choose the new front-end editor, the old front-end editor or the back-end editor. We're running SAP Netweaver 2004s.
    It is of course possible to create a program in SE38 and copy-paste your start routine code to see the code using the "real" editor, but this is very tiresome and time consuming. Is there a way to make this editor look and behave like the normal editor? I have looked through the setting options an searched SDN without finding a way.

    Hi,
    This is just the settings you need to change to open the start,end, and characteristics routine using the old editor you are comfortable with. No need to go to se38 and check copy the program.
    Go to se38->Utilities->settings->abap editor->editor tab->select the old abap editor.
    To specifically put break point in transformations (start routine..end routine..)..goto transformation (RSA1) and then display the transformation.
    Then goto extra (menu)->generated program. search for start_routine (method now) and put break point in the desired place.
    Then from the DTP enable all 4 break points..in tranformation (this will come when u cange it to debug mode simulation). And u can debug the transformation.
    The new editor is a good handy one. But take some time to get acquented to it. After you may start liking it :).
    Cheers,
    -J

  • Preserving tape name and media start/end

    I shoot lots of tapes of random footage to get short general-purpose clips for use later. Years ago when I started, I would preview in the capture window via device control, carefully set log in/out points, and let batch capture make all my little clips. Then I learned how hard that is on my camera's heads, so I got Scenalizer Live and used a new workflow - I captured my whole tape, and then sliced, trimmed, and renamed the "keeper" clips. But since most of my clips don't need audio and SCLive doesn't know how to make a video-only AVI, most recently I've gone back to using PPro for the slice and rename operation, putting the captured video on the timeline, slicing and dicing, and then "exporting to movie" the good pieces to make new AVIs, with only video and with the filenames I want. (Yes, I know there are purists out there who would be concerned about generational loss of methods 2 and 3, but in DV-AVI I just can't see how any mere mortal could tell the difference.)
    But just now I discovered that only my first method preserved the information of where the clip originally came from, i.e. the Tape Name, Media Start, and Media End. All the rest lost that information when I trimmed the clips in either SCLive or PPro. Argh!
    These clips are a lost cause, but for the future, is there a better workflow, one that will preserve both the clip information and my tape heads?

    I agree - the metadata doesn't need to be repeated for every frame - just once for the clip.
    If the clip gets chopped up in PPro (or SCLive or whatever program), it doesn't seem like it should be that hard for the software to just do the math - if I have a two-minute NTSC clip that was originally captured from timecode 12:00:00 to 13:59:29, and I chop it into a 30 sec. clip and a 90 second clip (silly simple example), the resulting two clips should still preserve the Tape Name and other info, and the start/end times should be 12:00:00-12:29:29 and 12:30:00-13:59:29. But instead both PPro and SCLive delete the Tape Name, and the start times of the resaved clips are all zero. Naturally if what is on the timeline when I save is a composite of multiple clips it's a different story, but if the only editing has been to simply put the clip on the timeline and adjust the end points and/or cut with the razor tool, it would be nice if the capture data was preserved.

  • Adjusting Start / End Time on Apple TV

    Hello everyone,
    In iTunes, we have the ability to adjust the Start / End time of a song or video by right-clicking the media > Get Info > Options. Then when we playback the media the next time, it will use the settings to determine how far into the media it should start and stop. Is there any way for these settings to get passed through to the AppleTV?
    - Thanks

    I would also like an answer to this! The original Apple TV applied the custom Start and Stop times, however the new one ignores them and plays the whole video file! Very annoying! Any solutions out there?

  • Room Booking - unavailable if start / end time is :15 or :45

    Hi all,
    First apologies if this is in the wrong forum.
    Due to the way our school day runs, we need to be able to book rooms from :15 and :45 (e.g. 10.15 to 11.15, 11.45 to 12.45).
    You can change the start / end time manually but if you do the rooms do not show as available and the suggested times only work for :00 or :30.
    Is there a way to change it so the rooms can be booked for a wider variety of times?
    I've googled this endlessly and the only thing I can really find that might be applicable is changing the timeincrement but I think that only applies to the calendar view and the start / end time showing 15 minute increments instead of 30 as default but
    does not have any impact on room availability.
    Hopefully someone can help.
    Thanks a lot

    Hi Chris,
    It is by design and we cannot change the time slot displaying. Your understanding would beappreciated.
    Besided, it is recommended to add an End date for a recurrent meeting.
    Refer to:
    http://office.microsoft.com/en-us/outlook/HA011276781033.aspx
    http://office.microsoft.com/en-us/outlook-help/best-practices-for-outlook-2007-HA010371521.aspx
    Fiona Liao
    TechNet Community Support

  • IMovie effects start/end time limited

    I'm trying to use the split screen effect from the GeeThree plugins for a 2 in 1 video music demonstration. The video is about 5 mins long. But I can't seem to make the Split Screen video effect to stay in the entire time. The effect starts the first second of the video, and then ends 10 seconds later. I've tried messing around with the Start/End slider, put everything to 00:00, still nothing. Any take on this?

    You might get a better response to your question over in the iLife > iMovie community. This forum is iMovie for iOS so most visitors here are working on a different platform, and while some may know about both products, many won't, me included.
    tt2

  • Reproducing NotePad++ lines connecting start & end tags

    I love the ability in NotePad++ to see the start & end tag of blocks all the time via faint vertical lines connecting them (without having to click on a tag as you do in CC).  This is achieved in NotePad++ via their indent guides (Top menu View>Show Symbol>Show Indent Guide. The DW CC tag matching isn't half as good as this always visible feature in NotePad++ .
    Is there any way to reproduce the feature in Dreamweaver CS6 &/or CC (I'm using both versions of DW)?  Any extensions that could do this perhas? 
    Thanks!

    I don't know of any extensions for this.  Why don't you post this in the Ideas section of this forum?  If enough people vote for it, Adobe might add it to a future release.  Go to Actions > Create an Idea.
    Nancy O.

Maybe you are looking for