Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums
Go Back   Code Forums > Application and Web Development > Java
User Name
Password

Reply
 
LinkBack Thread Tools Display Modes
Old 06-23-2006, 11:54 PM   #1 (permalink)
spidermo
Recruit
 
Join Date: Jun 2006
Posts: 14
spidermo is on a distinguished road
Question Automatically scrolling text

Any ideas on how to get text to scroll back and forth in a text field? If I were using just a plain JPanel I would just edit the paint method, but I don't really have any ideas for a text field.
__________________
spidermo is offline   Reply With Quote
Old 06-24-2006, 05:20 AM   #2 (permalink)
Belisarius
Java fanboy
 
Belisarius's Avatar
 
Join Date: Aug 2003
Posts: 1,114
Belisarius is on a distinguished road
I take it a JScrollPane isn't applicable?
__________________
GitS
Belisarius is offline   Reply With Quote
Old 06-24-2006, 10:02 AM   #3 (permalink)
spidermo
Recruit
 
Join Date: Jun 2006
Posts: 14
spidermo is on a distinguished road
Yeah, I think I am just going to end up using a JPanel.
__________________
spidermo is offline   Reply With Quote
Old 06-24-2006, 05:44 PM   #4 (permalink)
teknomage1
Jack of all trades
 
teknomage1's Avatar
 
Join Date: Feb 2005
Location: Los Angeles
Posts: 595
teknomage1 is on a distinguished road
Send a message via AIM to teknomage1
Counldn't you treat your text as an array of characters and just rotate the characters in the array and update the value of the textfield?
eg
Hello World
ello WorldH
llo WorldHe

etc.
__________________
Stop intellectual property from infringing on me
teknomage1 is offline   Reply With Quote
Old 07-05-2006, 05:51 PM   #5 (permalink)
spidermo
Recruit
 
Join Date: Jun 2006
Posts: 14
spidermo is on a distinguished road
Sorry I didn't respond earlier, I was on a short vacation.
That is another good suggestion. But I just ended up using a JPanel and modified the paint method and added some others. I will post the code if someone asks for it, otherwise, I will save me a few seconds
__________________
spidermo is offline   Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Include file shown correctly in FF not in IE Stoner HTML, XML, Javascript, AJAX 2 04-21-2006 07:56 AM
Text Searching freesoft_2000 Java 2 12-02-2004 07:38 AM
[MySQL] blob vs text redhead PHP 2 03-29-2004 11:15 PM
Read and Write to a Text File sde C# 0 02-23-2004 06:44 AM
Capturing web page text vaclav VB 6 0 02-24-2003 02:42 PM


All times are GMT -8. The time now is 11:11 PM.


Powered by vBulletin Version 3.6.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2006, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting
Open Circle