Help a newbie: drawing shapes (but seeing it drawn in 'real' time)

Hi guys,
I'm a complete Java newbie, but I'm learning it for my senior project in physics that deals with strong field laser physics modeling. My question actually doesn't pertain to any of that though.
I have a little applet that just draws a snowman, but my friend (who's a really good girl friend of mine) would like to see the shapes being drawn, like appearing from nothing, then being created as the applet runs. Does that make sense? I have no idea how to make something 'trace' or create or cirlce a rectangle slowly. Any help would be appreciative. Thank you.
Adam

Make it run slower, by putting about a jillion other threads continuously factoring random odd integers ;)
Or re-write the line/circle drawing routines and put a pause between various steps.
Another possible option is taking off the buffer, but this may still be too fast with a lot of flickering.
Or just tell her you've got better things to worry about than lines drawing themselves slowly...

Similar Messages

  • Any good Power Shell command or script to see connected users in real time for Lync 2013

    Are there any good Power Shell commands or scripts that can tell you how many users are connected to a pool in real time so you can evaluate the current load. I have 3 FE servers in a single pool. We just started deploying the lync client to the users and
    were curious as to how many are actually connected. I saw a number of home made scripts but really didn't care for any of them. I just want to find out how many users that are actually connected to the pool at a particular moment so we can see how many users
    are really using the product.

    Have you looked at Pat Richard's get-csconnections script?: http://www.ehloworld.com/269
    Please mark posts as answers/helpful if it answers your question.
    Blog
    Lync Validator - Used to assist in the validation and documentation of Lync Server 2013.

  • I know its Friday but please reply with some real time scenerios...

    Please let me know the kind of challenges you faced on your current project and the kind of approach you took to solve them...
    Regards by heart
    Bhalout

    Hi Bhalout
    We can say every project is a challenging one .... But one of the case i can explain is .........
    We are getting monthly data from source , but we need maintain that data in ODS according to Weeks.
    Example:
    CompanyCode| Month | Key Figure
    1000 | 200703| 100
    I have split the monthly records in to Weekly record when loading the data in to BW. This is done by selecting Return Table option in the update rules of a Key figure and a writing a start routine..........
    Example:
    ODS/Cube Data
    CompanyCode | CalMonth | Week | KeyFigure
    1000 | 200703 | 200709 |25
    1000 | 200703 | 200710 |25
    1000 | 200703 | 200711 |25
    1000 | 200703 | 200712 |25
    Hope this example works..........
    Some other challanges you can explain about are
    Query Performance issues when go live and you can explain about maintaining aggregates, data load issues such as failing of delta in a process chain .........and how you resolved those issues.
    One example is you can say Users want to see some special characters in the report and I used RSKC transaction to allow those special characters.........
    Mostly this question is a general question and I hope you can get more real time scenarios from sdn.......
    Assign Points If useful.......
    Regards
    Naga

  • Seeing database activity in real time.

    Hi all,
    Just a small question about the monitoring that Oracle provides.
    I know that dba_tab_modifications provides information about
    the following
    SQL> desc DBA_TAB_MODIFICATIONS;
    Name Type
    TABLE_OWNER VARCHAR2(30)
    TABLE_NAME VARCHAR2(30)
    PARTITION_NAME VARCHAR2(30)
    SUBPARTITION_NAME VARCHAR2(30)
    INSERTS NUMBER
    UPDATES NUMBER
    DELETES NUMBER
    TIMESTAMP DATE
    TRUNCATED VARCHAR2(3)But what I would like to know is,
    a) is there any way of telling the number of selects against a table?
    and
    b) the amounts of blocks inserted/updated/modified and/or even selected.
    The number gives a clue, but I think that the information could be
    tied in better with the number of blocks - anybody agree? Plus, the
    number of selects could be critical for OLAP apps, and/or OLTP
    systems which are being hammered by (selfish) managers who
    demand reports no matter what the impact on end-users (i.e.
    the poor drones who enter all the data) is.
    Any ideas, URL's, suggestions or whatever appreciated.
    Rgs,
    Paul...

    I've found the pretty pictures in EM on the performance screens are real good for displaying hammers. It can be a real eye-opener as the big 'uns are not always what you expect, and not always the bottleneck you expect. The downside is the reaction may not be what you desire either (ie, throw more hardware at it!).

  • Program object schedule success but is not executed in real time

    Hi all,
    I have a batch file ad following is the content
    set path=C:\WINDOWS\system32
    echo Copying started at %date% %time%>>_date_.txt
    XCOPY "
    Boxis\c$\Program Files\Business Objects\Tomcat55\webapps\dswsbobje\WEB-INF\classes\qaawsWsdl.zip" "
    Sxi31\d$\Program Files\Business Objects\Tomcat55\webapps\dswsbobje\WEB-INF\classes" /s /a /d
    echo Copying finished at %date% %time%>>_date_.txt
    echo Completed Successfully at %date% %time%>>_date_.txt
    echo -
    >>_date_.txt
    pause
    I have uploaded this batch file in enterprise. When I schedule it the status is shown as Success however the file qaawsWsdl.zip is not copied to the destination.
    Note: When executing the batch file real time the file is getting copied
    I have added the user in Replace a process level token policy
    I have set program object rights to run script/binaries
    SIA is running on domain account that has access to source as well as destination folders.
    Am I missing something?
    Environment
    Business Objects XI 3.1 SP3 clustered (Also tried above in standalone, same issue)
    Windows Server 2003

    The program object will run with the credentials of the user you provided in the schedule panel unless you did not provide any and you have set a default user account in the CMC under Application->CmC->Program object settings. THis user has to have access on the source and target directories.
    What you can do is try to login manually on the BOBJ server using the credentials of the windows user that runs the program object and try to run the script from the command line.
    The domain account under which the SIA is running is not really relevant
    Regards,
    Stratos

  • How to see the bitrate of a video in real time

    Some time ago I posted a question on this forum, asking if it's possible to do that (http://discussions.apple.com/thread.jspa?threadID=325516). As the topic is archived, I can not write the answer I found today: VLC, at least version 0.8.5, can do exactly what I need: on Window > Information > Statistics, it's a reading named Stream bitrate that reads like once per second the bitrate.
    It works not only for DVDs, but for any video, of course.
    Brilliant! And it's free!!

    This is great!
    You can both watch your newly compressed m2v and see the bitrate in real time.
    VLC media player 8.5 for Mac OS X can be downloaded here:
    http://www.videolan.org/vlc/download-macosx.html

  • Dear Friends, I am trying to draw a structure in Adobe Illustrator with 3D effect. But I am unable to give it proper shape. Can someone please help me for drawing the similar structure as showed below. I have facing problems in giving 3D effect.

    Dear Friends, I am trying to draw a structure in Adobe Illustrator with 3D effect. But I am unable to give it proper shape. Can someone please help me for drawing the similar structure as showed below. I have facing problems in giving 3D effect.
    Thanks a lot for your great help...

    i made a quick example:
    and what it's made of:
    just shapes and gradients. used a combination of pathfinder and shape builder to get the shapes exact.

  • I did hold the ALT cmand r key but i cant see the globe i dont know how i can fix my macbook pro late 2008 can any 1 plzzzz help me im very upsate but i live PAKISTAN in here i cant find os x lion disk i dont know what to do if i get the os x lion usb

    i did hold the ALT cmand r key but i cant see the globe i dont know how i can fix my macbook pro late 2008 can any 1 plzzzz help me im very upsate but i live PAKISTAN in here i cant find os x lion disk i dont know what to do if i get the os x lion usb

    That does not work on model year older then 2010 and really doesn't work on any older then late 2011 models.
    You will need a set of original system dvd disc thjat are always sypplied with every mac sold before Lion came out. Systems older then late release early 2011 models.
    If you don't have them you kcan order a replacement set from apple by calling them. Have the serial number of you mac handy.

  • HT203477 PLEASE HELP I CAN HEAR SOUND BUT CAN'T SEE VIDEO(final cut pro x)what gonna on?

    PLEASE HELP I CAN HEAR SOUND BUT CAN'T SEE VIDEO(final cut pro x)what gonna on?os x lion 10.7.4(11e53)

    What's the video exactly? Open into the QT player and report what it says in the movie inspector or post a screen shot.

  • How can i get my video chat to work on facebook it freezez they see me but all i see is me froze in time can anyone help please its only just started to happen

    can anyone help me with video chat on facebook ?my mac book pro cam keeps freezing freinds can see and hear me but i cannot see them im frozen in time but when i go full screen they bappear but they break up any way this can be put right?was fine befor i updated my my mac to the new software

    Si vous avez utilisé la commande Save As Template depuis Pages, il y a forcément un dossier
    iWork > Pages
    contenant Templates > My Templates
    comme il y a un dossier
    iWork > Numbers
    contenant Templates > My Templates
    Depuis le Finder, tapez cmd + f
    puis configurez la recherche comme sur cette recopie d'écran.
    puis lancez la recherche.
    Ainsi, vous allez trouver vos modèles personnalisés dans leur dossier.
    Chez moi, il y en a une kyrielle en dehors des dossiers standards parce que je renomme wxcvb.template quasiment tous mes documents Pages et wxcvb.nmbtemplate à peu près tous mes documents Numbers.
    Ainsi, quand je travaille sur un document, je ne suis pas ralenti par Autosave.
    Désolé mais je ne répondrai plus avant demain.
    Pour moi il est temps de dormir.
    Yvan KOENIG (VALLAURIS, France)  mercredi 23 janvier 2011 22:39:28
    iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.2
    My iDisk is : <http://public.me.com/koenigyvan>
    Please : Search for questions similar to your own before submitting them to the community

  • HI everybody i want to ask if you come me in help, i want to draw paths but when i use stroke options with pen or brush settings i loose quality when i zoom in , can someone help me with pen settings???

    HI everybody i want to ask if you come me in help, i want to draw paths but when i use stroke options with pen or brush settings i loose quality when i zoom in , can someone help me with pen settings???

    The work path is a vector object, and infinitely scalable, but when you stroke it, Photoshop lays pixels on a layer that follow the path.  These pixels are raster based and can not be scaled without loosing quality.  You do have options.  If you want to make the raster layer bigger, transform the work path and stroke it again.  Or work at a higher resolution in the first place.
    Incidentally, you can't stroke a Path with the Pen, because it is a Vector based tool, and stroking is a raster based function.

  • How to implement BINDING between drawing shapes and properties?

    See this background info:
    Can we have BINDING between drawing shapes and properties?
    This needs more specific info. My application reads a number of XML files, and places the data in an Excel worksheet. Let's say that there are 20 XML files, the app creates 20 lower tabs (spreadsheets) named: "Item 1", "Item 2", ...,
    "Item 20".
    That is the current version. I am told by the users, however, that in some cases there are some XML files which create more than 1 Excel lower tab.  For example, the file: "Items 8-11.xml" needs to fill tabs 8, 9, 10 and 11.
    In that particular case the user will modify the default map (a 45-degree diagonal, equivalent to the
    identity function F(x) = x), by clicking around. The resulting new map will look as follows:
    Since the number of XML files does not change, the number of rows is constant. However, each time a black square is moved from its canonical (45-degree) location, a spreadsheet becomes "orphan" and therefore the application must create a new Excel
    lower tab (which is a grid column). IOW: The number of columns keeps on growing to the right.
    List<Model>
    I figure that (as opposed to DataGrids which grow and shrink vertically, which each Model being 1 row) this thing should use the column as fundamental Model.
    Before running the main app (the XML file reading procedures), the user will select a menu item named "Configure XML to Excel Mapping" and an interface similar to the image above will be shown.
    In addition to the property binding, which has been discussed, how should I implement the drawing and erasing of black and white squares? I guess I will need some sort of "ConvertTo" bidirectional bridge from/to boolean and square drawing?

    You lost me with the xml file and the tab and the wossname to the thingummybob.
    I don't follow the explanation, sorry.
    The way to show stuff like that isn't dependent on how the data is stored where though.
    I probably wouldn't draw them, as such.
    I'd probably just make each a usercontrol which bound the fill brush of a rectangle for the black white bit and used a border for the outline.
    To simplify that:
    <Grid> <Border>
    <Rectangle Fill={Binding FillBrush}"/>
    </Border>
    </Grid>
    FillBrush
    Would be a public property solidcolorbrush exposed from your cellvm
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;
    using System.Windows.Media;
    using GalaSoft.MvvmLight;
    namespace wpf3
    public class CellVM : ViewModelBase
    private SolidColorBrush fillBrush;
    public SolidColorBrush FillBrush
    get { return fillBrush; }
    set
    fillBrush = value;
    RaisePropertyChanged();
    You can then have some logic somewhere which tells that viewmodel to show black or white fill.  Which would be that converter bridge thingy equivalent.  This thing is true then FillBrush = whiteBrush else FillBrush = blackBrush.
    You could probably do it with just rectangle, lose the border and set the Stroke on the rectangle.
    The stroke is the outside line round a rectangle ( or any shape).
    https://msdn.microsoft.com/en-us/library/system.windows.shapes.shape.stroke(v=vs.110).aspx
    And you would of course do other stuff like sizing the usercontrol and arranging an list in a list as I explained in your other thread.
    Oh.................
    But to answer the question in the title.
    Yes you can bind all sorts of things including the point making up a polygon, brush used to draw the line and all sorts.  You could even do flashing cells if you wanted.
    Hope that helps.
    Recent Technet articles: Property List Editing;
    Dynamic XAML

  • Drawing Shapes in Layers with CS3

    I am working with Photoshop Extended v10.0.1 on Mac OS v10.5.8
    I went from PS v5.5 to v10.0.1. Big leap.
    In v5.5 I was able to use the Line tool, Rectangle tool or any other shape tool to draw on different layers. I could control the lines width and color. You would be able to see all of the different shapes on the different layers all at once unless of course you hid a layer. Now in 10.0.1 if I draw one shape on one layer, then another on a second layer, the second layer makes the first disappear. In fact I can't seem to draw more than one shape on any single layer, PS always automatically makes a new layer for the new shape. I've tried searching the manual for this and can't come up with the solution. I know much has changed between these two versions but is there something I must do to be able to draw shapes on different layers (and multiple shapes on one layer) and have them all visible like it was on v5.5?

    It looks like your shape layer color is white on both layers
    and so is the background layer.
    Double click on icon to the left of your vector mask in the
    layers palette to change to a different fill color.
    MTSTUNER

  • Excel drawing shape shown differently in 2 computers

    anyone encounter drawing shape missing in  excel? open the excel in 2 different computer but shown differently. tried to start excel in safe mode but still the same.
    the correct one:
    https://www.dropbox.com/s/7g3e8d5oydgabiz/correct%20.png?dl=0
    the wrong one:
    https://www.dropbox.com/s/efupyzsh15m7tzf/wrong.png?dl=0

    Hi,
    In regarding of the issue, please provide us more information to assist you better.
    Which Office version are you using with the two pcs?
    Do the two pcs have the same operation system and software environment?
    Based on my test with my local environment (Window 8.1 & Excel 20013; Windows 7 & Excel 2007/2010), I recreate some sample drawing like you provided, but I could not reproduce your issue.
    General speaking, if you are using the different Office version with the 2 pcs, the Excel file might display differences, because there also might be some compatibility issues.
    I recommend we try the following steps to narrow down the issue:
    First, open the file with third pc that installed the same Excel version with correct pc if possible.
    If the file display correctly, we'd better focus on the wrong pc (Second pc).
    Then, we may try the following methods and check they are helpful.
    Update the Office/Windows patches.
    Repair Office.
    Update the display card drive
    Next, if this issue still exists or could not open it with third pc, I recommend you upload the sample file through OneDrive, I want to download and test it.
    Regards,
    George Zhao
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • Is it possible to draw shapes on an background image?

    Hi all,
    I wanna ask if it is possible for loading an jpg as background image in Canvas, and draw shapes(ovals/rectangles) on it?
    I've tried, but it seems the shapes always covered by the image. How can I due with this? I want the shapes drawn on top of the image, not underneath it.
    Please Help! Thx.

    Am I doing anything wrong? cos I've already draw the shapes after the image in the paint method.
    Here's some of the program coding:
    // init
    PictCanvas coffeeCanvas=new PictCanvas();
    //set up Picture Canvas
    coffeeCanvas.thePic=getImage(getCodeBase(),"50p.jpg");
    coffeeCanvas.setSize(200,200);
    // paint method
    public void paint(Graphics g)
    g.drawImage(thePic,0,0,this);
    g.drawOval(0,0,20,20);
    repaint();
    }

Maybe you are looking for

  • Error during a system copy with HANA DB

    Hello, I´m doing a system copy in a SAP ERP 6.0 EHP7 with SAP HANA DB. During a homogeneous system copy procedure with SWPM, it show me the following error during the phase Database refresh postload-activities. I checked some log files: -- sapinst.lo

  • Clear throu fb60

    Hi all, I tried to clear the sales tax gl account payble throu vendor in t.code fb60.. but the system asking for tax code again.. (My process is to pay the sales tax to the govt authorities throu vendor) where we change this? i tried in obc4 to check

  • How to display smartform in the payslip application of ESS

    Hi experts,                     We developed a smartform for payslip .We want to use the smartform in the payslip application of ESS.Can anybody tell me how to do  this? Thanx in advance, Rajesh

  • Reinstall or Repair Elements 6

    I open E6 in Edit and open 5 images. I go to create->photo collage. There is nothing in Theme or Layout. I have selected a size and changed the page # at the bottom and click Done. Nothing happens! What am I missing? In my original posting I inadvert

  • Hi Please Suggest on this(DSO).

    Hi ALL,   I want to remove few objects from Key & Data Field in DSO .When i drag to remove it is not working. Please anyone can suggest on this Thanks & Regards Sameer Khan