How to draw text onto the screen?

Hi,
I'm looking for a way to draw a String directly onto the screen.
Anybody have any ideas?
Regards
ABourke.

Someone posted a nice example of what the OP wants a while ago on [java.net|http://forums.java.net/jive/thread.jspa?threadID=57353&tstart=30] : [CircleScroller (jnlp)|http://mac-systems.de/circlescroller/launch.jnlp].
It uses the 6u10 [transparant window feature|http://java.sun.com/developer/technicalArticles/GUI/translucent_shaped_windows/], but he didn't post the code itself.

Similar Messages

  • I'm trying to make a logo animate onto the screen - is there a technique for that?

    I'm editing a TV spot for a client and want to animate their logo, by making it "draw" itself onto the screen. Any recommendations for how to do that?

    depends on how the logo looks like and what kind of 'appearance' you want ...
    drop-dead-simple:
    use any paint.app which supports psd-layers (recommending Pixelmator …), 'split' the diff. elements into separate layers (needs perhaps some retouch) and fade in/move in each layer. (made that for some other request awhile ago : http://youtu.be/uEDjHtADYj8 )
    not-that-complicated:
    in Motion, matte tool, paint some lines, which cover the logo, use the write-on behavior... (thousands of tuts at YT ... )
    all-bells-and-whistles:
    use tools as Blender, Cinema4D or mObjects (=the 3D-plugin for Motion) to re-enact the logo in 3D, flying, tumbling, lens flares, chrome shine, fire balls, Hollywood!

  • I would like to cut and paste information from a word file onto a pdf file, as well as draw lines onto the pdf file.  How can I accomplish that task?  Is there software I can purchase?

    I would like to cut and paste information from a word file onto a pdf file, as well as draw lines onto the pdf file.  How can I accomplish that task?  Is there software I can purchase?

    Hi jgallu7382,
    The latter is easily accomplished using the Drawing Markup tools, which are available in both the free Adobe Reader, and in Acrobat. Copying/pasting text into the PDF is something that you could do using the editing tools that are available only in Acrobat. Note, however, that Acrobat isn't intended to be a text-editing application, so editing there won't be as robust as in an application designed specifically for that purpose. (It's also worth mentioning that you won't be able to alter a PDF if it has document permissions applied that would prevent you from doing so.)
    I hope that answers your questions.
    Best,
    Sara

  • How do i add text to the screen in java3d

    I have tried overiding the jpanel, but the paint and paintcomponents are not called.
    Is their a way i can draw directly to the screen, while using java3d in the background.

    That would be correct- if you want text in your Canvas3D it has to be added to the Java3D scene. Have you looked at the Text2D object?

  • Whenever I open a new Firefox Browser, the other Firefox Browsers that I have minimized to the bottom of the screen all restore, (reopen up) onto the screen with the new opened Firefox Browser, how do I stop this? Just want the new one to open on screen

    Whenever I open a new Firefox Browser, the other Firefox Browsers that I have minimized to the bottom of the screen all restore, (reopen up) onto the screen with the new opened Firefox Browser, how do I stop this? Just want the new one to open on screen and the existing stay minimized.
    == This happened ==
    Every time Firefox opened
    == I think when a I updated or downloaded a newer version of FireFox at Firefox's suggestion.

    Hmm that does sound a bit strange - I use a system quite similar to yours (XP, FF 3.6.3), and don't see this behaviour.
    I would recommend trying to start Firefox in Firefox [[Safe Mode]] (make sure you close '''all''' running Firefox instances first), and see if this problem persists.
    If not, it could be some add-on causing this behaviour - restart Firefox in Safe Mode, disable all add-ons, and enable them one by one to find the guilty one.
    If it still happens in Firefox Safe Mode, some other program (or something in Windows itself) most likely is the cause. We may be able to help with this too, so let us know what works and provide as much additional information as possible to let us help you solve this.
    Please let us know how above works out, and if we can be of further assistance. Detailed feedback is appreciated and helps us to help you better, plus enables us to better help other users with similar issues.

  • My FaceTime isn't working properly. Every call I make a black dot appears on the camera in the middle (fixed onto the screen, and is not dirt), and the calls always fail. It would ring 6 times and then say call failed. How can I fix this?

    My FaceTime isn't working properly. Every call I make a black dot appears on the camera in the middle (fixed onto the screen, and is not dirt), and the calls always fail. It would ring 6 times and then say call failed. How can I fix this?

    If FaceTime ever worked properly for you, restarting your modem (and separate router/wireless if you have such) may help.  If the problem continues, try connecting at a different location to see if the problem is within your wi-fi.
    The black dot problem may mean you need to reset your iPod.  If that does not help, it may need service by an Apple Authorized Service Provider.
    If you need help with any of these suggestions, detailed help on each topic is available via Apple's Support pages:
      http://www.apple.com/support/ipodtouch/
    Message was edited by: EZ Jim
    Mac OSX 10.7.3

  • How to draw text vertically, or in an angle

    please help me how to draw text vertically, or in an angle

    I robbed the framework from Dr Las or 74phillip (don't remember which) ...
    import java.awt.*;
    import java.awt.geom.*;
    import javax.swing.*;
    import javax.swing.event.*;
    public class AngleText extends JPanel {
      private int      degrees = 16;
      private JSpinner degreesSpinner;
      public AngleText () {
        setBackground ( Color.WHITE );
      }  // AngleText constructor
      protected void paintComponent ( Graphics _g ) {
        super.paintComponent ( _g );
        Graphics2D g = (Graphics2D)_g;
        g.setRenderingHint ( RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON );
        AffineTransform at = AffineTransform.getRotateInstance ( Math.toRadians ( degrees ) );
        Font f =  g.getFont();
        g.setFont ( f.deriveFont ( at ) );
        g.drawString ( "Rotating Text!", getWidth()/2, getHeight()/2 );
        g.setRenderingHint ( RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_OFF );
      }  // paintComponent
      public JPanel getUIPanel () {
        SpinnerModel degreesModel = new SpinnerNumberModel (
                                      degrees  // initial
                                     ,0        // min
                                     ,360      // max
                                     ,2        // step
        degreesSpinner = new JSpinner ( degreesModel );
        degreesSpinner.addChangeListener ( new DegreesTracker() );
        JPanel panel = new JPanel();
        panel.add ( degreesSpinner );
        return panel;
      }  // getUIPanel
      //  DegreesTracker
      private class DegreesTracker implements ChangeListener {
        public void stateChanged ( ChangeEvent e ) {
          Integer i = (Integer)((JSpinner)e.getSource()).getValue();
          degrees   = i.intValue ();
          repaint();
      }  // DegreesTracker
      //  main
      public static void main ( String[] args ) {
        JFrame f = new JFrame ( "AngleText" );
        f.setDefaultCloseOperation ( JFrame.EXIT_ON_CLOSE );
        AngleText app = new AngleText();
        f.getContentPane().add ( app );
        f.getContentPane().add ( app.getUIPanel(), BorderLayout.SOUTH );
        f.setSize ( 200, 200 );
        f.setVisible ( true );
      }  // main
    }  // AngleText

  • What are little transparent notices that pop onto the screen?

    There are little transparent notices that pop onto the screen whenever the computer congratulates itself for doing something like a download or finding an infected email and eliminating it.  What are those called and how can I turn them off?

    Thanks for replying MacJack,
    It turns out that it was Growl, not an anti-virus program that was being the nuisance.
    I found out how to disable those distracting pop-ups by following the directions on Growl's website.
    http://growl.info/documentation/growl-package-removal.php

  • How to draw rectanlge in the panel, clear, repaint?

    when i was taking my coding, i found a problem which i could not solve.So, i hope someone can help. Thank you.
    the question :
    1. how to draw Rectangle in the Panel?
    2. how to clear?
    3. how to repaint?
    The following is my coding.
    import javax.swing.*;
    import java.awt.*;
    public class DrawScreen extends JFrame {
    Color rectColor=Color.white;
    int hight=100;
    Panel Button_panel = new Panel();
    Button button1 = new Button();
    Button button2 = new Button();
    Button button3 = new Button();
    Panel Draw_Panel = new Panel();
    public DrawScreen(String title) {
         super(title);
         try {
         Init();
         catch(Exception e) {
         e.printStackTrace();
    private void Init() throws Exception {
    setResizable(false);
    setFont(new Font("Serif",Font.ITALIC,12));
         this.getContentPane().setLayout(null);
         Button_panel.setBackground(SystemColor.control);
         Button_panel.setLocale(java.util.Locale.getDefault());
         Button_panel.setBounds(new Rectangle(14, 17, 118, 259));
         Button_panel.setLayout(null);
         button1.setLabel("Draw Square");
         button1.setBounds(new Rectangle(0, 69, 115, 22));
         button2.setLabel("Colour Red");
         button2.setBounds(new Rectangle(0, 111, 115, 22));
         button3.setLabel("Clear Screen");
         button3.setBounds(new Rectangle(2, 152, 115, 22));
         Draw_Panel.setBackground(Color.white);
         Draw_Panel.setBounds(new Rectangle(138, 15, 254, 266));
    //     System.out.println(Draw_Panel.getBounds());
         this.getContentPane().setBackground(Color.white);
         this.getContentPane().add(Button_panel, "East");
         Button_panel.add(button3, null);
         Button_panel.add(button2, null);
         Button_panel.add(button1, null);
         this.getContentPane().add(Draw_Panel, "West");
         addWindowListener(new java.awt.event.WindowAdapter(){
              public void windowClosing(java.awt.event.WindowEvent e){
                   System.exit(0);
    button1.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed(java.awt.event.ActionEvent evt) {
    button1ActionPerformed(evt);
    button2.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed(java.awt.event.ActionEvent evt) {
    button2ActionPerformed(evt);
    button3.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed(java.awt.event.ActionEvent evt) {
    button3ActionPerformed(evt);
    pack();
    private void button1ActionPerformed(java.awt.event.ActionEvent evt) {
         hight=(int)(Math.random()*100);
         rectColor=Color.black;
    repaint();
    private void button2ActionPerformed(java.awt.event.ActionEvent evt) {
         rectColor=Color.red;
    repaint();
    private void button3ActionPerformed(java.awt.event.ActionEvent evt) {
    rectColor=Color.white;
    repaint();
    public void paint(Graphics g){
         g.setColor(rectColor);
         g.drawRect(50, 50,hight,hight);
    public static void main(String[] args) {
    DrawScreen ds=new DrawScreen("Square Plotter");
         ds.setSize(600,350);
         ds.setVisible(true);

    Few changes and it works:
    import javax.swing.*;
    import java.awt.*;
    public class DrawScreen extends JFrame
         Color  rectColor    = Color.white;
         int    hight        = 100;
         Panel  Button_panel = new Panel();
         Button button1      = new Button();
         Button button2      = new Button();
         Button button3      = new Button();
         DPanel Draw_Panel   = new DPanel();
    public DrawScreen(String title)
         super(title);
         setResizable(false);
    //     setFont(new Font("Serif",Font.ITALIC,12));
    //     this.getContentPane().setLayout(null);
         Button_panel.setBackground(SystemColor.control);
         Button_panel.setLocale(java.util.Locale.getDefault());
         Button_panel.setBounds(new Rectangle(14, 17, 118, 259));
         Button_panel.setLayout(null);
         button1.setLabel("Draw Square");
         button1.setBounds(new Rectangle(0, 69, 115, 22));
         button2.setLabel("Colour Red");
         button2.setBounds(new Rectangle(0, 111, 115, 22));
         button3.setLabel("Clear Screen");
         button3.setBounds(new Rectangle(2, 152, 115, 22));
         Draw_Panel.setBackground(Color.white);
         Draw_Panel.setBounds(new Rectangle(138, 15, 254, 266));
    //  System.out.println(Draw_Panel.getBounds());
    //     this.getContentPane().setBackground(Color.white);
         this.getContentPane().add(Button_panel, "East");
         Button_panel.add(button3);
         Button_panel.add(button2);
         Button_panel.add(button1);
         this.getContentPane().add(Draw_Panel, "Center");
         addWindowListener(new java.awt.event.WindowAdapter()
              public void windowClosing(java.awt.event.WindowEvent e)
                   System.exit(0);
         button1.addActionListener(new java.awt.event.ActionListener()
              public void actionPerformed(java.awt.event.ActionEvent evt)
                   button1ActionPerformed(evt);
         button2.addActionListener(new java.awt.event.ActionListener()
              public void actionPerformed(java.awt.event.ActionEvent evt)
              button2ActionPerformed(evt);
         button3.addActionListener(new java.awt.event.ActionListener()
              public void actionPerformed(java.awt.event.ActionEvent evt)
                   button3ActionPerformed(evt);
    //     pack();
    private void button1ActionPerformed(java.awt.event.ActionEvent evt)
         hight=(int)(Math.random()*100);
         rectColor=Color.black;
         repaint();
    private void button2ActionPerformed(java.awt.event.ActionEvent evt)
         rectColor=Color.red;
         repaint();
    private void button3ActionPerformed(java.awt.event.ActionEvent evt)
         rectColor=Color.white;
         repaint();
    public class DPanel extends JPanel
    public DPanel()
    public void paintComponent(Graphics g)
         super.paintComponent(g);
         g.setColor(rectColor);
         g.drawRect(50, 50,hight,hight);
    public static void main(String[] args)
         DrawScreen ds=new DrawScreen("Square Plotter");
         ds.setSize(600,350);
         ds.setVisible(true);
    }Noah

  • My screen is oversensitive and letters and numbers jump onto the screen when my finger gets close so that it is impossible to write what I want. I tried turning on and off the phone but still the same when I turn back on. Any help or advice appreciated

    My screen is oversensitive and letters and numbers jump onto the screen as my finger gets close. help

    You need to re install OSX. If you have the dmg file downloaded via torrentz this is how you can create a bootable external HD or Flash drive (8 GB+)
    https://discussions.apple.com/message/23957654#23957654
    Peace
    Harry

  • Draw characters on the screen

    As we draw circles and other graphics, is there any way to
    draw characters on the screen or print characters on the
    screen?

    Do you mean you want to render Text with the drawing API?
    If so, there's no native way to do that, but it can be done
    by capturing a bitmapData copy of a TextField's contents and using
    it in a BitmapFill.
    But its much easier to use Degrafa with RasterText:
    http://www.degrafa.org/blog/2008/11/rastertext-for-advanced-text-graphics/

  • Woh to draw anywhere in the screen?

    Hi,
    This might be a silly question but I haven't practically any graphics programming on Java before.. I tried to google for a solution and also searched these forums but no help yet.
    I need to draw some text and images anywhere in the screen. That is, the drawing is done to an on top of another (non-Java) program. I would do this periodically few times a second so that if the other program repaints, the text&images come visible again.
    So, is there a way to acchieve this in Java?
    - Maybe using some transparency settings for a frame and disabling any focus?
    - Or maybe I can somehow manipulate the screen memory "directly"? In the Robot class there is a way to get the Colro of any pixel in the screen (Robot.getPixelColor). Is there a way to do it the other way around, that is, set the color of any pixel in the screen or draw tesxt in the screen?
    Thank you very much!
    BR,
    Kari

    I must have been sleeping when I wrote this (just saw the subject line)... :)
    Woh = How

  • I have a football game recorded on a DVD R disc that I was trying to view on my MacBook using DVD Player.  The video comes onto the screen, but immediately freezes, and then disappears.  An error message comes up saying that DVD player unexpectedly quit.

    I have a football game recorded on a DVD+R disc that I was trying to view on my MacBook using DVD Player.  The video comes onto the screen, but immediately freezes, and then disappears.  An error message comes up saying that DVD player unexpectedly quit.  My MacBook operating system is Mac OS X, version 10.5.8.  DVD Player is App version 5.0.3, framework version 5.0.7.
    However, the DVD+R works on both my Dad's and my brother's laptops.  My Dad's laptop is an iBook G4 with Mac OS X operating system, version 10.3.9.  The DVD Player is version 4.0.  My brother's laptop is a MacBook Pro with Mac OS X operating system, version 10.7.2.  The DVD Player is App version 5500.26.1 and framework version 5.5.0.  The DVD+R plays fine on their laptops, but will not play on mine.
    Anthony

    Lao Bo,
    yes, you can locate and copy a file from your HD to a USB key using UNIX commands. If you know the exact name of the file which you’re trying to locate, try this:
    find / -iname filename -print
    This command will search your entire internal disk for the particular filename. If you know that it’s within a particular user account, then you can save search time with this variation:
    find /Users/username -iname filename -print
    Either variation of this command will print all files found which have the given filename. Presuming that you’re able to identify the correct file, you can copy it to a USB key using the command
    cp -p filename_returned_by_find /Volumes/USB_volume
    If you’re not sure which volume name your USB key has, this command will show you what the possibilities are:
    ls /Volumes
    Please let me know if you have any trouble with these commands.

  • How can I find out the screen size of the users moniter using the Acrobat SDK?

    How can I find out the screen size of the users moniter using the Acrobat SDK? I need to know how much sreen real estate that is available on the users moniter. Is there some call that I can make from the SDK to discover the maximun X and Y coordinates?
    Thanks,
    Gregory

    Currently, I am testing on multiple moniters and it is defaulting to the moniter designated as the #1 moniter. For our purposes, this is acceptable. Once the two documents have loaded, the user can move and re-size at will.
    Gregory

  • How do I get to the screen in Mail that allows you to delete multiple "Previous Recipients"  from the list? I have seen it but cannot find it again. Help.

    How do I get to the screen in Mail that allows you to delete multiple "Previous Recipients"  from the list? I have seen this screen but cannot find it again. It shows all of the "Previous Recipients" in a long list. You can edit the list by selecting multiple names or all names with the command key and delete. Help.

    Launch the Mail app on your Mac and go to Window>Previous Recipients.

Maybe you are looking for

  • Can't get x509 from servlet filter?

    i have a filter and a jsp. currently, both the filter and the jsp attempt to pull the X509 certificate from the request and log it (eventually the filter will perform authentication and the jsp will be a web service). however...the filter is unable t

  • [SOLVED] Help Required Installing True Type Fonts

    I am currently using Xfce4.8 and have installed xorg-fonts-100dpi xorg-fonts-75dpi and type 1 fonts. Now the fonts in xfce are starting to look good, menu fonts on firefox look good but many webpages are using ugly non aliased fonts. I would like to

  • Can I change the overall text size for the app interface...NOT the titler

    How can I increse the font size globally for all panels?? I need to make it larger I have looked for the answer, is there one...Coming from FCP which is easily changed, please help these old eyes! Thanks   CS5 on a Mac

  • Manual billing negative quantity?

    When doing a reversal using manual bill (EA16), the quantity remains positive and only the amount's sign changes. Is there any way to make the quantity negative too (as in automatic reversal)?

  • BTS 2010: SQL Adapter Class not registered

    Hi, after adding a host instance to the SQL Adapter, we receive every time a Class not registered error. The host instance is 32-bit and default for the SQL Adapter. Any ideas or is anyone facing the same issue? KR Peter