Applying GradientPaint to logo text in an Applet

Hello everyone!
I'm trying to come up with a pleasing text appearance in an applet's logo title I'm working on. I'm wondering if there's an easy way to apply a gradient to text (with a larger font, of course). And while I'm at it, does anyone have any interesting appearance ideas to apply to text for something like my current project. Thanks!

I'm wondering if there's an easy way to apply a gradient to textSure thing. See my [_Visual Font Designer_|http://tips4java.wordpress.com/2008/11/30/visual-font-designer/] for the approach using a Font created using a Map of TextAttribute.
db

Similar Messages

  • Help!....Apply fillColor to desired text (Qc purpose)

    Hi Forum,
    I have written script for applying color to the desired text.... but nothing happens.... ESTK says: "execution finished, result is 'r'".
    (the document has some character styles applied to the desired text and on some of the desired text character styles left unapplied...
    my motive is to find the unapplied character styles on the desired text and highlight them using red colour... (for QC purpose)
    myDoc = app.documents.item(0).stories.everyItem().paragraphs.everyItem().characters;
    var mytexts = "You |you |your |Your |us |our |Our"  //desired texts on which character styles left unapplied on some pages..
    for (i = 0; i<mytexts.length; i++) {
    mytext = mytexts[i];
    if (mytext.appliedFontStyle == "Regular") {  // if the text has "None" character style applied on it.... then fill... "Red"
        mytext.appliedFillColor = "Red";
    any help on this....
    thanks...

    Hi,
    No chance to work this way.
    (I mean Shilpa way, didn,t see your answer csm_phil )
    1. mytexts suppose to be an array to iterate into. Otherwise you are iterating through characters, one by one.
         so make it mytexts = mytexts.split("|");     // here is an array
    2. you have to find every occurence of each "mytexts" element inside your doc to check if CharStyle is added;
    then you can use find...change to reach your goal.
      So make inside your "for_loop":
         app.findTextPreferences = null;
         app.changeTextPreferences = null;
         app.findTextPreferences.findWhat = mytext;
         app.findTextPreferences.fontStyle = "Regular";     //are you sure "Regular" fontStyle is a good sign for action?
         app.changeTextPreferences.fillColor = "Red";     //make sure there is "Red" color in your doc
         app.activeDocument.changeText();
    this should work.
    enjoy
    Message was edited by: Jump_Over

  • Ik probeer de logo text van kleur veranderen,na veranderen met fill de onderste tekst (kleine letters)is niet duidelijk

    hallo,
    ik probeer logo text van kleur veranderen
      voorbeeld  van logo text  is hieronder
    Premieroptie.nl                                           (eerste rij  letter Grote   =  30pt)
    compute reparatier en data recovery service              (tweede rij letter grote=12pt  onderste tekst)
    nu ik  heb geprobeerd  eerst png bestand te selecteren en kiezen fill  color optie  normal    orange kleur dan ik krijg de text op oranje maar er is 1 probleem   wanneer van kleur wordt veranderd de onderste tekst is niet duidelijk  ik heb ook geprobeerd als PSD bestand maar de problem blijft  hetzelfde  .
    hoe ik kan de onderste tekst ook duidelijk maken.  ik ben pas beginner met photoshop ,ik ben ook lid geworden voor Linda.com maar ik kunde die probleem niet oplossen.
    johan

  • How do apply my company logo to the signature of my iPhone?

    How do apply my company logo to the signature of my iPhone?

    Unfortunately you don't, as the iOS signature settings are limited and downright crappy.  You can't even use a color other than black.
    There's a few signature apps in the App Store that might suit your needs though.

  • Applying tracker info to text

    I've tracked an item:
    How can I match that movement to some text?

    You should read the manual on this and do the accompanying tutorials, but I'd use a match move or a stabilize node and load it with your tracker information...
    apply that to your text along with a move2d node to place it.
    Patrick

  • Probleme with AE/Element 3D Shattered Glass - Mirror Logo Text Reveal

    Hi,
    Hope you will understand me, i'm french so it's a little bit complicated to speak in english.
    My problem is not very hard i think, but i don't find any answer and i'm a beginner in AE & Elements 3D.
    I paid 3D Shattered Glass - Mirror Logo Text Reveal and i substitute the logo instead of my logo.
    In the original video as you can see, there is not a glass behind the logo. and when i subsitute with my new logo, there is a glass...
    I just want to do like the video, have my logo wich set up my logo in the form of glass , not my logo inside a glass...
    Hope you understand me and have an answer.
    Sincerly

    Thanks to you for the answer.
    I have scaled my screenshot because there is a size to respect for put it here.
    I do what you said to me, open the logo in the folder, and do the same for mine logo.
    But there is the same result, i don't know why... I don't know where i can see a solution. I have this template at the beginning. I have done that to modify the logo :
    - Open project first
    - then go inside of "logo here" com. Remove envato logo and drop your logo or text here.
    - Your logo must have an alpha channel for proper work of project. place your logo proportional to center of comp
    - After placing logo go inside of "packshot" com. select the layer named "auto traced logo heere" and remove this layer
    - select layer comp named 'logo here' and go to the upper menu ''layer/auto trace..". the hit ok. This will create a new auto traced layer
    - Select layer named element and bring custom layers/custom text masks. from path layer 1's drop down menu select your newly created "auto traced logo here" layer.
    - after these processes please go to the any frame in 8th, 9th second, select layer named "logo overlay" and adjust scale and position of layer to fit front surface of 3D extruded element logo (this stape i've don't understand)
    Thanks for helping me..
    Rick Gerard wrote:
    Please don't scale your screenshot. Try again and maybe there is something we can do to help.
    Please select your logo in the Project panel so we can see the image details.
    Here's where I would start. Open the template. Open all folders inside the project panel until you find the original logo that came with the project. Right click on that logo and find it in your folder. Open the original logo and check the size and format. Go back to the After Effects Project Panel and right click on the original logo again and select replace footage. Browse to your original logo. All Done....

  • Load text file into applet

    hi,
    I am new to java and really need some help.
    I want to load / read a text file in my applet line by line
    the text file looks like:
    P,161,127,3,ff6599c2
    P,161,127,3,ff6599c2
    P,161,128,3,ff6599c2
    P,161,129,3,ff6599c2
    etc.
    the code I tied and did not work looks like:
    class read
         public void main( String[] args)
              int i;
              if (args.length < 1)
                   System.out.println("Please enter file: read<datei>");
                   System.exit(-1);
              try
                   BufferedReader in =new BufferedReader(new FileReader( args[0]));
                   String line = new String();
                   while((line=in.readLine())!=null)
                        System.out.println( line );
              catch(IOException e2)
    has anybody an idea how to do it?
    Thanks a lot
    Silke

    <PRE>
    First off you need to create a class which extends the
    Applet class. The applet class does not have the
    method "public static void main(String args[])". Instead it has a method "init()". In the "init" method you should
    write the code that you would write in "main". The "init"
    method is only executed once. When the applet is first downloaded. Here is a sample code, but there is one other factor to note. Applets have trouble accessing
    files on computers. This goes above and beyond the
    applet sandbox which locks up an applet. In my experiences I have only managed to read and write text
    files to the desktop through applets. The program can
    be used by entering the file name in the text field
    at the top of the applet and then clicking the "Read File"
    button at the bottom of the applet. This code segment is untested and it has been some time since I have done
    applet programming but it should work. You may have to
    edit the security policy file(security.policy) to grant permission to your codebase before this functions properly because it involves reading from the file system. The grant should look something like this(if you are running under unix/linux I believe you would substitute"file:\\\" with "file:/"):
    grant codeBase "file:\\\<Directory Path that contains
    the MyApplet class" {
    java.io.FilePermission "read", "*"
    import java.applet.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.io.*;
    <Applet Code="MyApplet" width="300", height="300">
    </Applet>
    class MyApplet extends Applet
    implements ActionListener {
    TextArea ta=new TextArea();
    Button readFB=new Button("Read File");
    TextField tf=new TextField();
    public void init() {
    setLayout(new BorderLayout());
    Panel tempPan=new Panel();
    tempPan.setLayout(new BorderLayout());
    tempPan.add("West", new Label("File Name:"));
    tempPan.add("Center", tf);
    add("North", tempPan);
    add("Center", ta);
    add("South", readFB);
    readFB.addActionListener(this);
    setSize(300, 300);
    show();
    public void actionPerformed(ActionEvent ae) {
    String action=ae.getActionCommand();
    if(action.equals("Read File")) {
    String strFileName=tf.getText();
    BufferedReader br=new BufferedReader(new FileReader(new File(strFileName)));
    ta.setText("");
    String nextLine="";
    while((nextLine=br.readLine())!=null) {
    ta.append(nextLine+"\n");
    br.close();
    ps: be careful when modifying security policy file.
    It will affect all applet code that is loaded from the
    codeBase specified. If no codeBase is specified it
    will apply to all codeBases leaving you vulnerable
    to malicious applets. Good luck.
    </PRE>

  • Pop Up Text in an applet on mouse over event

    Can anyone help me to design a pop up text message to be displayed in an applet on moving your mouse over a particular control. Plz. Its urgent

    To show a pop-up use javax.swing.Popup. Add a mouse listener to button. When mouse enters the button pop-up shows and when mouse exited the button, pop-up disappears. This pop-up is capable of displaying simple message to any swing component. Sample code:
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    * @author mrityunjoy_saha
    * @version 1.0
    public class AppletWithPopup extends JApplet {
        private Popup popup;
        private JButton button;
        private JLabel message;
        @Override
        public void init() {
            setLayout(new FlowLayout());
            button = new JButton("Hello");
            message = new JLabel("This is a JLabel. It can be any swing component.");
            button.addMouseListener(new MyMouseListener());
            add(button);
        private class MyMouseListener extends MouseAdapter {
            @Override
            public void mouseEntered(MouseEvent e) {
                System.out.println("Mouse entered.");
                PopupFactory factory = PopupFactory.getSharedInstance();
                popup = factory.getPopup(AppletWithPopup.this, message, (int) button.getLocationOnScreen().
                        getX() - 20, (int) button.getLocationOnScreen().getY() + 40);
                //popup = factory.getPopup(AppletWithPopup.this, message, 50, 10);
                popup.show();
            @Override
            public void mouseExited(MouseEvent e) {
                System.out.println("Mouse exited.");
                if (popup != null) {
                    popup.hide();
    }If you are talking about alert box (where some message can be displayed), in above example instead of javax.swing.Popup use javax.swing.JOptionPane. In case you are using JOptionPane, make it visible in mouseEntered() method and hide it in mouseExited() method.
    Thanks,
    Mrityunjoy

  • How to apply style to partial text within a tag in xml file

    I have created a webpage using Dreamweaver CS4 Spry Regions. Everything is functioning as expecting, however now I need to apply a style to part of the text. Every occurance of the company name needs to be in italics - the problem is that the company name appears within different parts of the text within a set of tags.
    http://www.certifiedangusbeef.com/private1/sales/facts/index.php
    ie - <description> this is my company name which must appear in italics</description>
    In this example, only "company name" needs to be italicized. We have created an XSL file that applies the italics properly when the XML file is viewed in the browser. But it does not have any effect on the final web page - as though spry is blocking the XSL or we've missed a step in linking all the files together.
    Here's the XSL code:
    <?xml version="1.0" encoding="utf-8"?><!-- DWXMLSource="facts.xml" --><!DOCTYPE xsl:stylesheet  [
    <!ENTITY nbsp   "&#160;">
    <!ENTITY copy   "&#169;">
    <!ENTITY reg    "&#174;">
    <!ENTITY trade  "&#8482;">
    <!ENTITY mdash  "&#8212;">
    <!ENTITY ldquo  "&#8220;">
    <!ENTITY rdquo  "&#8221;">
    <!ENTITY pound  "&#163;">
    <!ENTITY yen    "&#165;">
    <!ENTITY euro   "&#8364;">
    ]>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
        <xsl:template match="node()|@*">
            <xsl:copy>
                <xsl:apply-templates select="node()|@*"/>
            </xsl:copy>
        </xsl:template>
        <xsl:template match="text()[ancestor::description]" name="replace">
            <xsl:param name="pString" select="."/>
            <xsl:choose>
                <xsl:when test="contains($pString,'Certified Angus Beef ®')">
                    <xsl:value-of select="substring-before($pString,'Certified Angus Beef ®')"/>
                    <i>Certified Angus Beef<sup> &reg;</sup> </i>
                    <xsl:call-template name="replace">
                        <xsl:with-param name="pString"
                        select="substring-after($pString,'Certified Angus Beef ®')"/>
                    </xsl:call-template>
                </xsl:when>
                <xsl:otherwise>
                    <xsl:value-of select="$pString"/>
                </xsl:otherwise>
            </xsl:choose>
        </xsl:template>
        <xsl:template match="text()[ancestor::item]" name="replace1">
            <xsl:param name="pString" select="."/>
            <xsl:choose>
                <xsl:when test="contains($pString,'Certified Angus Beef ®')">
                    <xsl:value-of select="substring-before($pString,'Certified Angus Beef ®')"/>
                    <i>Certified Angus Beef<sup> &reg;</sup> </i>
                    <xsl:call-template name="replace">
                        <xsl:with-param name="pString"
                        select="substring-after($pString,'Certified Angus Beef ®')"/>
                    </xsl:call-template>
                </xsl:when>
                <xsl:otherwise>
                    <xsl:value-of select="$pString"/>
                </xsl:otherwise>
            </xsl:choose>
        </xsl:template>
    </xsl:stylesheet>

    An element attribute is set with the method
    setAttribute(String name,
                             String value)or the
    setAttributeNode(Attr newAttr)method.

  • Need software to apply image filter to text

    I am looking for software which will apply a filter or effect to text to mask or fill images into text. The software is a suite of several packages offering different image fills per pack. I do not remember the name of the software nor do I recall the name of the manufacturer. Uggh.
    Please help if you know the name of the software or manufacturer I am speaking of. The software has a series of pre-defined library of images to apply to text with a "click of a button". I do not remember if the text is rendered in 3D or 2D. The software I am referring to is either a separately packaged application OR a plug-in or filter for Photoshop. It offers 3 or 4 volumes of images or textures to apply to text.
    For example, it has filters like Swiss Cheese or Sponge. The Swiss Cheese example would fill the text with cheese but also have the edges distorted if a hole in the cheese intersected with the edge of the text thereby creating a "dent" or "hole" in the surface. Some other effects were bubbles, stone, grass, flowers, giraffe, zebra, etc.

    Alex,
    Could it be the Extensis PhotoTools (note: name might have changed, since I got it many years ago)?
    Good luck,
    Hunt

  • Using text in java applets

    hello i have a typewriter applet and am entering text for it to type, i know that using # makes text skip a line and &nbsp makes a space. does anyone know what others there are to use when i am entering my text. HTML doesnt do anything in java so when i used the <br> tag it only showed as text, but then found that # worked great any other things/tricks on the keys i can use within my text ...thanks ahead of time

    i know that using # makes text skip a line and makes a space ...Really? I didn't and I suspect a number of regular helpful folk here didn't know that either. Suggestion: why don't you explain a little bit more about your app and what you want it to do - or even post your code, as I suspect there may be an easier way /possibly 'better' way to do what you're doing.

  • InDesign CS3 crashes when applying styles to pasted text with formatting.

    Running InDesign CS3, v. 5.0.2 on Windows XP, SP2
    InDesign is crashing whenever I do the following:
    1. Paste or place text from Microsoft Word -- with existing formatting preserved.
    2. Apply any character or paragraph style to that text.
    This happens 100% of the time when I try to recreate the error. It happens on more than one computer. It never used to happen in IDCS2. It's not a missing font issue.
    I've tried recreating the InDesign preference files, but it didn't work. (See help file at http://kb.adobe.com/selfservice/viewContent.do?externalId=kb400616&sliceId=1)
    Any suggestions would be hugely appreciated! This is slowing down my work a ton, and manually adding things like underline is killing me. If it persists, I'll have to roll back to CS2. :(

    We had exactly the same issue - but it only seemed to happen when a "Hyperlink" character style came in with the pasted text. In fact, the crash only happened when we tried to apply a paragraph style to a paragraph that had a hyperlink in it.
    Our solution: before we try to do anything else, we delete the "Hyperlink" character style. I can't guarantee that this will solve your issue, but it has worked for us (so far!) in those rare cases when we cut & paste Word text.
    We have never had this issue when we import ("Place") the Word file - that's generally a better workflow anyway.
    -Bill

  • Apply different styles to text within a Text field?

    I am working on an application that consumes a user-generated
    HTML file and displays it on part of a Flex screen. The main
    problem is HTML can look something like this (for example):
    Hello <span class="greeting">Mr. Smith</span>,
    how are you doing <span class="title>today</span>.
    Unfortunately, the Flex Text control only accepts a single
    style that is applied to all text within the control and the
    htmlText property only allows for very basic HTML markup and does
    not include support for applying styles to a part of the text.
    I've thought about creating a series of Text controls (each
    with its own style as needed) and putting them together in an HBox.
    However, this messes up word wrapping if the text exceeds the width
    of its container.
    Anyone have any ideas how to solve this problem?
    Thanks!
    Dustin

    Could you please elaborate your requirement since you can have different instances of synchronized text have different formatting.
    So your original menu can consist of various text blocks (marked with different content tags) and then duplicate them and apply different formatting to the copied text. The text is still linked and an update to one will get synced to the other.
    If you are looking at applying different styling to chunks of text within one textframe (marked using a content tag), THAT is not possible, since the tagged content is supposed to maintain integrity of text and not the associated styling (which you should be able to apply independently).
    Hope that makes sense.
    Cheers,
    Vikas

  • How do I apply style within a text frame linked object

    I'm selecting the text frame in the object I want to apply an object style
    A script can be written
    within a text frame the linked object (selected text frame)
    how object style is applied

    Hi
    All you need is
    app.selection[0].appliedObjectStyle = app.activeDocument.objectStyles.itemByName ("Trevors Object Style");
    The below snippet will apply the style to all the anchored objects in the selection or document
    var doc = app.properties.activeDocument,
        myOnjectStyle = doc.objectStyles.itemByName ("Trevors Object Style"),
        myObjects, l;
    if (!myOnjectStyle.isValid) {
        alert ("Either add an Object Style Called:\nTrevors Object Style\nOr Make Significant Changes to The Script");
        quit ();
    app.findTextPreferences = app.changeTextPreferences = null;
    app.findTextPreferences.findWhat = "^a";
    myObjects = (app.selection && app.selection[0]).findText () || doc.findText ();
    l = myObjects.length;
    while(l--) myObjects[l].textFrames[0].appliedObjectStyle = myOnjectStyle;
    HTH
    Trevor

  • Cannot boot computer past apple logo, text is displayed saying aDebugger called panic ?

    Hello
    I have been having issues booting up an iMac computer, it doesn't get past the apple logo before prodcuing text and a greyed out screen that refers to 'Panics', 'double Panics', kernal traps, deBuggers?
    Not sure where to even begin really.
    It does the same when I try to boot in safe mode.
    Any ideas, can some one show me where to begin?
    cheers
    Matthew Trott

    Post the last KP report. Step one is to boot into safe mode (restart holding down SHIFT key). Also,  See
    Technical Note TN2063: Understanding and Debugging Kernel Panics,
    Mac OS X Kernel Panic FAQ,
    Resolving Kernel Panics,
    How to troubleshoot a kernel panic,
    Troubleshooting Mac OS X Kernel Panics, and
    Tutorial: Avoiding and eliminating Kernel panics for more details.

Maybe you are looking for

  • Ftp get file with original date and time on one server to another server

    Dear All, I have successfully file copied from ftp server1 to ftp server2 but i cant get original file date and time.If anyone knows please help me... i have using the package is sun.net.ftp.FtpClient . Thanks Andavar.P

  • How to hide some functions in the menu bar of flash paper

    Do anyone know how to hide some functions in the menu bar of flash paper? As I want to show a swf file(converted from pdf) on the website without printing function. How can I do it? Also, if possible, can anyone know how to hide all functions on the

  • Accenture(india) interview !

    hi ppl, If anyone who have attended accenture interview lately, please share your views and possible questions ! would be of great help ! regards jeeva

  • Download documents

    Hi, I need to put a button in a report to make a download of a file that is stored in a blob field in a table. How can i do it? Is it possible to do it with wizards? In the forum I see a lot of questions about this, in all of them they use the instru

  • IWeb & Link Color

    My default link color appears as red. This applies to any "page links" that show at the top of the page, as well as internal links like links that I put in my blog entries. Is there a way to change the default link color? It seems like it is a very b