Background fill a div using class?

I have a sidebar in my site which uses two different backgrounds.
The problem is now that I have moved a graduated tint image from the #sidebar style sheet the tint no longer fills the box vertically and can not repeat...
Hence in my template the sidebar is simply #sidebar
In the past we just had a simple gradient tint from top to bottom all through, but the boss now wants the tint applying to the overview pages and the plain white background to the details... Hence...
I removed the background image from the #sidebar css stylesheet and created two classes instead...
.BGWhite and .BGGradTint
.BGWhite simply has the background set to white and .BGGradTint has the background set to an image. NOREPEAT on X or Y
Now I simply add class="BGGradTint" to the div and it applies the tint...
BUT. BUT, BUT this does now fill the box vertically and cuts off short. It is a top to bottom tint which cannot repeat...
Please can anyone advise, Thanks in advance for any feedback.
Terry

Hah!!!
Just realised the stylesheet had repeat on wrong bit...
It had repeat y in one part and repeat x in the class...
Thanks for the email.
Terry

Similar Messages

  • How to !not make a cropped pattern element in the whole background fill

    So with alot of reading and help i did manage to bild a background filled with pattern emelent ,but whhen i resize it ,it is croped.What i mean is
    the pattern element is this and its a simple bitmap with the name of "Box"
    and when i fill the background with this element test the FLA file and drag the corner of the SWF window (i am making it bigger ), it crops the  last pattern element in in every Row and Column.Just like in this picture
    so how do i not crop it ? and make it as the 2nd resized image (the one with the red tick,the one with the "YES").
    the problem is that i re- scale the stage so somethimes its 400-500 and other its 1000 to 400 and that is why i use the
    matrix.scale(1.1, 1.1);
    (those numbers will be a variable that will change as the stage size changes)
    i have this code in the MainClass_Test class (the document class)
            import flash.display.Sprite;
              import flash.display.Bitmap;
              import flash.display.BitmapData;
              public class MainClass_Test extends Sprite {
                        private var bg1:CreateRow_Col = new CreateRow_Col();
                        public function MainClass_Test() {
                                  bg1.x = 0;
                                  addChild(bg1);
                                  trace(numChildren)
    and this in the CreateRow_Col class
            import flash.display.Sprite;
              import flash.events.Event;
              import flash.geom.Matrix;
              public class CreateRow_Col extends Sprite {
                        public function CreateRow_Col() {
                                  addEventListener(Event.ADDED_TO_STAGE, zzz);
                        private function zzz(e:Event):void {
                                  removeEventListener(Event.ADDED_TO_STAGE, zzz);
                                  var  matrix:Matrix = new Matrix()
                                  matrix.scale(1.1, 1.1);
                                  graphics.beginBitmapFill(new Box(), matrix, true, false);
                                  graphics.drawRect(0, 0, stage.stageWidth, stage.stageHeight);
                                  graphics.endFill();
    i did try it with adding the new Box().width and new Box().height but that only expands the area that the background will spread.
    I did something like this with a wlile loop > and adding the pattern element to the stage and moving it until the patternElement.x < stage.stageWidth + patternElement.width,
    http://forums.adobe.com/message/5649061#5649061
    but this creates to many objects on the stage and i dont want that.

    ok i found i way to do what i want but when i scale the image backgroud to fit exactly the screen it doesnt consider the scale of the object I am applying before that .
    What i mean > when i do this  and comment the _mesh.ScaleX and Y
    var ScaleX:Number = 1
    var ScaleY:Number = 3
    /*_mesh.scaleX = stageW / background_W;
                                  _mesh.scaleY = stageH / background_H;*/
    i have 2 rows like it must do ,cause ill have different scaleX and Y
    but when i uncomment the _mesh.ScaleX and Y i dont get the 2 rows fit in the entire scree like i want , I get 5 rows (they are purfectly sized to fit the stage.stageWidth or Height - what i want but not allways five).And even worse when i change the scale to any number like .5 or 51 or 501 it just doesnt care >> i always get 5 rows.
    i have this in the CreateRow_Col class as code
    private var _mesh:Shape = new Shape();
                        private var _box:BitmapData = new Box();
                        public function CreateRow_Col() {
                                  addEventListener(Event.ADDED_TO_STAGE, zzz);
                        private function zzz(e:Event):void {
                                  removeEventListener(Event.ADDED_TO_STAGE, zzz);
                                  var stageW:Number = stage.stageWidth
                                  var stageH:Number = stage.stageHeight
                                  var elementW = _box.width
                                  var elementH = _box.height
                                  var numberElements_W = Math.ceil(stageW / elementW)
                                  var numberElements_H = Math.ceil(stageH / elementH)
                                  var ScaleX:Number = 1
                                  var ScaleY:Number = 51
                                  var background_W = numberElements_W * elementW * ScaleX
                                  var background_H = numberElements_H * elementH * ScaleY
                                  //trace(background_W + " = "+ numberElements_W + " * " + elementW)
                                  var  matrix:Matrix = new Matrix()
                                  matrix.scale(ScaleX,ScaleY);
                                  _mesh.graphics.beginBitmapFill(_box, matrix, true, true);
                                  _mesh.graphics.drawRect(0, 0, background_W, background_H);
                                  _mesh.graphics.endFill();
                                  _mesh.x = _mesh.y = 0;
                                  _mesh.scaleX = stageW / background_W;
                                  _mesh.scaleY = stageH / background_H;
                                  trace(stageH / background_H)
                                  addChild(_mesh);
    how can i fix this

  • Text background fill

    Hi,
    I do have this nice script to add a file name into the picture. I would like to add a rectangle behind the text but I don't know how.
    Could you please help me.
    / this script is a variation of the script addTimeStamp.js that is installed with PS7
    //Copyright 2002-2003. Adobe Systems, Incorporated. All rights reserved.
    //All amendments Copyright Brian Price 2004 ([email protected])
    //Check if a document is open
    if ( documents.length > 0 )
    var originalRulerUnits = preferences.rulerUnits;
    preferences.rulerUnits = Units.PERCENT;
    try
    var docRef = activeDocument;
    // Create a text layer at the front
    var myLayerRef = docRef.artLayers.add();
    myLayerRef.kind = LayerKind.TEXT;
    myLayerRef.name = "Filename";
    var myTextRef = myLayerRef.textItem;
    //Set your parameters below this line
    //If you wish to show the file extension, change the n to y in the line below, if not use n.
    var ShowExtension = "n";
    // Insert any text to appear before the filename, such as your name and copyright info between the quotes.
    //If you do not want extra text, delete between the quotes (but leave the quotes in).
    var TextBefore = "";
    // Insert any text to appear after the filename between the quotes.
    //If you do not want extra text, delete between the quotes (but leave the quotes in).
    var TextAfter = "";
    // Set font size in Points
    myTextRef.size = 60;
    //Set font - use GetFontName.js to get exact name
    myTextRef.font = "ArialNarrow";
    //Set text colour in RGB values
    var newColor = new SolidColor();
    newColor.rgb.red = 0;
    newColor.rgb.green = 255;
    newColor.rgb.blue = 200;
    myTextRef.color = newColor;
    // Set the position of the text - percentages from left first, then from top.
    myTextRef.position = new Array( 2, 98);
    // Set the Blend Mode of the Text Layer. The name must be in CAPITALS - ie change NORMAL to DIFFERENCE.
    myLayerRef.blendMode = BlendMode.NORMAL;
    // select opacity in percentage
    myLayerRef.opacity = 100;
    // The following code strips the extension and writes tha text layer. fname = file name only
    di=(docRef.name).indexOf(".");
    fname = (docRef.name).substr(0, di);
    //use extension if set
    if ( ShowExtension == "y" )
    fname = docRef.name
    myTextRef.contents = TextBefore + " " + fname + " " + TextAfter;
    catch( e )
    // An error occurred. Restore ruler units, then propagate the error back
    // to the user
    preferences.rulerUnits = originalRulerUnits;
    throw e;
    // Everything went Ok. Restore ruler units
    preferences.rulerUnits = originalRulerUnits;
    else
    alert( "You must have a document open to add the filename!" );

    Like this...
    if (documents.length)
    var originalRulerUnits = preferences.rulerUnits;
    preferences.rulerUnits = Units.PIXELS;
    var txtLayer = activeDocument.artLayers.add();
    txtLayer.kind = LayerKind.TEXT;
    txtLayer.textItem;
    txtLayer.textItem.size = 60;
    txtLayer.textItem.font = "ArialNarrow";
    var TXTColor = new SolidColor;
    TXTColor.rgb.hexValue = '00ffc8';
    txtLayer.textItem.color = TXTColor;
    var X = ((activeDocument.width/100)*2);
    var Y = ((activeDocument.height/100)*98);
    txtLayer.textItem.position = new Array( X, Y);
    txtLayer.textItem.contents = activeDocument.name.slice(0,-4);
    var LB=activeDocument.activeLayer.bounds;
    var textBackLayer = activeDocument.artLayers.add();
    txtLayer.move( activeDocument.activeLayer, ElementPlacement.PLACEBEFORE)
    var Height = LB[3].value - LB[1].value;
    var Width = LB[2].value - LB[0].value;
    activeDocument.selection.select([[LB[0],LB[1]], [LB[2],LB[1]], [LB[2],LB[3]], [LB[0], LB[3]]], SelectionType.REPLACE, 0, false);
    //Background fill colour.
    var FillColor = new SolidColor;
    FillColor.rgb.hexValue = 'ffff00';
    activeDocument.selection.fill(FillColor);
    activeDocument.selection.deselect();
    activeDocument.flatten();
    preferences.rulerUnits = originalRulerUnits;
    } else {
    alert( "No Document Open");

  • Creating a background fill in a text box

    Hi there,
    I am using CS4 and want to make text boxes with backgroud (e.g., white). I know I can add a white box but is there a easier way?
    Thanks!

    Yes. Make sure you're using Area Type, then select the Area type bounding box and assign a fill color. Use the Direct Selection tool so you select only the type box, not the type itself.
    You can also create a background color with Point Type by adding another fill attribute to the type, in the Appearance palette, then using "Effect>Convert to Shape" to convert it to a rectangle or oval. You can then move it behind the "Character" level in the Appearance panel and  assign it a color. This method allows the flexibility of defining margins around the text.

  • Background image  for JPanel using UI Properties

    Is there any way to add background image for JPanel using UI Properties,
    code is
    if (property.equals("img")) {
    System.out.println("call image file in css"+comp);
    //set the background color for Jpanel
    comp.setBackground(Color.decode("#db7093"));
    here the comp is JPanel and we are setting the background color,
    Is there any way to put the Background image for the JPanel ????

    KrishnaveniB wrote:
    Is there any way to put the Background image for the JPanel ????Override the paintComponent(...) method of JPanel.
    e.g.
    import javax.swing.*;
    import java.awt.*;
    import java.io.*;
    import javax.imageio.ImageIO;
    public class ImagePanel {
        public void createAndShowUI() {
            try {
                JFrame frame = new JFrame("Background Image Demo");
                final Image image = ImageIO.read(new File("/home/oje/Desktop/icons/yannix.gif"));
                JPanel panel = new JPanel() {
                    protected void paintComponent(Graphics g) {
                        g.drawImage(image, 0, 0, null);
                frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
                frame.setSize(new Dimension(400, 400));
                frame.setContentPane(panel);
                frame.setLocationRelativeTo(null);
                frame.setVisible(true);
            } catch (IOException ex) {
                ex.printStackTrace();
        public static void main(String[] args) {
            SwingUtilities.invokeLater(new Runnable() {
                public void run() {
                    new ImagePanel().createAndShowUI();
    }

  • Create a Panel skin (Spark) with a background fill color I can pass as a parameter

    Hi,
    I'm trying to create a Panel skin (Spark) with a background fill color I can pass as a parameter.
    (See in bold:)
    <?xml version="1.0" encoding="utf-8"?>
    <s:SparkSkin name="CustomPanelSkin"
                                   xmlns:fx="http://ns.adobe.com/mxml/2009"
                                   xmlns:s="library://ns.adobe.com/flex/spark"
                                   xmlns:fb="http://ns.adobe.com/flashbuilder/2009"
                                   blendMode="normal">
              <s:states>
                        <s:State name="normal" />
                        <s:State name="disabled" />
                        <s:State name="normalWithControlBar" stateGroups="withControls" />
                        <s:State name="disabledWithControlBar" stateGroups="withControls" />
              </s:states>
              <fx:Metadata>
                        [HostComponent("spark.components.Panel")]
              </fx:Metadata>
              <s:Group left="0" right="0" top="0" bottom="0">
                        <s:Rect
                                  left="0" right="0"
                                  top="0" bottom="0"
                                  radiusX="12" radiusY="12">
                                  <s:fill>
                                            <s:SolidColor color="#184c81" />
                                  </s:fill>
                        </s:Rect>
                        <s:Group id="contents"
                                             left="1" right="1" top="1" bottom="1">
                                  <s:layout>
                                            <s:VerticalLayout gap="0" horizontalAlign="justify" />
                                  </s:layout>
                                  <s:Group id="contentGroup"
                                                       width="100%" height="100%" minWidth="0" minHeight="0">
                                  </s:Group>
                        </s:Group>
              </s:Group>
    </s:SparkSkin>
    From what I read I should create a subclass, but there is not much material on the subject.
    I would later on want to use this skin in many Panel controls I have in my application.
    Thanks for the help.

    Did you read this?
    http://www.adobe.com/devnet/flex/articles/flex4_sparkintro.html

  • How do I set a transparent background to a div in Internet Explorer 8?

    Hello,
    I'm using a jQuery slider for a simple text slideshow on a homepage. The slideshow and each slide (div) have no background. When the site is viewed in Internet Explorer 8, each slide has a white background. I'm using the following IE fallbacks which according to many sources should work...
    #slideText div {
              background: rgb(0, 0, 0) transparent; /* default fallback */
              background: rgba(0, 0, 0, 0.2); /* nice browsers */
              filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#33000000, endColorstr=#33000000); /* IE 6/7 */
              -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr=#33000000, endColorstr=#33000000)"; /* IE8 */
    The div's background is affected with a 20% black background but it's still over a white background. How can I get rid of this white background?
    Eventually I would like this to have no background but I'm using this 20% transparency for testing. You can view the live site here: http://www.pmi.tv.
    Thank you much in advance!

    Older IE browsers do not support CSS level 3 rgba colors with opacity. 
    MS Filters cause other undesired side effects.  I don't use them.
    If you must support IE8, use a semi-transparent PNG image for your background. 
    Opacity Example:
    http://alt-web.com/Sample.html
    Nancy O.

  • Background Fills Behind Text Support with IceBrowser

    Hello,
    I was wondering if background fills is support by the supplied oracle help browser?
    I can open the htm file that I create with a different browser such as Mozilla and it works/
    Using the same file within oracle help I do not see the background fill.
    Thanks

    Hi, Darren:
    If the text lines are in a single paragraph that wraps within the frame, you can use a nested style that applies named character styles by line number (new in CS4) so you can have line1 apply a character style that applies an offset green underline thick enough to back up the text, and line2 use a yellow, etc. You can also set the sequence of nested styles to repeat the previous x-number of styles (also new in CS4.)
    HTH
    Regards,
    Peter Gold
    KnowHow ProServices

  • Nest AP element in a div using relative positioning

    I am trying to place text links directly over an image, and
    have both of them inside of a div using DW's default oneColElsCtr
    style. My current site, www.blueapplestudio.com, shows what I am
    trying to do (note the white text inks over the blue bar in the
    background,) but is achieving it by using a bunch of images that
    have been cut up and tables.
    I think I want to make an AP element with the whole
    background image, and then nest an AP element inside of that with
    the text links. This works great until I try to take that whole
    thing and nest it in the oneColElsCtr div.
    Is this even the correct approach? Any help is appreciated.
    -Adam

    >I am trying to place text links directly over an image
    That's a poor technique, as your alignment will depend on a)
    the way the
    browser chooses to render the text, and b) the visitor's
    setting for text
    size display in their browser.
    > Is this even the correct approach?
    No, I don't think so.
    See Thierry's site for an interesting method -
    http://www.tjkdesign.com/articles/how-to_use_sprites_with_my_Image_Replacement_technique.a sp
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "adam@blueapplestudio" <[email protected]>
    wrote in message
    news:fps3kl$ap1$[email protected]..
    >I am trying to place text links directly over an image,
    and have both of
    >them
    > inside of a div using DW's default oneColElsCtr style.
    My current site,
    > www.blueapplestudio.com, shows what I am trying to do
    (note the white text
    > inks
    > over the blue bar in the background,) but is achieving
    it by using a bunch
    > of
    > images that have been cut up and tables.
    >
    > I think I want to make an AP element with the whole
    background image, and
    > then
    > nest an AP element inside of that with the text links.
    This works great
    > until
    > I try to take that whole thing and nest it in the
    oneColElsCtr div.
    >
    > Is this even the correct approach? Any help is
    appreciated.
    >
    > -Adam
    >
    >
    >

  • Background fill scale to fit scroll motion issue. Please help...

    I am having an issue with the background fill. I am using an image at least 2500px wide. It seems that when I have scrolling checked, the image scales to fit the browser normally when I preview the page. However, if I turn scrolling off, when previewing the page, the background image shrinks from 30-50% and no longer scales to fit. As soon as I go back, check scrolling again, it then scales to fit as normal.  This also happens if I have scrolling checked and then set initial and final motion to 0. It again shrinks the background image and stops scaling to fit. As soon as I put any value in the initial and final motion, it again shrinks the image.
    When doing the above same thing on a master page, using the same image, even with scrolling checked, the image doesn't scale to fit.
    This brings me to a second issue. The custom scrolling on the background isn't working. No matter what I set the values to, the browser always scrolls the back ground image up, even if I change the rate or direction, it stays at 1 and in the up motion.
    How can I fix this??
    Thank you!

    This is due to the fact of image size and scroll setup with fill, Please check this post which includes a similar discussion :
    https://forums.adobe.com/thread/1362457
    Additionally this will help you :
    https://helpx.adobe.com/muse/how-to/muse-size-resolution-graphics.html
    Thanks,
    Sanjit

  • How to add background fill to ColumnChart created without MXML?

    I'm trying to create ColumnCharts on-the-fly, without using MXML. To my surprise, I've had good luck with this so far, and have managed to figure most things out by blind guesswork, since I can't find any documentation or sample code anywhere for this.
    For example, I'm trying to turn this:
        <mx:ColumnChart id="overallSpendingChart" dataProvider="{spendingDataList}" showDataTips="true" paddingLeft="10" paddingRight="10" height="30%" width="100%" >
            <mx:horizontalAxis>
                <mx:CategoryAxis dataProvider="{spendingDataList}" categoryField="OrganizationTypeName" title="Organization Type" />
            </mx:horizontalAxis>
            <mx:verticalAxis>
                <mx:LinearAxis title="FY Spending in Millions" labelFunction="spendingInMillions_labelFunc"  />
            </mx:verticalAxis>
            <mx:series>
                <mx:ColumnSeries id="organizationTypeSpending" yField="Amount" xField="OrganizationTypeName" displayName="Organization Type [??]" showDataEffect="slideIn" />
            </mx:series>
        </mx:ColumnChart>
    into this:
            // Test to see if we can fake up a chart without using </mx:ColumnChart> resources.
            private function attemptToCreateColumnChartOutOfThinAir():void
                var testChart:ColumnChart = new ColumnChart();
                testChart.dataProvider = spendingDataList;
                testChart.showDataTips = true;
                testChart.height = 200;
                testChart.width = 300;
                var backgroundFill:FillStyle = new FillStyle();
                backgroundFill.color = new SolidColor(0xFF99FF);
                testChart.backgroundElements.push(backgroundFill);
                // There's more missing here ^ but it's all cosmetic..           
                var testCatAxis:CategoryAxis = new CategoryAxis();
                testCatAxis.dataProvider = spendingDataList;
                testCatAxis.categoryField = 'OrganizationTypeName';
                testCatAxis.title = 'Organization Type';
                testChart.horizontalAxis = testCatAxis;
                var testLinearAxis:LinearAxis = new LinearAxis();
                testLinearAxis.title = 'FY Spending in Jillions';
                testLinearAxis.labelFunction = spendingInMillions_labelFunc;
                testChart.verticalAxis = testLinearAxis;
                var testColumnSeries:ColumnSeries = new ColumnSeries();
                testColumnSeries.id = 'organizationTypeSpending';
                testColumnSeries.yField = 'Amount';
                testColumnSeries.xField = 'OrganizationTypeName';
                testColumnSeries.displayName = 'Organization Type [??]';
                //testColumnSeries.showDataEffect = slideIn;
                testChart.series.push(testColumnSeries);
                // Do we need this addChild?
                addChild(testChart);
                // Remove the visual competition
                removeExistingBitmapsFromScreen();
                // Slap it up? Maybe? Center of Oregon
                var centerOR:LatLng = stateCenters['OR'];
                testingChartAddToGoogleMap(testChart, centerOR);                       
            private function testingChartAddToGoogleMap(theChart:ColumnChart, theLatLong:LatLng):void
                var options:MarkerOptions = new MarkerOptions();
                options.icon = theChart;              
                options.iconAlignment = MarkerOptions.ALIGN_HORIZONTAL_CENTER + MarkerOptions.ALIGN_VERTICAL_CENTER;
                options.iconOffset = new Point(0, 0);
                options.hasShadow = false;
                // Create the marker, add to map
                var theMarker:Marker = new Marker(theLatLong, options);
                map.addOverlay(theMarker);   
    As you can see I'm fumbling through it. The above does seem to work, except I have not been able to blunder through how to set a background fill, both to set column colors and to set background colors for the whole graph.
    For example, how do I the ActionScript equivalent of these <mx:fill> tags:
         <mx:ColumnChart id="myChart" dataProvider="{expenses}" showDataTips="true">
            <mx:horizontalAxis>
               <mx:CategoryAxis
                    dataProvider="{expenses}"
                    categoryField="Month"
               />
            </mx:horizontalAxis>
            <mx:series>
               <mx:ColumnSeries
                    xField="Month"
                    yField="Profit"
                    displayName="Profit"
               >
                   <mx:fill>
                        <mx:SolidColor color="0x336699"/>
                   </mx:fill>
               </mx:ColumnSeries>
               <mx:ColumnSeries
                    xField="Month"
                    yField="Expenses"
                    displayName="Expenses"
               >
                <mx:fill>
                    <mx:SolidColor color="0xFF99FF"/>
                </mx:fill>
               </mx:ColumnSeries>
            </mx:series>
         </mx:ColumnChart>
    (If there is documentation on this type of technique, I'd appreciate a pointer. What I'd really love is source output from the MXML compiler, sigh.)

    John Phillips10 wrote:
    I should know how to do this, but after trying several keys and many different modes, it has me
    stumped.
    Keying is not an option according to the information you are providing.
    The project, for better or worse, was created with a transparent background. In an art installation I > projected this movie onto a screen made of blueprints...
    If you really did create it with a transparent background, using an alpha and the Animation codec, we're off to an easy solution. However, you did not use the Animation file in live playback. You created a QT movie that had a black background, possibly super-black. With little or no light coming through the black areas, it looked transparent. But there's no way to project transparency and the Animation codec cannot be played back in realtime without hardware support.
    I now have a photo of the blueprint screen and want to composite it with the movie so the "new"
    movie documents the installation view - ie where the movie is lighter, the screen shows through
    more. I've tried everything I know (which is obviously not enough!) and would appreciate your
    expertise on this.
    About all you can do is experiment with multiple copies of your layer with different filters and composite modes applied to them till you get something you think you want to use. The problem is that when you use composite modes, you can only get 100% white when you add or combine underlying pixels so the illusion of a projection is a suggestion at best. That is, white photos projected on your white blueprint should be bright but they can't be brighter than the white from either source.
    An additive dissolve filter will help you envision some possibilities but, unfortunately, it can't be keyframed in FCP.
    bogiesan

  • How to fill polygon without using paint component ?

    hello,
    i have a class called "public class Arrow2DRhombus implements Shape" with the following constructor:
    public Arrow2DRhombus(Point2D begin, Point2D end) {
            this.x1 = begin.getX();
            this.y1 = begin.getY();
            this.x2 = end.getX();
            this.y2 = end.getY();
            this.initArrow();the code for .initArrow():
    private void initArrow(){
            int length = (int) Math.sqrt(Math.pow(Math.abs(x1-x2),2) +
                           Math.pow(Math.abs(y1-y2),2));
            length=length-19;
    Polygon poly = new Polygon();
            poly.addPoint((int) x1,(int) y1);
            poly.addPoint((int) x1+ length,(int) y1);
              poly.addPoint((int) x1+ length+10,(int) y1+5);
              poly.addPoint((int) x1+ length+20,(int) y1);
              poly.addPoint((int) x1+ length+10,(int) y1-5);
              poly.addPoint((int) x1+ length,(int) y1);
            double rad = this.calcAngle((float) this.x1,(float) this.y1,(float) this.x2,(float) this.y2);
            AffineTransform tx = AffineTransform.getRotateInstance(rad,x1,y1);
            this.arrow = tx.createTransformedShape((Shape)poly);
        }is there a way i can fill the polygon "poly" with the code above .
    i know that i can fill a polygon using when using paintcomponent(Graphics g)
    but here how can i do it.
    10x

    I don't really understand the question. "Filling" a shape implies (to me) that you have a Graphics Object and are doing custom painting. So you would do this:
    a) in the paintComponent() method of a component
    b) in the paintIcon method of an Icon
    c) by painting onto a BufferedImage
    I'm sure there are other ways, but I don't think you just "fill" a Shape object.

  • OAM files as background fill

    Wouldn't it be nice if you were able to use a OAM file as a background fill.
    That would open a whole range of creative possibilities!

    Update: I found a temporary fix/workaround.  After importing the audio, click on Edit.  Then delete the first tenth of a second or so, then click save.  Doing so now puts the tag (Clip) in front of the audio file.  Now when previewing or viewing a published file, the correct background audio plays.  I opened a case with Adobe support as well as posting on this forum.  When I advised them of my fix/workaround, they gave me a link to report a bug/problem to their engineers.  I had some conversations with the engineers via email, but havent heard from them since June 15 when I advised them of the site where I got the MP3 files and even shared (per their request) one of the MP3 files with them.
    When searching for a possible solution for this problem in the forums, I vaguely remember coming accross this method of solving an audio problem, but it wasnt at all the same problem I was having.  I figured I would just try it and it worked!
    If I hear anything back from the engineers I will post their solution or fix (if any)

  • Can I use classes and methods for a maintenance view events?

    Hello experts,
    Instead of perform/form, can I instead use classes and methods, etc for a given maintenance view event, lets say for example I want to use event '01' which is before saving records in the database. Help would be greatly appreciated. Thanks a lot guys!

    Hi viraylab,
    1. The architecture provided by maintenance view
       for using EVENTS and our own code inside it -
       It is provided using FORM/PERFORM
       concept only.
    2. At this stage,we cannot use classes.
    3. However, inside the FORM routine,
       we can write what ever we want.
       We can aswell use any abap code, including
       classes and methods.
      (But this classes and methods won't have any
       effect on the EVENT provided by maintenance view)
    regards,
    amit m.

  • How to place header and footer  in OO-ALV program using class

    How to place header and footer  in OO-ALV program using class tell me wat r the class we shold use and their attributes as well

    Hi Venkatesh,
    Take a look at this how to [ABAP Objects - ALV Model - Using Header and Footer|https://wiki.sdn.sap.com/wiki/x/xdw]
    it's explaining how to define the classes and use it for display an ALV with Header and Footer.
    Regards,
    Marcelo Ramos

Maybe you are looking for

  • [SOLVED] urxvt has stopped showing accents

    Hello, Quite suddenly (to me) urxvt has stopped showing á, é, í, ñ and the like. They worked yesterday, and they still work in console and xterm -- the latter uses a different font, but the former does not. The relevant section of .Xresources: URxvt.

  • Error when importing IDOC structure from SAP - Control record missing

    Hi! We are hitting problems when importing IDOCs from SAP into the Integration Builder. The import ends successfully but when we drill into the IDOC structure we get a message: <b>Schema for type EDI_DC40.ASN_OUT.DELVRY01.Z1DELVRY (category Data Type

  • SOAP sender adapter and several interfaces

    I have several interfaces and want to connect them via SOAP sender adapter. How can I use 1 communication channel for this interfaces? or do i need to create communicaton channel for each interface?

  • Best option for VPN and Firewall..

    I am replacing my Watchguard Firebox 700 Firewall/VPN with a Cisco box. I am trying to determine what would be the best model for my environment. 20 person company.. The only need would be for 1 or 2 different offices to connect via VPN and also our

  • Unable to Connect PC and update

    I am using Sony Tablet S. Model SGPT112SG/S. I have few queries as follows. 1. I am unable to connect the Tablet to PC companion. It shows as "PC companion must be updated". But I am using the latest one. 2.Android version is 4.0.3 (release5a).  When