How to create a background textures

Hello,
Are there classes in any package to create colored textures for background swing components ?
If so, thanks to point me to URLs or samples.

The basic packages for drawing 2D graphics are found in "java.awt.*", and for your specific needs you need the various implementations of the Paint interface, ie GradientPaint, TexturePaint, etc.
See: http://java.sun.com/javase/6/docs/api/java/awt/Paint.html
To paint various graphics you need a JPanel and then you need to override the "paintComponent(Graphics g)" method and do your own custom painting.
More reading: http://www.apl.jhu.edu/~hall/java/Java2D-Tutorial.html#Java2D-Tutorial-Shapes
ICE

Similar Messages

  • How to Make a Background Texture Like This

    Can you please take a look at following image and let me know how I can create a background texture (pattern) like this in Adobe illustrator cs6?
    I already tried this using Texture -> Grain -> Artistic -> Film Grain  but the result is a little different as:
    Can you you please let me know how to do that? Thanks

    Actually you are close, it needs something like the light factory in photoshop to generate depth.
    The easiest way is to go to your local office supply store, by a sample pack of paper then scan a sheet into your computer, instant texture. You can then overlay any color you choose, depending on the original color of the paper though.

  • How to create a background job without a variant ?

    How to create a background job without a variant ?

    Hi,
    Go to se38.. specify the program name and execute Or use Tcode
    On the selection screen specify the variant...
    Then from the menu options choose program->excute in background...
    In this way we can crate a backgroup job with out crateing any varinat for the report...
    Satya.

  • How to create a background job for call transaction

    hi gurus
    can any one suggest me
    how to create the background job for call transaction.
    thank you
    regards
    kals.

    Hi,
       Refer
    https://forums.sdn.sap.com/click.jspa?searchID=10926107&messageID=889652
    Regards
    Kiran Sure

  • How to create a background image for each item in a List object

    Hello.
    I am trying to create a background image that displays whenever a user posts something to a list.  For example when a user posts text it would appear in a list.  The new item in the list would contain a specific background image with the users text appearing on top of the background image.  I do not want a background image for the entire list, rather each item within the list.
    I am not sure how clear this is so I added an image below.  When a user enters text in and clicks the "post-it" button their text would appear below with the sticky note background. 
    I am not sure which list type would be best for this problem or how to create insert the image, so I am open to suggestions. 
    Thank you for your help.  Any advice or guidance will be greatly appreciated!

    Hi
    the easiest way would be with itemRenderer.
    You have to do two things:
    1. In your list declaration use a item renderer: <mx:List itemRenderer="myRenderer"/>
    2. create a flex component myRenderer that will be the single item. This can be a canvas with a background image and a text field on it.
    When you add a new item to the list, a new myRenderer item will be created and the data property will be passed to it. So you have to put "data" in your textField.
    If you need more help try looking at Tour de Flex samples, they're pretty easy.
    Andrei

  • How to create radiant background?

    I'm hoping this is a RTFM question, but I'm tying to create a radiant background similar to these slides (http://blog.duarte.com/wp-content/uploads/2009/02/one-idea.jpg). I know how to create a linear gradient fill, but I can't seem to figure out how to create a radiant one.

    Put a shape behind everything and with it selected:
    +Inspector > Graphic (5th tab) > Fill > Advanced Fill > 2nd box under gradient bar+
    Peter

  • How to Create event, background Job & Assing event to backgroud job to trig

    Hi Experts,
    I want to trigger events in Backgroud for data scheduling purpose to automate.
    I can able to create event in SM62. then i want to create background job in SM36 then how to assign to event in Background to trigger.
    can anybody give some suggestion on this.
    Best Regards
    Siri

    Hi,
    There are two cases
    1) to raise an event after the completion of a job
    This can be done by using ABAP coding, trigger the event using a program by the 'RAISE' statement. The job can be scheduled to run in the background daily or weekly(or anything as per the requirements)
    2) to run a job after an event
    in the start condition of the job, give the event name which should trigger that job in the after event field.
    or if you want to run multiple jobs after one event completes, give that event in the start condition of all the jobs.. or model a process chain which will run this jobs..
    I hope this clrifies your doubt...
    Regards
    Shilpa

  • How to create a background job in CE and assign a Web Service to it?

    Hi,
    We have a specific requirement here.
    We have an application service which perform some updates based on timestamp etc, it will be exposed as a Web Service.
    The requirement here is that a background job should invoke this Web Service everyday at Midnight.
    But here I don't know how to implement this functionality in SAP CE 7.1.
    Please reply ASAP.
    Regards,
    Manish

    Hi Manish,
    Job Scheduler is available as part of the app server,
    Create a class and extend MDBJobImplementation override the method onJob in this method trigger your webservice.
    for more details please go through this document
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/10fed553-0e01-0010-9bb8-ed55659e1236
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/90a95132-8785-2b10-bda5-90d82a76431e
    Regards
    Ayyapparaj

  • How to create a background job to replicate the datasource from R3 to BW?

    Dear all
    I always got error msg when use the RSA1 to do the relicate from R3. Did anybody can tell me how to do it in background? Thank you!
    Jialin

    Try this:
    1) Go to tcode SE38 - ABAP Editor
    2) Enter ABAP program name RSDS_REPL_RESET
    3) Click on Execute
    4) In the Selection-Screen, enter the source system to replicate from, or * if you want to replicate from all source systems.
    5) If you just want to replicate BW 3.5 DataSource, enter ISFS as the Preferred Type. Or, if your preference is for BW 7.x DataSources, etner RSDS as the Preferred Type. If there is no preference, leave the field blank and it will replicate both types.
    6) Go to the menu option Program > Execute in Background

  • How to create transparent background video?

    I'm trying to add some filters to some some imported text files from Photoshop, but they don't work so well so I need to import them as transparent video files. So, how do I export the text as a ProRes file from FCP with a transparent background so I can re-import it and add the video filters?
    I've tried fiddling around with the alpha channels but the background always seems to be black.

    You don't export the files as a ProRes clip.
    Place your text on a transparent background and export from PS as .tiff or .png stills. They will composite automatically. You can set the default length required in FCP's User Preferences...
    You must do this before you import the files.

  • How to create a Background Job?

    Hi All,
    A ABAP List report is taking too long to run. It takes nearly 5 mints sometimes it is halted by a timeout. I would like to run this report as a background job. What's the transaction I should use & could U give me the steps. Also is it possible to schedule the Job to run on 1st of every month.
    Thanks,
    Kishan

    1.programatically ( job_open , job_close)
    2.thorugh sm36 ( defining a job & scheduling)
    doing something programmatically certainly has an advantage of automation... there may be cases wherein depending on certain conditions u need to run different programs in the background.. so this can be incorporated in the program itself using if/else or other condition commands..
    there may be numerous other differences too.
    SM36 option is more of static one and programmitaclly is more on the fly scheduling a job.
    Using SM36, it not a one time thing. If you want program to run at a specific frequency, say every 24 hrs, that also can be done.
    1)data: sdate type sy-datum,
    stime type sy-uzeit,
    l_valid,
    ls_params like pri_params,
    l_jobcount like tbtcjob-jobcount,
    l_jobname like tbtcjob-jobname.
    start-of-selection.
    Get Print Parameters
    call function 'GET_PRINT_PARAMETERS'
    exporting
    no_dialog = 'X'
    importing
    valid = l_valid
    out_parameters = ls_params.
    Open Job
    l_jobname = 'ZRICH_0005'.
    call function 'JOB_OPEN'
    exporting
    jobname = l_jobname
    importing
    jobcount = l_jobcount.
    Submit report to job
    submit zrich_0005
    via job l_jobname
    number l_jobcount
    to sap-spool without spool dynpro
    spool parameters ls_params
    and return.
    Kick job off 30 seconds from now.
    sdate = sy-datum.
    stime = sy-uzeit + 30.
    Schedule and close job.
    call function 'JOB_CLOSE'
    exporting
    jobcount = l_jobcount
    jobname = l_jobname
    sdlstrtdt = sdate
    2)Use transaction SM36.
    http://help.sap.com/saphelp_bw30b/helpdata/en/c4/3a7f87505211d189550000e829fbbd/content.htm
    sdlstrttm = stime
    strtimmed = 'X'
    Please use T/code SM36> enter your Job name Starts with Z or Y Ex: ZTEST> STEP>ABAP Program> Define your Report /Variant--> Save.
    Start condition--> Press Date and Time > Enter your start date and time> Save
    Then Use SM37--To execute ur job
    Lanka

  • How to create a Background effect on JMenuItem?

    I'm trying to create an effect similar to what is found in Microsoft Office Applications where on a JMenuItem there is a block of colour that runs down the lefthand side of the component. Any icons associated with a specific menuitem then appear on top of this block of colour.
    Does anyone know if these blocks are icons themselves (some with another icon and some without) or is there a method of setting a block of colour to this component. The former would mean creating alot more icons and seems a bit excessive for the cause.
    I'd appreciate any ideas. Cheers

    You could try using a rigid body proxy as the anchor for the skirt, and each frame update the position and orientation of the anchor by getting the worldTransform of the corresponding bone:
    on enterFrame(me)
    -- get world transform of bone
    tBone = pMember.model("woman").resource.getBoneID("Pelvis")
    tempTrans = pMember.model("woman").bonesPlayer.bone[tBone].worldTransform
    -- make fine adjustments (e.g.)
    tempTrans.translate(3.3  * tempTrans.xAxis)
    tempTrans.rotate(tempTrans.position, tempTrans.zAxis, 90)
    -- set position & orientation of anchor
    anchorRB.position = tempTrans.position
    anchorRB.orientation = tempTrans.axisAngle
    end enterFrame
    To prevent the skirt intersecting the legs, you may want two more rigid bodies (one for each thigh) that are updated according to the femur bones. Setting the cloth's enableCollision property to true should have the cloth collecting around the legs instead of passing through them.

  • How do I create a mottled texture like in this poster?

    Hello,
    I am trying to figure out how to create this mottled texture used in the poster below? Looks like a noise filter of some kind. Would I be better using Photoshop or Illustrator for this? I am using the texture in the context of a book, repeating the texture on certain pages.
    Thanks alot!
    Henry

    Henry,
    Have you tried the Effect>Pixelate>Whatever, or something else in that area of the Effect dropdown? There are some options there.

  • How to create noise texture - Illustrator Tips

    Hello. I saw this piece of art on one of the Illustrator tips & techniques section, and was wondering if someone knew how to create this "noise" texture in Illustrator?
    What I've had to do in the past to get a similar effect was to complete my illustration in Illustrator, then bring that artwork into Photoshop and paint over the desired areas... but this looks a lot nicer than the results I've gotten. If this can be done in vector, that would be another plus!
    Does anyone have any insight they could share on this?
    Thank you!

    You are welcome.
    The site of which that tutorial is a part (HERE) has a lot of good tutorials, including a few more about adding texture in Illustrator.
    --OB

  • How do you create a background like this...

    Hi,
    I am building a mock-up for a website and am wondering how to create a background in Photoshop like they have in the following link (where they have these thin diagnol stripes in the background of the entire page):
    http://www.neatco.com/
    I appreciate your time and look forward to hearing back from you soon.
    Thanks!

    If you Google "Photoshop diagonal pattern tutorial" you will find thousands of tutorials.

Maybe you are looking for

  • High memory usage OSX Lion on iMac

    Hi, Recently upgraded 2006 iMac 6.1 to OSX 10.7.2 (4GB). Noticed performance dropped significantly when 2 or more users are logged in especially when switching users. Observed memory usage for OSX Lion is far higher than Snow Leopard! By startup 2GB

  • Ejb primary key

    hi, a newbie question. pls bear with me ;-) i have a challenge in building an ejb project which consists of a single entity bean generated from a db table. btw, i am using workshop 8.1. the table consists of three primary keys. i suppose ejbgen will

  • Replace all occurrence with range - issue

    Hi, I have a range with "letters" like ":" or "-" or "." Note: all entries are with option = "equal" Now i need to "replace all occurrences" of "all entries in that range" with space. idea: loop at range assigning <range>. replace all occurrences of

  • Vgaswitcharoo "No such file or directory"

    The title says it all. Im trying to disable my ATI gpu with vgaswitcharoo.  I have debugfs mounted as instructed in the wiki.  Yet still no luck with vgaswicharoo. [dan@ArchLinux ~]$ sudo cat /sys/kernel/debug/vgaswitcheroo/switch Password: cat: /sys

  • User defined packages in TOMCAT HELP PLEASE!!!!

    Hello all, I am have created a package (foo). I then tried to import it into a jsp but TOMCAT say the package foo doesn't exist. I have stored the class file for the foo package in the same root directory with the jsp file. I have I stored the class