Draw Circles

Hi Guys,
I need to display one field within circle(means i need to display one filed that field always has the value 'Y' or 'N')in sapscript and in report output also means both normal and alv reports.How can i do this? Is it possible in sap to draw circles? Is there any function module to achieve this? please help me.

Hi Sai,
For SAP Scripts you can try :
SE71--> form name > change> window--> text element > Insert(Mnubar)> charcters--> SAP sybbols --> search for SYM_CIRCLE.
Hope this may help you.
Lanka

Similar Messages

  • Can only draw circle and square in Illustrator CS5 and Photoshop CS5

    I am experiencing a strange bug that seems to be affecting both Photoshop CS5 and Illustrator CS5. In Illustrator, when I try to draw a rectangle or ellipse I can only draw circles and squares. Also I can't change the color of selected objects. When I try to change its fill nothing happens. I can also only drag objects on the 0, 45 and 90 degree angles. Also I can no longer select off an object by clicking on the artboard. When I click on the artboard nothing happens.
    Similarly in Photoshop I can only draw straight lines using the brush tool. The  marquee tool is also not functioning properly. When I try to use the marquee tool the marching ants form a square but when I release the mouse it selects a rectangular portion. Strangely if I use the marquee tool and make selection I can press the shift key and add to it but this second selection's marching ants are not square but are properly rectangular.
    Since the problem seems to be affecting both Illustrator and Photoshop I'm thinking it's probably some kind of system conflict or perhaps an application running in the background is affecting it. Also if I restart my mac the problem goes away. Unfortunately the problem eventually returns.
    Anyway I'm pretty sure most of the suggested fixes involve systematically going through all the programs running in the background and trying to determine which if any might be affecting Illustrator and Photoshop but I just thought I'd post something in case someone else had the problem or knew of any fixes.
    I'm running CS5 on a MBP.
    Thanks!

    Ok I figured out the problem. It was another application called teleport which lets you control 2 macs with one mouse. It requires a hot key and in my case that was the shift key. Even though it was running it was still affecting me. Had to quit it and restart. If you're having a similar problem I'd check to see you're not running any other applications that can be activated with a hot key.

  • Draw circles in swing..

    hello.
    I'm making a program that draws circles in a frame and has some buttons in another program.
    However, there are some stack overflow errors..
    help please~
    [error messages]
    Exception in thread "main" java.lang.StackOverflowError
    at java.util.Hashtable.get(Hashtable.java:336)
    at javax.swing.UIDefaults.getFromHashtable(UIDefaults.java:142)
    at javax.swing.UIDefaults.get(UIDefaults.java:130)
    at javax.swing.MultiUIDefaults.get(MultiUIDefaults.java:44)
    at javax.swing.UIDefaults.getColor(UIDefaults.java:380)
    at javax.swing.UIManager.getColor(UIManager.java:590)
    at javax.swing.LookAndFeel.installColors(LookAndFeel.java:58)
    at javax.swing.LookAndFeel.installColorsAndFont(LookAndFeel.java:92)
    at javax.swing.plaf.basic.BasicPanelUI.installDefaults(BasicPanelUI.java:49)
    at javax.swing.plaf.basic.BasicPanelUI.installUI(BasicPanelUI.java:39)
    at javax.swing.JComponent.setUI(JComponent.java:652)
    at javax.swing.JPanel.setUI(JPanel.java:131)
    at javax.swing.JPanel.updateUI(JPanel.java:104)
    at javax.swing.JPanel.<init>(JPanel.java:64)
    at javax.swing.JPanel.<init>(JPanel.java:87)
    at javax.swing.JPanel.<init>(JPanel.java:95)
    at DrawCircle.<init>(DrawCircle.java:7)
    at DrawCircle.<init>(DrawCircle.java:6)
    import java.awt.event.*;
    import javax.swing.*;
    import java.awt.*;
    public class GUI{
         DrawCircle circle = new DrawCircle(100,100,50);
         private JButton UpButton, DownButton, LeftButton, RightButton, IncreaseButton, DecreaseButton, InputButton;
         public void drawframe(){
                    final JFrame CircleFrame = new JFrame("Frame for Circle");
                    CircleFrame.getContentPane().add(circle);
                    CircleFrame.setSize(200,200);
              CircleFrame.setVisible(true);
              UpButton = new JButton("UP");
              UpButton.addActionListener(new ActionListener()     {
                   public void actionPerformed(ActionEvent e){
                                circle.up();
                                    if(circle.getY() - circle.getR() <= 0) {
                                        JOptionPane.showMessageDialog( CircleFrame, "Out of window");
                                        circle.setY(circle.getY() +10);
              RightButton = new JButton("RIGHT");
              RightButton.addActionListener(new ActionListener()     {
                   public void actionPerformed(ActionEvent e)     {
                                circle.right();
                                    if(circle.getX() + circle.getR() >= 500) {
                                        JOptionPane.showMessageDialog( CircleFrame, "Out of window");
                                        circle.setX(circle.getX() -10);
              LeftButton = new JButton("LEFT");
              LeftButton.addActionListener(new ActionListener(){
                   public void actionPerformed(ActionEvent e){
                                circle.left();
                                    if(circle.getX() - circle.getR() <= 0) {
                                        JOptionPane.showMessageDialog( CircleFrame, "Out of window");
                                        circle.setX(circle.getX() +10);
              DownButton = new JButton("DOWN");
              DownButton.addActionListener(new ActionListener(){
                   public void actionPerformed(ActionEvent e){
                                circle.down();
                                    System.out.println(circle.getY());
                                    if(circle.getY() + circle.getR() >= 500) {
                                        JOptionPane.showMessageDialog( CircleFrame, "Out of window");
                                        circle.setY(circle.getY() -10);
              IncreaseButton = new JButton("INCREASE");
              IncreaseButton.addActionListener(new ActionListener()     {
                   public void actionPerformed(ActionEvent e)     {
                                circle.increase();
                                    if(circle.getY() + circle.getR() >= 500) {
                                        JOptionPane.showMessageDialog( CircleFrame, "Out of window");
                                        circle.setR(circle.getR() -10);     
                                    } else if(circle.getX() + circle.getR() >= 500) {
                                        JOptionPane.showMessageDialog( CircleFrame, "Out of window");
              DecreaseButton = new JButton("decrease");
                        DecreaseButton.addActionListener(new ActionListener(){
                                public void actionPerformed(ActionEvent e)     {           
                                    circle.decrease();
              JPanel ButtonPanel = new JPanel();
              ButtonPanel.add(IncreaseButton);
              ButtonPanel.add(DecreaseButton);
              ButtonPanel.add(DownButton);
              ButtonPanel.add(LeftButton);
              ButtonPanel.add(RightButton);
              ButtonPanel.add(UpButton);
              ButtonPanel.setLayout(new BoxLayout(ButtonPanel, BoxLayout.Y_AXIS));
                    JFrame mainFrame = new JFrame("GUI for Circle Drawing");
              mainFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE );
                    mainFrame.add(ButtonPanel);
                    mainFrame.pack();
              mainFrame.setVisible(true);
         public static void main(String [] args)     {
              GUI intf = new GUI();
              intf.drawframe();
    }and the DrawCircle Class is
    import java.awt.*;
    import javax.swing.*;
    public class DrawCircle extends JPanel{
         private int x, y, r;
            DrawCircle circle = new DrawCircle(100, 100, 50);
         public DrawCircle( int x , int y , int r){
              this.x = x;
              this.y = y;
              this.r = r;
         public int getR(){
              return r;
         public int getX(){
              return x;
         public int getY(){
              return y;
         public void setX(int x)     {
              this.x = x;
                    repaint();
         public void setY(int y)     {
              this.y = y;
                    repaint();
         public void setR(int r)     {
              this.r = r;
                    repaint();
         public void paint(Graphics g){
              g.clearRect(0,0,400,400);
                    g.drawOval(x-r, y-r, r*2, r*2);
            public void up() {
              circle.setY(circle.getY() -10);
            public void down() {
                    circle.setY(circle.getY() +10);
            public void right() {
                    circle.setX(circle.getX() +10);
            public void left() {
                    circle.setX(circle.getX() -10);
            public void increase() {
                    circle.setR(circle.getR() +10);     
            public void decrease() {
                    circle.setR(circle.getR() -10);     
              

    The problem is that you're constructing a new DrawCircle each time you construct a new DrawCircle, resulting in infinite recursion causing a stack overflow.
    This line:DrawCircle circle = new DrawCircle(100, 100, 50);in your DrawCircle class is causing the problem, do you need it? Remove it and replace references to 'circle' in the class with 'this'.

  • Draw circles,images in flex

    How can we draw circles,images in flex? (ex as in
    ms-paint)

    http://livedocs.adobe.com/flex/3/html/help.html?content=Drawing_Vector_Graphics_1.html

  • How to draw circle if I have two points info and radius of the circle?

    Hi,
    I am trying to draw circle.
    Inputs I have is 1. Two points of the circle and
    2. Radius of the circle.
    Please let me know if u have solution using Shape, Graphics2D apis.
    Thanks in advance..
    Cheers,
    Somasekhar

    As far as the drawing is concerned, you would use Graphics# drawOval. There's no API method to draw a circle using the parameters of two points and a radius.
    You need to solve the problem on paper and work out the maths involved, then translate that math into working Java code.
    btw, you do realize that the information will give you zero to two valid circles, don't you?
    db

  • Hi i would like help with:  When I draw circle and add stroke I can not see stroke  I use Photoshop CS 5

    Hi i would like help with:
    When I draw circle and add stroke I can not see stroke
    I use Photoshop CS 5

    Make sure the stroke is set to a color and not to the symbol that appears here for Fill

  • Photoshop CS4 Brush Draws Circles

    Hi. This wasn't happening but now, all of my brushes draws circles like that. Is it supposed to happen? If answer is no, how can I solve it? Thanks.

    Today I've installed the latest Forceware Drivers 180.60 from http://www.laptopvideo2go.com/ to test the bug behaviour.
    The brush cursor now seems to be able to handle big brush sizes but the performance is reduced noticable.When painting inside a new document the rendering of the brush path is done after painting over the area, even when using small brush sizes.
    So let's wait until Nvidia/Lenovo roll out a new driver.
    Message Edited by mikey on 11-24-2008 07:57 AM

  • Hi, odd error in my code with a draw circle method

    Hey, I am a first year computer science student who uses java in class.
    We have recently been playing with guis
    I have created code that when it runs it draws random circles with random gradiants.
    However, the code will sometimes draw a random square, any ideas.
    import java.io.*;
    import java.util.*;
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.image.*;
    import javax.imageio.*;
    * Class for animations, if I dont finish this lab I will have egg on my face
    public class AnimationStation {
         private JFrame frame; //the jframe
         private IView viewer; //the viewer
         * Constructor
         public AnimationStation() {
              frame = new JFrame(); //makes jframe
              viewer = new IView(); //makes iview
              frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); //window closes
              frame.setSize(300, 500); //biggie or smallie
              frame.getContentPane().add(BorderLayout.CENTER,viewer); //place it
              frame.setVisible(true);
         * Main Method
         public static void main(String[] args) {
              AnimationStation cutie = new AnimationStation();
         * The IView inner class
         class IView extends JPanel {
              int x = 0; //x pos
              int y = 0; //w pos
              int d = 0; //diameter
              Color randomColor1; //random color     
              Color randomColor2; // random color
              private boolean imageOn = true; //do we care about the background, or are we looking for that square?
              * Default constructor
              public IView() {
              //wonders... is this neccessary.... ::thinks:: well it works so lets not mess with it
              * Builds our pretty pictures
              public void paintComponent(Graphics g) {
                         g.setColor(Color.white); //make background
                         g.fillRect(0,0,this.getWidth(),this.getHeight()); //background
                   for(int x = 0; x < 10; x++) { //no? draw ovals
                             drawOval(g);
              * Method to make ovals
              *(and apparently a random square, although I think its good luck if you do! So its a feature, not a bug)
              public void drawOval(Graphics g) {
                   d = (int)((Math.random() * 10) + (this.getWidth() / 5)); //set diameter
                   x = (int)(Math.random() * (this.getWidth() - d)); //set x dont let it off the screen
                   y = (int)(Math.random() * (this.getHeight() - d)); //set y dont let it off the screen
                   randomColor1 = randomColor(); //set random color one
                   randomColor2 = randomColor(); //set random color two
                   Graphics2D g2d = (Graphics2D) g; //make a graphics 2d object, helps with gradiants
                   GradientPaint gradient; //make gradiant
                   gradient = new GradientPaint(x, y, randomColor1, x+d, y+d, randomColor2); //set gradiant
                   g2d.setPaint(gradient); //set paint
                   g2d.fillOval(x,y,d,d); //make that oval
              * Method which makes a random color
              public Color randomColor() {
                   Color a = new Color((int)(Math.random() * 255), (int)(Math.random() * 255), (int)(Math.random() * 255));
                   return a;
              * Checks to see if a file is an image file (I REALLY hope this is not how other programs do it,
              *  becuase technically I can make this a graphic "mv ImageViewer.java fake.gif")
              public boolean isImageFile(String filename) {
                   String ending = "" + filename.charAt(filename.length() - 4) + filename.charAt(filename.length() - 3) + filename.charAt(filename.length() - 2) +
                        filename.charAt(filename.length() - 1); //make a string with the last four letters
                   if(ending.equalsIgnoreCase(".jpg") || ending.equalsIgnoreCase(".gif") || ending.equalsIgnoreCase(".bmp")) { //is it an image?
                        return true; //yes
                   } else {
                        return false; //no
    }thanks,
    Bachmann

    well, let me explain some more. Its more of an irritation, then a crippling error....
    The squares are quite clear. I mean, its not like a small circle that looks squareish, I have seen a square appear and it could be larger than the circles that I see.
    It is also very rare, so yeah, it could have something to do with the random aspects.
    It just kinda bothers me since nither me, my classmates, or my professor can figure out why this happens and no one else has mentioned this problem.

  • Cannot Draw Circles or Squares in Captivate (Holding down SHIFT doesn't work.)

    Hi,
    I am trying to add squares and circle shapes to a Captivate 8 project.
    Before I click to draw the shape, I hold down the SHIFT button to constrain the proportions. Captivate draws me an oval or a rectangle all the same.
    Error testing I have tried:
    Trying to add a square in PowerPoint by holding SHIFT work (so not a hardware issue?)
    Resizing my dratted rectangles & ovals by holding SHIFT in Captivate does constrain the proportions, but not to a shape I require!
    Resizing images while holding SHIFT also constrains proportions.
    The same error also occurs in my copy of Captivate 7?!
    I'm completely puzzled. I know it's basic function, but it's vital for me to be able to create a smart-looking layout. Is it simply not possible to draw "perfect" squares and circles in Captivate?
    Seth

    Don't know if it is an oversight, I'm always logging that lack of use of SHIFT, think it is just not considered important enough. My mind tells it is very important, but I'm just a user.
    That is what I told you... in CP8 you need a lot more clicks and mouse movements to get to everything (sighing).
    The screenshot you are showing me is the Properties panel for a shape, tab 'Style', not 'Options'.You have to click on 'Options' to see the former Transform accordion. Splitting up the too long Properties panel of CP7 in two panels and tabs causes incrementing the number of clicks. And it didn't avoid scrolling, as you can see in this Style part. Will stop ranting, even after so many months, do not succeed in liking the UI shift.

  • Draw Circle Using Array

    Hi,
    I have a sizeable array which has an N by N size. How can I draw a circle in my array using digits, 0 or 255, in U8 representation?
    I have a Flatten Pixmap.vi and Draw Flatten Pixmap.vi to assist in the drawing.
    So hope someone out there can help to enlighten me in the logic.
    Thanks and Regards,
    Jack

    There is a function for the 2D picture control that draws real nice circles. You can then turn that picture into whatever you want.
    What is it that you are trying to accomplish?
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • Draw circle

    can anyone pls tel me where to get the source code for drawing a circle in java.this is part of our project n we are using x-server.

    Read the Graphics class. It has a method for drawing a circle. You need to extend an appropriate Component type, and override paintComponent. Within the paintComponent, use the passed-in Graphics object to draw the circle. The API should have examples and/or links to tutorials.

  • Draw Circle tool

    I am currently working myself deeper in the techniques of drawing and painting with Photoshop and while drawing I always encounter one problem: Drawing a circle. There are several workarounds for that:
    * Select circle, Border1 and fill
    * Make a circle as a form and place
    * Make a circle as a brush and draw it
    * Make a circle with a pass and fill path with brush
    But all of these seem to me just like workarounds and hinder me in my workflow. My suggestion would be a more simple, more fluent way. Photoshop can draw lines vertical and horizontal to the screen, my suggestion is not very different. My proposition is:
    * Hold a desired hotkey (like q or something) over the complete operation
    * Click where the midpoint of the circle is supposed to be
    * Click and hold again in the desired radius and draw your circle.
    This would work like drawing a line, you just draw a circle. This would give the user full control over the brush with sensitivity. That would be first of all faster and more intuitive than all the listed ways of drawing a circle and as mentioned you wouldn't lose any control over your brushsensitivity and options, while you can just simulate pen pressure with path filling.
    Thats it for now, any comments or amendments are welcome.
    Simon Kopp
    Germany

    Ok, and how do you envision drawing an ellipse, a rectangle, a rounded rectangle, or any other shape with the current brush?
    Using down more buttons?
    That's why you receive workarounds, because your FR is not "doable" without taking care of the myriad of sub-requests that you did not envision...

  • Draw circle around point on Plot3DCurve

    Hi all
    I need to draw a circle around a point on a 3d curve with radius equal to optional w() vector value or, at least, equal to a known value.
    Can anyone help me ?
    Thanks
    Beta66

    Hi Jonathan N.
    I bag your pardon for being unclear.
    I have the following array of data: X,Y,Z,R (R = radius)
    I call Plot3dCurve method to plot X,Y,Z data as shown in figure 1;
    I need to plot around the point Pi(Xi,Yi,Zi) on the 3dcurve a circle with radius = Ri and the plane perpendicular to curve axis, as shown in figure 2.
    I hope I've been clear and I thank you in advance.
    Ciao
    Beta66
    Attachments:
    Figure1.jpg ‏96 KB
    Figure2.jpg ‏76 KB

  • Draw circle by stepper motor

    hello!I have two linear slide,x and y;I am now able to slide straight line uniform motion , but My goal is to draw a circle ,So I need to have an x-axis is the sine or cosine speed changes , but I do not know what kind of impulse needs  to  control sinusoidal motion , some problem like time interval, pulse number , etc.Please give me some advice or help,thanks!

    If you can generate the series of XY locations to trace the circle, you are half done. In terms of getting the XY table to draw the circle, it depends on the controller you are using. Many provide the ability to enter X and Y values directly.
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • Draw circle, intersects Ellipse2D need help

    looks like have a few error... i have no idea how to fix it now. help plz.
    Circle class file.
    import java.awt.Color;
    import java.awt.Graphics;
    import java.awt.Graphics2D;
    import java.awt.geom.Ellipse2D;
    import javax.swing.JOptionPane;
    public class Circle
         private double radius;
         private int centerX, centerY;
         private Color fillColor;
         public Circle()
              radius=0;
              centerX=0;
              centerY=0;
         public double getRadius()
              return radius;
         public void setRadius(double newRadius)
              radius=newRadius;
         public int getCenterX()
              return centerX;
         public int getCenterY()
              return centerY;
         public void setCenterX(int newCenterX)
              centerX=newCenterX;
         public void setCenterY(int newCenterY)
              centerY=newCenterY;
         public void setFillColor(Color newColor)
              fillColor=newColor;
         public Color getFillColor()
              return fillColor;
         public void draw(Graphics g)
              Graphics2D g2= (Graphics2D) g;
              radii=this.getRadius()
              if( radius>=0 )
                   g2.fill( Ellipse2D.Double(radii*2,radii*2,this.centerX-radii,this.centerY-radii));
              else
                   g2.fill( Ellipse2D.Double(0,0,centerX,centerY));
         public boolean intersects(Circle circle2)
              double radiusLength1 = this.getRadius();
              double radiusLength2 = circle2.getRadius();
              double totalRadius = radiusLength1+radiusLength2;
              double distance = Math.sqrt(
                   (Math.pow(this.centerX-circle2.centerX,2))+
                   (Math.pow(this.centerY-circle2.centerY,2))
              return boolean totalRadius >= distance;
    CircleComponent class code
    import java.awt.Color;
    import java.util.Random;
    import java.awt.Graphics;
    import java.awt.Graphics2D;
    import java.awt.geom.Ellipse2D;
    import javax.swing.JOptionPane;
    import javax.swing.JComponent;
    public class CircleComponent extends JComponent
         public static void CircleComponent (String[] args)
              double radius;
              Circle circle1,circle2;x
              circle1=new Circle();
              circle2=new Circle();
              circle1.setCenterX(200);
              circle1.setCenterY(100);
              circle2.setCenterX(100);
              circle2.setCenterY(200);
              Random generator= new Random();
              Color color1 = new Color (generator.nextInt(256), generator.nextInt(256), generator.nextInt(256));
              circle1.setFillColor(color1);
              Color color2 = new Color (generator.nextInt(256), generator.nextInt(256), generator.nextInt(256));
              circle2.setFillColor(color2);
              String input=JOptionPane.showInputDialog("Set the circle1's radius ");
              radius = Integer.parseInt(input);
              circle1.setRadius(radius);
              input=JOptionPane.showInputDialog("Set the circle2's radius ");
              radius = Integer.parseInt(input);
              circle2.setRadius(radius);
         public void paintComponent (Graphics g)
              Graphics2D g2= (Graphics2D) g;
              g2.setColor(color1);
              g2.draw(circle1);
              g2.setColor(circle2.getFillColor());
              g2.draw(circle2);
              //draw String intersectsResult
              g2.setColor(Color.BLACK);
              String intersectsResult;
              if (circle1.intersects(circle2))
                   intersectsResult="Two circles intersected";
              else
                   intersectsResult="Two circles not intersected";
              g2.drawString(intersectsResult,20,380);
    }

    looks like have a few error... i have no idea howto fix it now. help plz.
    what are the errors?
    copy and paste themI think the code simply "does not work" as expected ;)

Maybe you are looking for

  • SAP CRM 2007 installation in cluster

    Dear Experts, We are about to start the installation of CRM 2007 (ABAP+JAVA) with Oracle 10g on Windows x64 in cluster environment. In the SAPINST dialog box under High availability option, I could see installation options like ASCS Instance, SCS Ins

  • Xfce4 sensors settings are not saved properly

    Xfce4 settings do not apply after boot, which is to say I have to change the settings every time after a boot. Specifically, I only need to click the 'Show' option for two sensors in the settings dialog. The xfce4-sensors-plugin-12480173280.rc file s

  • HT1338 how do I know if my macbook will support os x v 10.8... mtn lion?

    how do I know if my macbook will support os x v 10.8... mtn lion?

  • TV feature request!

    I love to read rumors about Apple is designing a TV. I would want it to be the Digital Hub of my livingroom so I can get rid of the PVR, Hometheater system and the Game consol. The only thing I want to attach to the TV is a Powerful Subwoofer. (Like

  • FM for download in ECC

    Hi Experts, Is there any FM available for downloading from desktop to internal table <b>which takes filename in the runtime?</b> i don't want to give value for filename parameter...Just like 'DOWNLOAD' in lower versions Regards