Click and Drag to Select Multiple Grids

Hello,
I am trying to create a Java application that will represent a simple paper timesheet for multiple jobs. I am trying to keep it as close as possible to an actual timesheet that I already have to fill out weekly.
I will try to describe the sheet.
Each day has a grid that's basically 4 x 24. There is a grid for each 15 minute block in the day. And each row accounts for 1/4 of the day or 6 hours. Then there are 7 groups, one for each day.
The way I would like to designate the hours on the electronic time sheet is to select a group of cells and then press a pushbutton to color code the selected grids.
I did some searching and found a way to create the grids and individually change the patterns/colors/etc for each grid on a mouse click here:
http://forum.java.sun.com/thread.jspa?forumID=54&threadID=477343
This is a good start but I haven't been able to find information on how to select grids and then perform an action.
Is this something I should try to do with a table?
Any suggestions would be appreciated.

I guess I should state how much of a newbie I am.
I did take a summer Java course at a community college this summer and I have some other programming experience (mostly Matlab).
The course covered a lot of the language but it wasn't exhaustive. We covered (in no particular order) Arrays, Interfaces, overloading, inheritance, loops, actionlisteners, Layout managers, exceptions (a little) One thing that we really didn't get into were packages.
We did some GUI design, but not a whole lot.
The programming that I do with Matlab is very similar to C. (i.e. highly procedural not Object Oriented) so I think that's where some of my stumbling blocks are. I feel pretty comfortable reading Java code and using the API (sort of) but I didn't even know that 2D intersections existed.
I have just started using eclipse last week. My previous coding was just done with textpad, so I am trying to get used to compiling code and building projects (and .jars) with an IDE.
Thank you for the tips. I am going to keep looking around and see what I can find.

Similar Messages

  • Command+click and drag to select multiple files

    Hi everyone,
    I switched about a year ago and recently joined this group. I love OS X and will never go back to windoze, however after recently upgrading to Tiger, I went to command+click and drag to select multiple files in order to drag them to the trash, all I succeeded in doing was to drop one file into the next folder down. Did I miss a check box somewhere, or something. It feels like windoze now, having to command+click individual files to select more than one, or use the edit menu to "select all".
    I'm not going back to Panther just to get back this feature I miss, and was hoping there is a way to get it to work in Tiger, any suggestions?
    eMac G4 1 gig superdrive   Mac OS X (10.4.3)   768 megs sdram

    You might find this easy to do in column view:
    1. Select a group of contiguous files by clicking on the first, then hold down the shift key and click on the last one you want, all files between first and last will be selected.
    2. To add an odd file here and there to the group hold down the command key and click on the file.
    Thus you can quickly select an entire group in the middle with click/shift click, then add additional files individually to the selected group.
    Francine
    Schwieder

  • Click-and-drag to select multiple points in puppet warp

    Hello Community,
    Puppet Warp is a great tool. But sometimes I want to isolate an area and only rework that spot, while keeping everything else in place. To do this I have to go around clicking everything to pin it down. I'm wondering if there's a way to automatically pin all possible points, or click-and-drag to create pins at all intersecting points of the web.
    Or something like that to easily pin everything down.
    Cheers,
    Emmy

    Well, I normally find the solution here if there is one, so it looks like there is none.
    Adobe peeps, can you please take note of my comment? It would really be nice if that was possible.
    Cheers,
    Emmy

  • Selection Tools, Click and drag to select option

    Hi! I would really appreciate some help with AI. Im working on a Mac book pro.
    I have previously been working on CorelDraw and have now moved over to AI again.
    I dont understand why I cant Click and drag my selection tool over certain objects and then select those objects. When I click and drag the selection tool or any other selection tool, it selects EVERYTHING on the page. I just want to click, drag and select the objects that I want to group together. Is there some sort of setting where I can do this??  I have watched tutorials about the selection tools. The tutorials show that this is possible but for some reason mine isnt doing it...
    I hope this makes sense, please please can someone assist me.
    Thank you!

    valentevn,
    This may be relevant to the strangenesses that you encounter.
    The following is a general list of things you may try when the issue is not in a specific file (you may have tried/done some of them already); 1) and 2) are the easy ones for temporary strangenesses, and 3) and 4) are specifically aimed at possibly corrupt preferences); 5) is a list in itself, and 6) is the last resort.
    1) Close down Illy and open again;
    2) Restart the computer (you may do that up to 3 times);
    3) Close down Illy and press Ctrl+Alt+Shift/Cmd+Option+Shift during startup (easy but irreversible);
    4) Move the folder (follow the link with that name) with Illy closed (more tedious but also more thorough and reversible);
    5) Look through and try out the relevant among the Other options (follow the link with that name, Item 7) is a list of usual suspects among other applications that may disturb and confuse Illy, Item 15) applies to CC, CS6, and maybe CS5);
    Even more seriously, you may:
    6) Uninstall, run the Cleaner Tool (if you have CS3/CS4/CS5/CS6/CC), and reinstall.
    http://www.adobe.com/support/contact/cscleanertool.html

  • 'select objects: click and drag to select several objects' doesn't work

    I have recently upgraded to Office 2010, and have the same problem as
    http://social.technet.microsoft.com/Forums/en-US/office2010/thread/75270638-e02b-4a78-b291-043abbca04ae?prof=required
    When I use Select - Select Objects in the Editing part of the ribbon to select multiple drawing shapes, it no longer works like in office 2007. I can't drag a rectangle in the document to select objects within an area.
    I would have guessed this is the same problem as the link I refer to, but I'm not running the beta version of 2010. It seems not to be solved.
    Anything I can do to fix this?

    I have just registered so I could reply to this thread.
    The registration process was very ... aehm ... frustrating, I was only able to fill in the correct Captcha after about 10 ties. But ... this is not unexpected, when working with a Microsfoft product. How am I supposed to know whether that bloody captcha
    wants me to to write '4Yp8' or '4yP8'. There is no way to tell. You can distinguish capital letters when it is something like A, a or H, h, but not between y and Y or P and p.
    I would like to thank all the posters for suggested workarounds. They work. Kinda - sorta ... . I was able to finish the editing of large picture (consisting of many graphics objects) that HAS to be made in word (My boss said so). All your tips saved
    me *hours* of frustration.
    I would like to tell Microsoft programmers AND their managers, that *if* the quote in the second post is correct: 
    ================
    The work needed to make the object selection work as it did in Word 2007 was out of scope for this release. It's not as
    simple as using the same feature that existed in the last version since we upgrading our graphics/art features; the way the shapes/objects need to be selected is different than how "old" graphics/art is selectable in Word 2007.
    That said, the "select object" tool that exists in Word 2010 should allow you to select individual shapes. You can select
    multiple shapes holding down the CTRL or SHIFT key while clicking shapes. You might ask how this is different than selecting shapes without turning on "select objects"; the answer to that would be to allow you to select shapes that are "behind" text, or more
    easily select rotated shapes, etc.
    ================
    You are bunch of incompetent amateurs. 
    If I used such lame excuse for missing important functionality at work, I would be very soon replaced by a more competent programmer.
    This time I am not a programmer, I am AN USER. And, as an user I do not care if your internal data structure for new objects doesn't let you do something easily. Find a way to implement that feature or change the data structure. Period.

  • Need a click and drag script for multiple layers.

    Hi. I'm realitivly new to Flash and Action Script.
    For a Majour project school asignment i am trying to create an interactive map for a hypothetical theme park, and i'll cut to the chase, i need a script that allows the player to drag the content of two or three layers around the screen upon mouse click, similar to this example:\
    http://www.dreamworld.com.au/content/drw_2008_shopping.asp?name=ParkMap
    I will have a layer for buttons (probably called Buttons) and a layer for the map graphic (Probably called Map), similar to this tutorial:
    http://www.republicofcode.com/tutorials/flash/interactive_map/
    If anyone could produce, or has a script lying around that could do this; i would really apreciate it.
    This assignment has a large impact on my UAI (universities admission index).
    Thanks for your time,
    Pat

    Thanks for your help. I really appreciate it.
    The problem is; this is the script i am using to make the map interactive:
    import mx.transitions.Tween;
    import mx.transitions.easing.*;
    var cities:Array = ["muscat", "sohar", "dubai","abu_dhabi"]
    function mover (targetX, targetY){
    currentX = marker_mc._x;
    currentY = marker_mc._y;
    var xTween:Tween = new Tween(marker_mc, "_x", Strong.easeOut, currentX, targetX, .5, true);
    var yTween:Tween = new Tween(marker_mc, "_y", Back.easeOut, currentY, targetY, 1.5, true);
    for (var i = 0; i<cities.length; i++){
    var my_btn = this[cities[i]+"_btn"];
    my_btn.myCity = cities[i];
    my_btn.onRollOver = function() {
    mover( this._x, this._y);
    marker_mc.gotoAndStop(this.myCity);
    And when the buttons are made to be part of a movie clip with the image i am using for the background this script does not work.
    The script is located in a layer called "Actions", if that is of any help at all.
    Any ideas?
    I am sorry if I am being a newsense.
    Thanks

  • Dragging to select multiple messages in Mail 6.0 and OS 10.8

    With recent software updates, there no longer seems to be a way to select multiple messages other than shift-click. I have always just dragged to select a number at once that I need to delete or move for one reason or another, which is much faster. what happened to the drag to select multiple messages in recent mail and OS 10.8 incarnations
    Thanks

    https://discussions.apple.com/message/19031608#19031608

  • Selection Tool suddenly acting like Direct Selection Tool during click-and-drag

    Hello!
    This morning, my Selection Tool (the filled-in arrow) is acting like a Direct Selection Tool (the hollow arrow), but only when I click and drag on a group.  It ends up select the anchors within the group rather than the whole group itself.
    I've checked my preferences, quit and relaunched Illustrator a few times, and nothing seems to fix it.  The problem briefly went away a few minutes ago, but came back when I quit and relaunched for good measure.
    It's happening in Illustrator CS 5.1.  I have CS6, and that version works fine, but I'm waiting on some plugins to be updated for it, so I'd like to use CS 5.1.  I'm also running the latest Suitcase Fusion 4.
    Any input on this would be appreciated.  Thanks!

    Does the cursor appear correct, do you have any other keys depresessed?
    The CMD key will make selection tool into direct slection. What OS are you running, update as there was a modifier key problem through 10.6.5 - 10.6.7

  • Illustrator CS4 Type Tool: Selecting won't work by double click or click and drag.

    Illustrator CS4
    I'm not exactly sure what happened, but suddenly my Type Tool can not select type by double clicking or click and drag any more.
    I'm using Illustrator CS4 (14.0.0) on a MacPro with OSX 10.6.8. Can someone please suggest what might be happening and how to resolve this problem?
    Thanks
    Eric

    There is a functional reason for this depending on how you work if you read yup about it in the help files i think they explain it well as i recalled it was exxplained well in the manual when they had one.
    It is not a change it has been this way for a long time and the options serve different users in a helpful way. hough it wwould be helpful to have a toggle of some kind.

  • Type Tool does not select type by double clicking or click and drag. (Windows CS 5 V15.1)

    Hi,
    My Type Tool does not select type by double clicking or click and drag. (Windows CS 5 V15.1). This is what I have tried so far and the problem still exists.
    Check preferences for "Text": "Select text-object by path only" should be off. Checked. It was off. Didn't fix it.
    Check the toggle for Show/Hide Edges in the View menu. Cmd(Ctrl)-H. Checked. Edges Showing. Didn't fix it.
    Trashed my Prefeerences. Didn't fix it.
    Any other suggestions out there?
    Thank you!!!

    I figured it out! I feel pretty silly, but I will share this in hopes of helping the next person :/ Here goes. Don;t laugh to hard!
    It was the leading! The space between the two lines of text was less than half of the point size of the actual text. So it looked like two lines but there was actually 3.
    Geeze, I'm embarrassed! Thank you for suggesting that I may not need to recreate the entire document, but start with the text, input manually again (even on a new layer, to match the original), which lead to a fix!
    Thank you!!!

  • Double-click and drag don't open image files

    Hi,
    I'm having problems loading images in Preview and Adobe apps (CS1).
    From Finder, I can double click to open an image in Preview but it only opens the first image, and won't load more than one. I've tried changing the preferences to "open groups of images in the same window" or "open all images in one window." Neither solve the problem.
    My adobe apps won't open a file when I double click it from the finder at all. I have to use the "open" command from within the application to open an image file.
    I am a designer and photographer trying to browse groups of images at once and this is driving me crazy! I have tried copying over different preference files from my old computer (a powerbook G4), and I'm wondering if I either failed to copy the right one or copied something that is interfering with the shortcut actions.
    The interesting part is, that the same actions are working fine for other kinds of files -- for example, I can open multiple word documents by double clicking their icons in Finder.
    Any suggestions appreciated. Thank you.
    Amy Hengst

    Hi Amy
    What kind of files are these? If I wanted to open multiple images in Preview (be they BMP, JPEG, PSD, whatever) I would select them and drag onto the Preview icon in the Dock which opens the first image in a single window with the remaining images in a 'thumbnail drawer' to the right (like you get with big PDF documents).
    On the other hand if I double-click, 10 to 1 it would launch Photoshop which I use as an image editor only, not an image manager or viewer. You can of course change the application which any document uses to open it, with the Get Info window. But if you use more than one application (as I do - PS to edit, Preview to just view), then click-and-drag onto the Dock might be your best bet.

  • The MacBook Pro will not allow me to cut-and-paste to and from or to click-and-drag to the external drive. I can copy-and-paste, but then I must send the original to the trash, which doubles the time and effort. Is there any way to cut-and-paste?

    I have recently switched from a PC to a MacBook Pro.
    I have a large number of documents and photographs on a multiterrabite external drive, backed up on a second multiterrabite external drive.
    Both external drives are formatted for MacIntosh. This has been verified by agents at an Apple store and also at Best Buy in two different cities.
    This is the problem:
    The MacBook Pro will not allow me to cut-and-paste to and from or to click-and-drag to the external drive. I can copy-and-paste, but then I must send the original to the trash, which doubles the time and effort. Is there any way to cut-and-paste?
    Also, the MacBook Pro will not allow me to rename multiple documents or photographs. I can click-and-rename a single one, but this is impossibly time consuming. I can batch-rename in iPhoto, but when I transfer the photographs to the external drive, the rename does not transfer.
    I’m reduced to using my wife’s Toshiba to cut-and-past, rename, and transfer documents. It works perfectly. Is there any way to do this on the MacBook Pro?
    Thanks!
    Roderick Guerry
    [email protected]

    Roderick Guerry wrote:
    The MacBook Pro will not allow me to cut-and-paste to and from or to click-and-drag to the external drive. I can copy-and-paste, but then I must send the original to the trash, which doubles the time and effort. Is there any way to cut-and-paste?
    No, this is a philosophical difference between Apple and Microsoft. Apple believes that it's dangerous to cut a file in case the user never pastes it; in that case the file is lost. Microsoft seems to not have this problem (if I remember Windows correctly) because they don't delete the originating file if it's cut but never pasted.
    Even though Macs have a lot of keyboard shortcuts, philosophically Macs have traditionally been mouse-first. This applies to file copy operations. In your case, what a Mac user would do is open the source window, open the destination window (on your second drive), and then Command-drag the selected files from the source to destination window. This is because a normal drag would leave the originals behind, while adding the Command modifier key tells OS X that this is a Move, not a Copy, so don't leave the originals behind.
    (In addition there are different rules for drag-copying within the same volume or between different volumes. If you drag between two folders on the same volume, the files are moved. If you drag between different volumes, the files are copied unless you hold down Command to delete the copies on the source volume.)
    Roderick Guerry wrote:
    Also, the MacBook Pro will not allow me to rename multiple documents or photographs. I can click-and-rename a single one, but this is impossibly time consuming. I can batch-rename in iPhoto, but when I transfer the photographs to the external drive, the rename does not transfer.
    Two problems in this case. First, batch file renaming is not built into OS X unless you build something with Automator. However, there are many utilities that can do batch file renaming which you can find at macupdate.com or on the App Store. Since I work with media I often batch rename using one of the media managers I have lying around like Media Pro or Adobe Bridge (comes with Photoshop).
    iPhoto is a database front end designed to shield the file system from the consumer and let them concentrate on creativity and sharing. As such it is often a poor choice for managing files directly. When you "transferred the photographs" chances are you moved the originals, not the ones iPhoto edited which are stored in a hidden folder.
    Roderick Guerry wrote:
    I’m reduced to using my wife’s Toshiba to cut-and-past, rename, and transfer documents. It works perfectly. Is there any way to do this on the MacBook Pro?
    There will not be a way to do it exactly like Windows. As described above, there are ways to do it "the Mac way." If it is possible to remove judgment on which way is "better" you might find the Mac way to be acceptable, but of course sometimes we simply prefer what we're used to.

  • Dragging to select multiple objects within a Pages document

    I am trying to select multiple, closely spaced objects (text boxes, lines, shapes, etc) within a Pages document. They are located ~1/3 of the way from the left margin of the document, and there are objects both to the left and the right of this group.
    I know that you can click outside of the Pages document with the mouse, then drag into the document to select multiple objects. However, is there any way to drag to select multiple objects without first clicking outside the document?
    Command click is a pain in the butt because I inevitably mis-click and have to start again to select all objects. I don't like having to drag in from the margin and then command-click to de-select objects I don't want.
    is there not an option to just shift-click to form a selection box around objects within the document? It seems like there should be a simple solution to this, but I have yet to find it.
    Thanks

    mattcass wrote:
    Command click is a pain in the butt
    Isn't it just! The people who created Pages should get a right spanking on this fundamental stuff up.
    All you can do is try again. I find myself repeating the same task over and over in Pages simply because you can't easily grab things.
    When you do +command click+ try and get the edges of objects, otherwise Pages thinks you are still trying to click inside the object.
    Once you have +command drag lassoed+ multiple objects you can +shift command click+ to unselect the ones you don't want. Again a problem if they are close to each other.
    Peter

  • On OSX 10.5.8 and I can't cut & paste or click and drag, HELP!

    Hi all,
    Please help! I can no longer click and drag icons or cut and paste.  I'm running OSX 10.5.8 on an '07 macbook, and I really do not want to loose everything, is there a solution???  At the same time I have had a little trouble with the net and downloading files.
    Is there a fix??  I'm desparate

    Could be many things, we should start with this...
    "Try Disk Utility
    1. Insert the Mac OS X Install disc, then restart the computer while holding the C key.
    2. When your computer finishes starting up from the disc, choose Disk Utility from the Installer menu at the top of the screen. (In Mac OS X 10.4 or later, you must select your language first.)
    Important: Do not click Continue in the first screen of the Installer. If you do, you must restart from the disc again to access Disk Utility.
    3. Click the First Aid tab.
    4. Select your Mac OS X volume.
    5. Click Repair. Disk Utility checks and repairs the disk."
    http://docs.info.apple.com/article.html?artnum=106214
    Then try a Safe Boot, (holding Shift key down at bootup), run Disk Utility in Applications>Utilities, then highlight your drive, click on Repair Permissions, reboot when it completes.
    (Safe boot may stay on the gray radian for a long time, let it go, it's trying to repair the Hard Drive.)

  • Windows 7 in boot camp - two finger click and drag issues

    Hey everyone. I have Windows 7 on Boot Camp (MacBook Pro mid-2010, Mac OS X Lion) and I cannot seem to click on a window with one finger, then use a second finger to drag it. Every time I try it brings up the right click menu. Is there any way of fixing this? I want to be able to drag, darn it! Thanks.
    Grant

    Having had the same issue on my MacBook Pro with Boot Camp 5.0.5033 on Windows 8, workaround being external mouse, I have found the following:
    If Trackpad->Two Fingers->Secondary Click is enabled in Control Panel/Boot Camp, in order to Click and Drag one cannot click any place on the trackpad. One must click bottom area of the trackpad with one finger, and then use another finger to drag.
    If Trackpad->Two Fingers->Secondary Click is disabled, Click and Drag works the same way as in Mac OS X: one can click any place on MacBook Pro built-in trackpad with one finger, and then use another finger to drag the window or select a fragment of text. The two fingers Secondary Click, consequently, becomes disabled.
    For me Mac OS X-style Click&Drag is more important, so I disabled two fingers Secondary Click, and assigned Bottom-Right-Corner of the trackpad to be Right-Click instead.
    Don’t know if the question is still open… Hope, however, the info might be helpful to those having the same inconvenience with Click and Drag under Boot Camp.
    HTH

Maybe you are looking for

  • Video Files not Playing in MAIL

    I can't view video files in MAIL after LION upgrade.  Previous O/S worked great.  Downloaded updated Flip for Mac, Flash, etc.  When I receive a video file such as a WMF, I can see it down load and then the viewing screen goes completely black.  If I

  • My itunes isnt working

    My app store isnt working and when ever i go on i tunes it says the certificate for this server is invalid.

  • Got a SONY mp3 player for Christmas: How do I sync with iTunes?

    OK, here's the deal. I have a MacBook Pro and use iTunes regularly, but now I have a SONY mp3 player from Santa. How do I get my songs from iTunes onto my SONY? Someone help. Thanks!

  • SQL Query to find missed nunmber from each group

    Hi, I have a set of records called "Level" and its values are A, B, C, D. From the below list, I want to identify the missed level for each group. ID          Level          Type 1             A               Floor 1             B                Floo

  • How to align Flash web to center using Flash CS3?

    Hi, anyone have the same issue as me? I wanted to align my flash web to center on the IE. I have selected the alignment to center before publish on the web? Why is the command not useful or working? Please advice!