How to create dots on a circle?

I need help please. Could someone kindly tell me how I can create dots to fit around a circle or wavy line using the blend tool and spine. However I want the dots to go from say 50mm in diam to 25mm at the middle one and then back up to 50 again? Any tips? Thanks in advance.

In CS 5 it is not really necessary to make a blend to do this particular effect you can use a drashed stroke as well
Use round caps give the dash "0" as the length and give the gap a distance sufficient enough so the sots clear each other and then use the width tool to
increase or decrease the width of the stroke it remains a stroke and the dots are proportionally scaled.
and you can go crazy whit it and depending on what you preferences are set for scaling strokes and effects you have even more options
below is one stroke
All one path two strokes

Similar Messages

  • How to create dotted or dash rectangle in Photoshop?

    Hi All,
    Is there any easy way in Photoshop CS3 or later Extended to create "dotted or Dask" rectangles? I am talking about the border of the rectangle to be "dotted or dash" line rather usual line? If there is any Actionscript (free) that will be fanastic.
    Thanks in advance...

    Photoshop CS6 makes it easy.
    With Photoshop CS5.5 and older, the best way is to make a path in the shape you want, then stroke it with a brush that's been prepared with the proper spacing and direction dynamics to cause the stroke to be dotted or dashed.
    Generally speaking you can find a lot of tutorials for doing it via Google.  What I might do is to search for something along the lines of dashed stroke photoshop, possibly also adding the word tutorial in the mix, then use the Google Images search, find one that looks like what you're trying to accomplish, and click through the Website For This Image link.
    Here's one of the first I ran across with such a search:  http://www.techimo.com/forum/graphic-design-digital-photography/110702-mini-tutorial-photo shop-making-dotted-dashed-lines-complex-path.html
    -Noel

  • How to create dotted line  under a region in page

    I have to create a region like this
    Registration
    Initial regitration
    Date Prepared field Date received
    LTO registration
    Registration No Date

    Hi,
    Add an Item of type Separater where you want a dotted line.
    Or if you have the region without Text(some of them) will show the region with line in the top(full line).
    Thanks.
    With Regards,
    Kali.
    OSSi.

  • How to create a circle from the centre?

    Hi. I'm using PS CS3 and I want to create a perfectly round circle from the centre. How do you do this?
    I know pressing shift while dragging makes it perfectly round. I've also read that pressing alt at the same time draws it from the centre, but it's not working, it just comes up with the eyedropper tool. Am I missing something or is there a different way to do it?
    Thanks.

    Hi,
    If you click and hold the mouse and then press the Alt key and drag it should work.
    Also, after you start dragging, add the Shift key to constrain to a circle.

  • How to create clipping paths shape like a slice of a circle?

    I want to make a DVD label by dividing the circle into 8 equal slices (like cutting a pie 4 times). In each slice I will put an actor's photo in it.
    I think I need to create 8 layers to house the 8 slices of photo, each layer gets a clipping path that is in the shape of a 45 degree slice of the circle. Once I have this setup I can paste photos into the layers and adjust the photos until it looks good in the confine of each slice.
    The question is how to create these clipping paths in the shape of a slice of the pie? I have already drawn a 120mm circle (using the elipse path tool) denoting the outside boundary of the dvd label. But I don't know how to cut it into 8 precise slices of 45 degree each. Help?

    Here's another way:
    Make a circle and a square that covers one quadrant of the circle. Select the square with the Path Selection Tool. Edit > Free Transform, using the reference point that corresponds to the center of the circle, and 90 minus the angle of the slice into the Horizontal Skew field. Hint: you can copy the results from the Windows Calculator and paste them directly into Photoshop for this. This will give you greater precision that you might care to enter by hand.
    Once you have committed the transform, select 'Intersect shape areas' in the option bar for the Path Selection Tool, and click Combine. There's your slice.

  • How to create flash quiz based on circling the correct answer?

    Hi all,
    I am quite new to actionscripting and need to create a flash based quiz.
    The user will have to circle the correct answer in the quiz.
    I do know of drag and drop function but didn't know how to create circling function.
    Please advise how should I get started.
    Thank you in advance.
    Regards,
    Chewy

    Here is something to wet your appetite. This script creates squares and allows you to draw any shape with the mouse when mouse is down.
    It doesn't define what square things are drawn around - this is how lines can be drawn with AS3 in principal. Just place the script on timeline.
    var beginPoint:Point;
    var drawingBoard:Sprite;
    var drawBoardGraphics:Graphics;
    init();
    function init():void
         removeEventListener(Event.ADDED_TO_STAGE, init);
         var board:Sprite = new Sprite();
         board.x = board.y = 20;
         addChild(board);
         var numSquares:int = 8;
         var gap:Number = 20;
         var square:Sprite;
         // make squares
         for (var i:int = 0; i < numSquares; i++) {
              square = makeSquare();
              square.x = (square.width + gap) * i;
              board.addChild(square);
         drawingBoard = new Sprite();
         drawBoardGraphics = drawingBoard.graphics;
         // board filler
         var drawFiller:Sprite = new Sprite();
         var g:Graphics = drawFiller.graphics;
         g.beginFill(0xff0000, 0);
         g.drawRect(0, 0, stage.stageWidth, stage.stageHeight);
         drawingBoard.addChild(drawFiller);
         addChild(drawingBoard);
         drawingBoard.addEventListener(MouseEvent.MOUSE_DOWN, startDrawing);
    function startDrawing(e:MouseEvent):void
         stage.addEventListener(MouseEvent.MOUSE_UP, stopDrawing);
         stage.addEventListener(MouseEvent.MOUSE_MOVE, onMouseMove);
         beginPoint = new Point(mouseX, mouseY);
         drawBoardGraphics.clear();
         drawBoardGraphics.lineStyle(3, 0xff0000);
         drawBoardGraphics.moveTo(beginPoint.x, beginPoint.y);
    function onMouseMove(e:MouseEvent):void
         drawBoardGraphics.lineTo(mouseX, mouseY);
    function stopDrawing(e:MouseEvent):void
         stage.removeEventListener(MouseEvent.MOUSE_UP, stopDrawing);
         stage.removeEventListener(MouseEvent.MOUSE_MOVE, onMouseMove);
         drawBoardGraphics.lineTo(beginPoint.x, beginPoint.y);
    function makeSquare():Sprite {
         var s:Sprite = new Sprite();
         var g:Graphics = s.graphics;
         g.beginFill(Math.random() * 0xFFFFFF);
         g.drawRect(0, 0, 60, 60);
         g.endFill();
         return s;

  • How to create a flash quiz based on circling the correct answer?

    Hi all,
    I am quite new to actionscripting and need to create a flash based quiz.
    The user will have to circle the correct answer in the quiz.
    I do know of drag and drop function but didn't know how to create circling function.
    Please advise how should I get started.
    Thank you in advance.
    Regards,
    Chewy

    Hi all,
    I am quite new to actionscripting and need to create a flash based quiz.
    The user will have to circle the correct answer in the quiz.
    I do know of drag and drop function but didn't know how to create circling function.
    Please advise how should I get started.
    Thank you in advance.
    Regards,
    Chewy

  • The cursor has changed to a dot with a circle around it; how can I get my normal cursor back?

    The cursor in the main part of Firefox has changed to a dot with a circle around it. This only occurs in Firefox and only in the page display area. I still have the arrow in the tool bar and tabs area. When moving the cursor around in the display area the dot/circle is accompanied by a blinking arrow.

    It's the quicktime plug-in causing the problem. If you disable it, your cursor will return to normal. Happened to me, and fixed it by doing that.

  • How to create the exposure circle in the middle?

    Hey guys...
    I wanna know how to create that exposure in the middle of this pic... It adds focus to the pic... Like the circular light in the middle...
    Sorry, I'm very new :/
    http://25.media.tumblr.com/tumblr_m51ol23d5n1ruc6bgo1_500.jpg

    It's called a vignette, and my favourite way of doing it is with Camera RAW (ACR).  You can open a JPG in by selecting it in Bridge, and either right clicking and choosing Camera RAW, or with the keyboard shortcut Ctrl r (Cmd r for Mac).  The vignette under the fx tab.
    But you can do it in Photoshop of course, and by several methods. 
    Open a Curves adjustment layer, and drag the center of the curve down which will darken the entire image.
    Select the elliptical marquee tool, and making sure the mask is active in your Curves adjustment layer (it will have a double border) make a round selection in the middle of your image. It needs to be about ¾ the size of the image.
    Fill the round selection with black.
    Now invert the mask by using Ctrl I (Cmd I for Mac)
    All that’s left to do now is blur the mask.  So go Filter > Blur > Gausian blur
    The nice thing about using this method is that you can see exactly how much affect the blurring is having. but you'll need pretty high values with Gausian blur.  You will probably find you need to darken the edges more, so just drag the curve down some more.
    OK, you can do that, but you could also have used the Masks panel to blur the mask by using the Feather slider.  This would also give you the chance to make the selection bigger or smaller.   You’ll find there are lots more ways to do the same thing as you get into the program, but I find it is hard to beat using ACR.

  • How to create a radio button that changes colors

    I'm using Acrobat X and ID CS5 on Mac OS X.
    A couple of years ago someone on the forums explained to me how to create a button that changes color with each click. You can view a sample PDF at https://dl.dropboxusercontent.com/u/52882455/colorcycle.pdf. They gave me the document JS and showed me how to set the properties of the button. I've integrated the button into a particular series of PDF forms and it's worked out very well.
    Now I would like to do the same thing, but using a circle instead of a square. Can anyone tell me the best way to do this? Can I somehow set a radio button to cycle through colors in the same way? I design my forms initially in ID CS5 and then activate and format the fields in Acrobat X. I've tried using circles instead of squares in my ID document, but when I export to an interactive PDF, they're converted to squares.
    Any ideas?

    I understand how to make buttons cycle through colors-- the problem I'm having is that I'm trying to figure out how to make a circular button cycle through colors. When I export my ID document to PDF, my round button maintains it's original appearance, but when I click on it to cycle through the colors, it behaves like a square (see new PDF at https://dl.dropboxusercontent.com/u/52882455/colorcycle2.pdf).
    If I use a radio button, I can get it to cycle through colors, but I don't want it to have a black dot in the middle. Is there a way to format the radio button to not show the black dot when clicked?

  • How to create subpicture for a button?

    Hello!
    I have really tried to find the answer to this rather silly problem on my own, but without result. Please help someone!
    The situation:
    I have a menu with three choices: "Play Movie", "Scene Selection" and "Subtitles". Now, the text presenting these choices are part of the background image, created in Premiere (the program I know best). They are written with an old typewriter to get that gritty feeling.
    I want the user to scroll between these "menu items". The currently selected item should be indicated by a black circle/spot/dot before the text of the item. By default, when the menu appears, there is a black circle in front of (to the immediate left of) the item "Play Movie". The user should now be able to step with his/her remote to the other items, thereby making the black circle in front of "Play Movie" disappear and appearing instead before some of the other items. In short: the black circle is always showing before the currently selected item. OK, I got a bit verbose there, but the idea got across hopefully. One more thing: the background color is 100% white.
    Up to this point, my solution was this: I placed black circles (small images with gradation and all, very nice looking) in front of ALL THREE ITEMS. Then I convert these into buttons. Then I choose the color set for the menu so that the unselected state is 100% white, plain and simple, with 100% opacity, thereby covering the black circles that should not show. Only in the selected and activated states does opacity for the button subpicture drop to 0%, thereby revealing the black circle that should be seen.
    The problem? Well, on some DVD-players (not on the XBOX 360 though), when an item is activated, all three circles show for a brief moment before the selected action starts (for example playing the movie). It also happens in Encore Preview. This is not logical at all and looks amateurish. I don't know why it happens, but my guess is that it wouldn't if I did this the "correct" way: by creating subpictures fo the buttons in the shape of circles. I understand the nice looking gradations must go out the window but that is a price I'm willing to pay.
    But now I run into an unexpected problem: I don't understand how to create a subpicture for the button that is a black circle. It seems the documentation in Encore and on forums in general takes for granted that you know how to do this.
    What I tried ws this: I created a monochrome, small image in bmp format - a black circle on white background. But this image just shows up as a black rectangle in Encore.
    What should I do? I should add that I have no real experience with Photoshop, so go slow if you go there.
    Regards,
    Nikolaj

    Basically, when one realizes the limitations of the Sub-picture Highlights, as set by the DVD-specs., it's easy to see the "workaround."
    A couple of the aspects of Sub-picture Highlights are:
    1.) 2-bit color (either ON, or OFF), from a limited color palette, with degrees of Transparency (the opposite of PS's Opacity).
    2.) they will appear on top of anything else on the Menu, including things like Button text/graphics.
    By constructing your Sub-picture Highlight in PS, you can use Masking to define where it will be, and where it will not be. In the case that prompted my article, the poster had a series of Text Buttons, and the Sub-picture Highlights were formed from that Text. The poster did not like the look of those 2-bit jagged blocks of color overlying the Text in the Button. The workaround is to "punch a hole" in the Sub-picture Highlight, so that it is hollow, where the Button's Text appears. This is done in PS, by using the "outline" of that Text to create a Mask for the Sub-picture Highlight. The jagged aspect can be adjusted a bit, by using a degree of Transparency (set in the non-Auto Color Set back in Encore). We still have a 2-bit color Sub-picture Highlight, and it still overlays the Button's Text, but now there is a hole in it, right where the Button's Text is located, and it is seen through that hole. The introduction of Transparency has the visual effect of "softening" the look of the 2-bit color, even though the jagged edges are still there - they just look softer. I went on to show how one could even use a second Sub-picture Highlight, that is just a bit larger than the first, and with more Transparency to simulate a "glow." Now, we cannot have a real "glow," because we are limited to that 2-bit color for the Sub-picture Highlight, but we can simulate it.
    Much of what a designer does is really slight of hand - illusion. They all have to work within the limitations of the DVD (or BD) specs., but with a bit of creativity, planning and some work in PS and Encore, they can create enough smoke and use enough mirrors to fool the user into believing that what they think they see skirt the DVD-specs. They do not, but that's where the illusion comes in.
    We get a lot of questions from people, who claim that one commercial DVD, or another, has full-color Sub-picture Highlights and they complain that Encore cannot do that - only 2-bit Sub-picture Highlights. What they are seeing, but do not realize it, is a dupe Menu, with a full-color graphic, and no real Sub-picture Highlight visible. Jeff gives full details on doing this. Same for those who have seen a Button with a duo-tone thumbnail, that turns full-color, when the Button is navigated to. Wow, how did they do that, and why can't Adobe Encore do that? Well, what they saw was a dupe Menu, with a full-color thumbnail and no visible real Sub-picture Highlight.
    Jeff shows how to create what appears to be at least a 3-color Sub-picture Highlight. It's really just 3 regular 2-bit color Sub-picture Highlights, with Masking to create the illusion that he beat the DVD-specs. Neat! [Being from the USA, I also liked that he used the US flag, but he could have chosen the French "Tri-color," or any other flag, without artwork.]
    These are all just tricks, but if the user buys into the illusion, who's to know?
    Enjoy,
    Hunt
    PS - though many of the great, older posts were lost, when the forum changeover happened, I strongly suggest reading the posts here. You can bypass ones that do not offer you anything, but almost every possible illusion has been discussed at least one time, and likely many, with some different workflows offered by those, who replied. Great reading.

  • What is this effect called, and how to create it?

    Hello,
    I' m just curious about this gradation effect's name, and how to create it in Photoshop.

    Hi,
    Chuck is on the right path. You can construct this with the Filter> Pixelate> Color Halftone..., but then you have to go further.
    The pattern is made of two sections of the same halftone channel, one rotated 180 degrees and horizontally offset.
    Basic outline:
    1. create a linear gradient (you can work in color or black/white)
    2. Filter> Pixelate> Color Halftone... use a large radius value for bigger circles, and set the channels to 0 or 90
    3. after the filter has run, go to the Channels panel and find a transition in one of the channels that you like
    4. Cmd/Ctrl click on the thumbnail of the channel to make a selection
    5. go back to the Layer panel and turn off the background layer with the full haltone filter effert.
    5. create a new layer, and fill it with a color (you want the dots to fill so invert the selection if needed)
    6. create another layer and fill it with a second color
    7. rotate the layer from step 6 180 degrees, and move it so the same size circles in the middle of you doc overlap. Now offset horizontally so the center point of circles lies halfway between the layer created in step 5.
    8. now marquee a selction that goes approximately half of the doc and create masks for both layers.
    9. Invert one fo the masks so that what you see is small dots of one color increasing to the center, and the second color decreasing back t the edge
    10 create a third layer and fill it with one of the color and drag copy the mask from the dot pattern layer of the opposite color. Drag this layer in stack order to just above the background layer.
    11. create a fourth layer filled with the opposite color of the step 11 layer. Drag this layer in stack order just below the layer you created in step 10.
    12. Now (there's surely some math that makes this more accurate but I was just eyeballing it), move the top layer with the mask linked down so it is below the other offset centers by ~60-70 %. Unlink the mask and move it back so more of the dot is exposed and starts to show when it will intersect with the other layer.
    13. Do the same mask movement with the second color dot layer so more of that layer's circle shows, until each dots tangents match up.
    Here's my layer panel for reference.
    regards,
    steve

  • Animate the outward spiraling appearance of dots comprising concentric circles

    I have the following illustration and I want to start with the dot in the middle and have the circle layers as though they are spiraling out from the dot in the very center (without using a wipe-like effect). Technically, each dot in each circle would appear in clockwise order and when a circle completes its appearance, the next outward circle of dots would beging to appear in similar fashion. Any ideas on ways to do this quicks (rather than manually animating the appearance of each circle)? If not, any other ideas on how to creatively animate the appearance of all these dots from the center dot (in a way that is not tedious)?

    If your illustrator artwork was created in the order you want the dots to appear then it's a simple matter to release the dots to layers, import the .ai file as a composition, and then sequence the layers in After Effects.
    Many of your dots appear to be different but some are the same. If you want to use a particle system then you'll need to create a movie with a different dot in each frame and all of the dots lined up. The emitter would fly around a path you created leaving a single dot on every frame.
    My approach would probably to create eliptical mask paths centered on each of the rings of dots, then apply stroke using all paths and stroke sequentially. The stroked layer would then be used as a track matte to reveal the dots. I think that would be the fastest solution to the problem.
    Here's a project file using your screenshot that took me less than 5 minutes. The position of the masks needs a little tweaking but it should get you started.

  • Create a specific size circle or rectangle

    How can I create a specific size circle?
    I know how to create a circle and then size it using the rulers but isn't there some way to create the circle to a specific size right from the start?

    > Phos±four dots - 8:24am Jun 14, 08 PST (#1 of 1)
    >You can do it with the Marquee tools or with the Custom Shape Tools.
    > Explore the drop-down menu and settings in the Options Bar for either tool.
    > Hint: "Fixed Size".
    Gack.... of course.... sorry about the line noise.

  • How to create the digital clock in java swing application ?

    I want to create the running digital clock in my java swing application. Can someone throw some light on this how to do this ? Or If someone has done it then can someone pl. paste the code ?
    Thanks.

    hi prah_Rich,
    I have created a digital clock you can use. You will most likely have to change some things to use it in another app although that shouldn't be too hard. A least it can give you some ideas on how to create one of your own. There are three classes.One that creates the numbers. a gui class and frame class.
    cheers:)
    Hex45
    import java.awt.*;
    import java.util.*;
    import javax.swing.*;
    import java.awt.geom.*;
    public class DigitalClock extends Panel{
              BasicStroke stroke = new BasicStroke(4,BasicStroke.CAP_ROUND,
                                               BasicStroke.JOIN_BEVEL);
              String hour1, hour2;
              String minute1, minute2;
              String second1, second2;
              String mill1, mill2, mill3;
              int hr1, hr2;
              int min1, min2;
              int sec1, sec2;
              int mll1, mll2,mll3;       
        public void update(Graphics g){
             paint(g);
         public void paint(Graphics g){
              Graphics2D g2D = (Graphics2D)g;
              DigitalNumber num = new DigitalNumber(10,10,20,Color.cyan,Color.black);     
              GregorianCalendar c = new GregorianCalendar();
              String hour = String.valueOf(c.get(Calendar.HOUR));
              String minute = String.valueOf(c.get(Calendar.MINUTE));
              String second = String.valueOf(c.get(Calendar.SECOND));
              String milliSecond = String.valueOf(c.get(Calendar.MILLISECOND));
              if(hour.length()==2){
                   hour1 = hour.substring(0,1);
                   hour2 = hour.substring(1,2);
              }else{
                   hour1 = "0";
                   hour2 = hour.substring(0,1);
              if(minute.length()==2){
                   minute1 = minute.substring(0,1);
                   minute2 = minute.substring(1,2);
              }else{
                   minute1 = "0";
                   minute2 = minute.substring(0,1);
              if(second.length()==2){
                   second1 = second.substring(0,1);
                   second2 = second.substring(1,2);
              }else{
                   second1 = "0";
                   second2 = second.substring(0,1);
              if(milliSecond.length()==3){
                   mill1 = milliSecond.substring(0,1);
                   mill2 = milliSecond.substring(1,2);
                   mill3 = milliSecond.substring(2,3);
              }else if(milliSecond.length()==2){
                   mill1 = "0";
                   mill2 = milliSecond.substring(0,1);
                   mill3 = milliSecond.substring(1,2);
              }else{
                   mill1 = "0";
                   mill2 = "0";
                   mill3 = milliSecond.substring(0,1);
              hr1  = Integer.parseInt(hour1);     
              hr2  = Integer.parseInt(hour2);
              min1 = Integer.parseInt(minute1);
              min2 = Integer.parseInt(minute2);
              sec1 = Integer.parseInt(second1);
              sec2 = Integer.parseInt(second2);
              mll1 = Integer.parseInt(mill1);
              mll2 = Integer.parseInt(mill2);
              g2D.setStroke(stroke);
              g2D.setPaint(Color.cyan);
              num.setSpacing(true,8);
              num.setSpacing(true,8);
              if(hr1==0&hr2==0){
                   num.drawNumber(1,g2D);
                   num.setLocation(40,10);
                   num.drawNumber(2,g2D);
              else{
                   if(!(hr1 == 0)){     
                        num.drawNumber(hr1,g2D);
                   num.setLocation(40,10);
                   num.drawNumber(hr2,g2D);
              num.setLocation(70,10);
              num.drawNumber(DigitalNumber.DOTS,g2D);
              num.setLocation(100,10);
              num.drawNumber(min1,g2D);
              num.setLocation(130,10);
              num.drawNumber(min2,g2D);
              num.setLocation(160,10);
              num.drawNumber(DigitalNumber.DOTS,g2D);
              num.setLocation(190,10);
              num.drawNumber(sec1,g2D);
              num.setLocation(220,10);
              num.drawNumber(sec2,g2D);
              /*num.setLocation(250,10);
              num.drawNumber(DigitalNumber.DOTS,g2D);
              num.setLocation(280,10);
              num.drawNumber(mll1,g2D);
              num.setLocation(310,10);
              num.drawNumber(mll2,g2D);
              g2D.setPaint(Color.cyan);
              if((c.get(Calendar.AM_PM))==Calendar.AM){               
                   g2D.drawString("AM",260,20);
              }else{
                   g2D.drawString("PM",260,20);
         String dayOfweek = "";     
         switch(c.get(Calendar.DAY_OF_WEEK)){
              case(Calendar.SUNDAY):
                   dayOfweek = "Sunday, ";
                   break;
              case(Calendar.MONDAY):
                   dayOfweek = "Monday, ";
                   break;
              case(Calendar.TUESDAY):
                   dayOfweek = "Tuesday, ";
                   break;
              case(Calendar.WEDNESDAY):
                   dayOfweek = "Wednesday, ";
                   break;
              case(Calendar.THURSDAY):
                   dayOfweek = "Thursday, ";
                   break;
              case(Calendar.FRIDAY):
                   dayOfweek = "Friday, ";
                   break;
              case(Calendar.SATURDAY):
                   dayOfweek = "Saturday, ";
                   break;
         String month = "";     
         switch(c.get(Calendar.MONTH)){
              case(Calendar.JANUARY):
                   month = "January ";
                   break;
              case(Calendar.FEBRUARY):
                   month = "February ";
                   break;
              case(Calendar.MARCH):
                   month = "March ";
                   break;
              case(Calendar.APRIL):
                   month = "April ";
                   break;
              case(Calendar.MAY):
                   month = "May ";
                   break;
              case(Calendar.JUNE):
                   month = "June ";
                   break;
              case(Calendar.JULY):
                   month = "July ";
                   break;
              case(Calendar.AUGUST):
                   month = "August ";
                   break;
              case(Calendar.SEPTEMBER):
                   month = "September ";
                   break;
              case(Calendar.OCTOBER):
                   month = "October ";
                   break;
              case(Calendar.NOVEMBER):
                   month = "November ";
                   break;
              case(Calendar.DECEMBER):
                   month = "December ";
                   break;
         int day = c.get(Calendar.DAY_OF_MONTH);
         int year = c.get(Calendar.YEAR);
         Font font = new Font("serif",Font.PLAIN,24);
         g2D.setFont(font);
         g2D.drawString(dayOfweek+month+day+", "+year,10,80);
         public static void main(String args[]){
              AppFrame aframe = new AppFrame("Digital Clock");
              Container cpane = aframe.getContentPane();
              final DigitalClock dc = new DigitalClock();
              dc.setBackground(Color.black);
              cpane.add(dc,BorderLayout.CENTER);
              aframe.setSize(310,120);
              aframe.setVisible(true);
              class Task extends TimerTask {
                 public void run() {
                      dc.repaint();
              java.util.Timer timer = new java.util.Timer();
             timer.schedule(new Task(),0L,250L);
    class DigitalNumber {
         private float x=0;
         private float y=0;
         private float size=5;
         private int number;
         private Shape s;
         private float space = 0;
         public static final int DOTS = 10;
         private Color on,off;
         DigitalNumber(){          
              this(0f,0f,5f,Color.cyan,Color.black);          
         DigitalNumber(float x,float y, float size,Color on,Color off){
              this.x = x;
              this.y = y;
              this.size = size;
              this.on = on;
              this.off = off;
         public void drawNumber(int number,Graphics2D g){
              int flag = 0;
              switch(number){
                   case(0):          
                        flag = 125;
                        break;
                   case(1):
                        flag = 96;
                        break;
                   case(2):
                        flag = 55;
                        break;
                   case(3):
                        flag = 103;
                        break;
                   case(4):
                        flag = 106;
                        break;
                   case(5):
                        flag = 79;
                        break;
                   case(6):
                        flag = 94;
                        break;
                   case(7):
                        flag = 97;
                        break;
                   case(8):
                        flag = 127;
                        break;
                   case(9):
                        flag = 107;
                        break;
                   case(DOTS):
                        GeneralPath path = new GeneralPath();
                        path.moveTo(x+(size/2),y+(size/2)-1);
                        path.lineTo(x+(size/2),y+(size/2)+1);
                        path.moveTo(x+(size/2),y+(size/2)+size-1);
                        path.lineTo(x+(size/2),y+(size/2)+size+1);
                        g.setPaint(on);
                        g.draw(path);     
                        return;
              //Top          
              if((flag & 1) == 1){
                   g.setPaint(on);
              }else{
                   g.setPaint(off);
              GeneralPath Top = new GeneralPath();
              Top.moveTo(x + space, y);
              Top.lineTo(x + size - space, y);
              g.draw(Top);
              //Middle
              if((flag & 2) == 2){
                   g.setPaint(on);
              }else{
                   g.setPaint(off);
              GeneralPath Middle = new GeneralPath();
              Middle.moveTo(x + space, y + size); 
              Middle.lineTo(x + size - space,y + size);     
              g.draw(Middle);
              //Bottom
              if((flag & 4) == 4){
                   g.setPaint(on);
              }else{
                   g.setPaint(off);
              GeneralPath Bottom = new GeneralPath();
              Bottom.moveTo(x + space, y + (size * 2));  
              Bottom.lineTo(x + size - space, y + (size * 2));
              g.draw(Bottom);
              //TopLeft
              if((flag & 8) == 8){
                   g.setPaint(on);
              }else{
                   g.setPaint(off);
              GeneralPath TopLeft = new GeneralPath();     
              TopLeft.moveTo(x, y + space);
              TopLeft.lineTo(x, y + size - space);          
              g.draw(TopLeft);
              //BottomLeft
              if((flag & 16) == 16){
                   g.setPaint(on);
              }else{
                   g.setPaint(off);
              GeneralPath BottomLeft = new GeneralPath();     
              BottomLeft.moveTo(x, y + size + space);
              BottomLeft.lineTo(x, y + (size * 2) - space);
              g.draw(BottomLeft);
              //TopRight
              if((flag & 32) == 32){
                   g.setPaint(on);
              }else{
                   g.setPaint(off);
              GeneralPath TopRight = new GeneralPath();     
              TopRight.moveTo(x + size, y + space);
              TopRight.lineTo(x + size, y + size - space);
              g.draw(TopRight);
              //BottomRight
              if((flag & 64) == 64){
                   g.setPaint(on);
              }else{
                   g.setPaint(off);
              GeneralPath BottomRight = new GeneralPath();     
              BottomRight.moveTo(x + size, y + size + space);
              BottomRight.lineTo(x + size, y + (size * 2) - space);
              g.draw(BottomRight);
         public void setSpacing(boolean spacingOn){
              if(spacingOn == false){
                   space = 0;
              else{
                   this.setSpacing(spacingOn,5f);
         public void setSpacing(boolean spacingOn,float gap){
              if(gap<2){
                   gap = 2;
              if(spacingOn == true){
                   space = size/gap;
         public void setLocation(float x,float y){
              this.x = x;
              this.y = y;
         public void setSize(float size){
              this.size = size;
    class AppFrame extends JFrame{
         AppFrame(){
              this("Demo Frame");
         AppFrame(String title){
              super(title);
              setSize(500,500);
              setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    }

Maybe you are looking for