Once again I call on everybodies skills :-)

Hi All,
I have this applet, but need to place this LED display in an application? Any ideas?
import java.applet.*;
import java.awt.*;
import java.net.*;
* A simple LED Display
*<table border=2><tr><td>
* <APPLET CODE=LedDisplay.class WIDTH=513 HEIGHT=23>
* <param name="text" value="put_the_text_here">
* </APPLET>
*</td></tr></table>
* @version 1.0 - September 26th 1997
* @author Leonardo Boselli - [email protected]
public class LedDisplay extends Applet implements Runnable {   // Runnable is to do with the threads
public static final byte[][] c = {
{126,9,9,9,126},{65,127,73,73,54},{62,65,65,65,34},
{65,127,65,65,62},{127,73,73,65,65},{127,9,9,1,1,1},
{62,65,65,73,58},{127,8,8,8,127},{0,65,127,65,0},
{32,64,65,63,1},{127,8,20,34,65},
{127,64,64,64,64},{127,2,12,2,127},{127,4,8,16,127},
{62,65,65,65,62},{127,9,9,9,6},{62,65,81,33,94},
{127,9,25,41,70},{38,73,73,73,50},{1,1,127,1,1}, //some array of bytes, but what for?
{63,64,64,64,63},{7,24,96,24,7},{127,32,24,32,127},
{99,20,8,20,99},{7,8,120,8,7},{97,81,73,69,67},
{62,81,73,69,62},{0,66,127,64,0},{98,81,81,73,70},
{34,65,73,73,54},{24,20,18,127,16},{39,69,69,69,57},
{60,74,73,73,49},{1,113,9,5,3},{54,73,73,73,54},
{70,73,73,41,30},{0,96,96,0,0},{0,0,0,0,0},{0,8,8,8,0},
private int w, h; //used for width and height down a bit
private static final Color b = new Color(255,128,0);
private static final Color f = new Color(255,255,128);
private Thread t;                                                       //main thread
private String s;
private Image o;
public void init() {
w = size().width;
h = size().height;
s = getParameter("text");
o = createImage(w,h);
Graphics g = o.getGraphics();                              //send the graphics to the object?
g.setColor(Color.black);
g.fillRect(0,0,w,h);                                        //size of LED display
for(int ct = 0; ct < h; ct += 2) {                    //while less than height
g.setColor(b);
g.drawLine(1,ct+1,1,ct+1);                                   //draw dot as LEDs
for(int ct = 2; ct < w; ct *= 2) {
g.copyArea(0,0,ct,h,ct,0);
g.dispose();
public void start() {
if(t == null) {
t = new Thread(this);
t.start();
public void stop() {
t.stop();
t = null;
public void run() {
while(true) {
int ch = 0, ctch = 0, p = 4;
for(int ct = s.length() * 6; ct > 0; ct--) {
long time = System.currentTimeMillis();
Graphics g = o.getGraphics();
     g.copyArea(0,0,w,h,-2,0);
if(p++ >= 4) {
     for(int ct1 = 0; ct1 < 7; ct1 += 1) {
     g.setColor(b);
     g.drawLine(w-2,ct1*2+5,w-2,ct1*2+5);
p = -1;
if(ctch < s.length()) {
     ch = conv(s.charAt(ctch++));
} else {
ch = c.length - 2;
} else {
     for(int ct1 = 0; ct1 < 7; ct1 += 1) {
     g.setColor(((c[ch][p] & (1<<ct1)) != 0)? f: b);
     g.drawLine(w-2,ct1*2+5,w-2,ct1*2+5);
g.dispose();
g = getGraphics();
g.drawImage(o,0,0,this);
g.dispose();
time = 50 - System.currentTimeMillis() + time;
if(time > 0) {
     try {
     Thread.sleep(time);
} catch(Exception e) {
public void update(Graphics g) {
g.drawImage(o,0,0,this);
g.dispose();
public void paint(Graphics g) {
update(g);
public boolean mouseEnter(Event e, int x, int y) {
showStatus(getAppletInfo()+" - Click for TETRACTYS Freeware.");
return true;
public boolean mouseExit(Event e, int x, int y) {
showStatus("");
return true;
public boolean mouseDown(Event e, int x, int y) {
try {
getAppletContext().showDocument(
new URL("http://www.geocities.com/SiliconValley/Lakes/3015/"),"_top"
} catch(Exception exc) {
return true;
public String getAppletInfo() {
return "LedDisplay 1.0 (c) 1997 L.Boselli - [email protected]";
int conv(char ch) {
if(ch >= 'A' && ch <= 'Z') {
return ch - 'A';
} else if(ch >= '0' && ch <= '9') {
return ch - '0' + 26;
} else {
switch(ch) {
case '.': return c.length-3;
case ' ': return c.length-2;
default: return c.length-1;
}

Create a main method for the class, similar to this.
public static void main(String args[]) {
    Frame myFrame = new Frame("My frame");
    LEDApplet la = new LEDApplet();
    myFrame.add(la);
    myFrame.setVisible(true);
    la.init();
    la.start();
}and fix any errors possibly caused by my typos.

Similar Messages

  • How can I buy it on my Apple ID so I can use Recovery to put my MBP to function once again? Help D=

    My MBP just failed, bought it from a friend and dont have an Apple ID with Lion, Lion is no longer on the App Store so, how can I buy it on my Apple ID so I can use Recovery to put my MBP to function once again? Help D=
    Or what else could I do? I don´t have any USB to reinstall the OS and my DVD Unit is death, but it seems I can reinstall over Wi-Fi if Im able to link an OS X Lion license to my Apple ID

    You would need to call Apple Sales (USA 1-800-MY-APPLE) and purchase a redemption code for Lion.

  • Once again, I need help...I'm starting to hate this board

    Ok, I'm going to start from the beginning. When I first built this computer last year, (specs at the bottom) everything ran seemlessly. I upgraded to WinXP and no problems. Then my hardrive started screwing up around mid-summertime. The computer would freeze, crash, ect. Various things. After doing some research, running diagnostics and calling IBM, it was decided that the drive had gone bad. So I took it out, and bought a new western digital. After installation of the drive, and installing XP on the newly formatted drive, I expected everything to work fine. It didn't. First, there were blue and black screens of death. Sometimes the blue screens would mention something about IRQ's not less or equal, sometimes something else. Sometimes the computer would just restart for no reason. So I reformatted again. This fixed the blue screen problem and for about a day, everything (I thought) was cool. Think again. To start, I couldn't run any 3d application for an extended period of time without it freezing. And if I set the CPU to 1.2 ghz (where it should be!) it gets even worse. I even tried uping the voltage a little. No help. Sometimes the computer would just (once again) restart for no reason. Especially while using winamp. I tried different drivers, different bioses, readjusting my fan on my cpu, running memtest86 (which showed the memory to be fine). I have read through MANY threads on the forums and tried many other things, with no luck. The current situation, after attempting to install WinXP servicepack 1 is that I cant even load Windows. It always gets to the point where the blue bar is moving across while it says WinXP, and then the computer restarts. I ran tests to check how the powersupply was running during use, nd all the numbers looked good. The thing that really pisses me off, is that everything use to work fine, before the IBM drive crashed. Guys, I need some expertise and a Beer. I can do the second one myself and will gladly get a case for whoever can help me straighten this out! Even if I just have some part that needs replaced, I just need answers! Thanks guys!
    Athlon 1.2 ghz 266fsb
    Msi nforce k7n420pro
    300W powersupply
    Integrated graphics
    256 mb Crucial memory
    yamaha 24x burner
    kenwood 52x cdrom
    floppy drive
    d-link wireless network card (could this be a problem? I was having problems before I got this card)

    All these guys with there power supply is a bunch of bunk and the combine this and that. a decent 300w psu will run the nforce with onboard vid or a geforce 3 easely. and forget all the combined crap.
    Heres what my 300watt power could handle before I gave it to my kid.
    MoBo.
    1900xp
    Geforce3
    Scsi card
    Modem
    2- IBM 60 GB 7200rpm
    Cold cathode ray tube 12"
    CD ROM
    Smart media reader
    And whatever else I plugged into the usb port and the only time I ever had Maveric's problem, which I had the same thing was when switch system driver from 1.0 to 1.05 they gave me the same thing he is having. so I stayed with the 1.0 until the 1.13's came along and they worked well.
    I suggest his is a driver issue IRQ not less then, Bksod or random restarts or other blue screen errors.
    Try the 1.00's
    Oh by the way now my kid uses my old 300watter on his 1900xp nforce machine, with all kind of toys and his is also stable. So Wonky and Athlonix quit suggesting that a 300psu is not sufficent when in fact it may work very well. oh and one more thing Athlonix GET OFF THE SOUND CARD THING!!! the onboard works, can't you get that in your head. Only yours doesn't every one elses does. can someone draw a picture of that
    Jim.

  • Even I cant believe this is happening again! i'm once again asking for help with my account.  Since im very sick I ask that u look into my account and read the hell verizon has put me through and assist ending the hell once and for all even if that means

    Even I cant believe this is happening again! i'm once again asking for help with my account.  Since im very sick I ask that u look into my account and read the hell verizon has put me through and assist ending the hell once and for all even if that means ending my contract, i just want the hell over. I went into my bill tonight and the mess was still there I paid $110. that's what I owe

    I guess I spoke too soon!  I really can't believe this nightmare is not over yet! My account is still wrong.  The credit that I was due totaled $63.00  I am looking at a message on my phone saying that $21.01 was credited which makes my balance $219.72.  I received a text the following day that says, I processed your credit of $30.00 and your new balance $216.73 how is that possible?  None of the late fees were credited and the amount due for my monthly charges are wrong.  Before any changes were made to my data plan back in Nov. My monthly charges were $140.00, I needed my hot spot back and i was told that the hot spot will increase my bill $10 for each phone that totals $20.  The customer rep that change my data plan at that time also gave me a credit of $20 to compensate for the increase until I had time to talk with customer service about the mix-up with my Hot spot. I originally had the hot spot, but the rep that change my plan almost a year prior told me nothing was changing except I was getting more for less money.  I explained to that rep that I need my hot spot 4 times a year...and I don't want my plan to have any changes. To verify what I'm telling u check my account and see that I called from Albany New York wanting to know where my hot spot was and I was told I didn't have the hot spot on my account since the last data change!  I lost money once again due to the verizon rep's.  so my current data plan the rep promised would increase $20 which makes my monthly charges that were $140 prior to the change $160 after the hot spot was returned to my account.  Then I was given a $12 credit per month for 12 months because of so many mistakes made to my account so with that $12 credit my monthly charges should $148 + surcharges + taxes and that's not what I see. I do know this much right now my account is in such a shambles I can hardly see the light at the end if there is an end!  I need real help!
    >> Personal information removed by Verizon Moderator to comply with the Verizon Wireless Terms of Service <<

  • Static methods in interface (Yes, once again!)

    I know there has been many questions about why static methods in interfaces are not allowed. I know it is forbidden by the JLS. But does anyone know the exact reason for this? Is it just a design issue or are there technical difficulties with allowing it?
    I can't think of any reason that it should be impossible to allow static methods in interfaces. I don't even think it would be very difficult to do. More importantly, it could probably be done without breaking existing code and existing JVMs (not too sure about the last one).
    So once again: Was the choice of not allowing static methods in interfaces a design choice or a technical choice?

    A better example of what you are suggesting is surely ...
    interface i {
        static void one();
    class a implements i {
        static void one() {
            // do something
    class b implements i {
        static void one() {
            // do something else
    }What would be the point of ever doing this?
    You cant call i.one() as the method doesn't exist without an instance of an implementing class.
    To actually ever be able to use that method you would effectively be casting an INSTANCE of a or b -> i. If you have an instance of an a or b then there is absolutely no reason for that method to be static.
    If you wanted to implement some sort of class (ie static) behaviour then class a could call its own internal static method from within the 'one' method.
    To get right to the point ... there isn't one. If it gets added to the language (and I can't see it in my wildest dreams) then Sun have lost their marbles, surely?
    Unless someone can give a good example of when it might be correct and useful to do so? I can't even see how it would be a convenience as it is completely unusable, no?

  • To trigger the same Gp process once again after the completion of one

    Hi
    I have aGP process implemented in Webdynpro.
    After the completion of this process, itshould automatically trigger the same GP process once again.
    It should happen from the webdynpro coding.
    Can anybody help me.
    thnaks
    Smitha

    Hi Siva,
    Thanks for the reply.
    But How can I give process name ?
    There can be more than 1 process with the same name.
    Procees ID is the unique one what we can use.
    Still that too we can't use as method.
    we can give it as a parameter.
    what I tried is,
    IWDClientUser wdUser = WDClientUser.getCurrentUser();
    IUser user1 = wdUser.getSAPUser();
    IGPUserContext userContext = GPContextFactory.getContextManager().createUserContext(user1);
    IGPProcess process = GPProcessFactory.getDesigntimeManager().getActiveTemplate("EB0B28E08B6011DBB1BE00145EB416E0",userContext);
    EB0B28E08B6011DBB1BE00145EB416E0 is the process ID.
    This code I have tried by  giving before and after the completion of the previous  process(process9executionContext.processingComplete();)
    And I tried URL navigation also, by creating an outbound plug in the interfaceview. in the outbound plug I have called the process instantiation URL. But it is giving the error: "can not navigte :non-existent outbound plug"
    Please help me out.
    Thanks
    smitha

  • My iphone 4s in unlocked and i am currently using it for tmobile prepaid service. i want to restore the 7.0 settings back to 6.1.3 .. will this lock my iphone 4s once again after i restore it back to 6.1.3?

    My iphone 4s in unlocked and i am currently using it for tmobile prepaid service. i want to restore the 7.0 settings back to 6.1.3 .. will this lock my iphone 4s once again after i restore it back to 6.1.3?

    Because GPS has nothing to do with WiFi, cellular signals, or data of any sort. GPS is implemented by signals sent by satellites that are received by GPS receivers. The receivers process the information from the GPS satellites and calculate your location. GPS never sends data anywhere; GPS functionality is receive only.
    If you have WiFi or cellular data turned on this can improve the accuracy of GPS, because the GPS receiver can then use the known location of cell towers and WiFi networks to refine the GPS location. GPS by itself has an accuracy of 10 meters, or about 34 feet. Using the additional information from WiFi and cellular data this can be brought down to 3 meters (10 feet). This mode is called Augmented GPS, or A-GPS.

  • TS2446 Account disabled message appeared. Tried to loggin with new password. Payment verification message appeared. When details are give Rs 60/- is charged and account is disabled once again.

    Account disabled message appeared. Tried to loggin with new password. Payment verification message appeared. When details are give Rs 60/- is charged and account is disabled once again.

    Hello Errappa,
    Thank you for using Apple Support Communities!
    I was thinking that it would be a good idea for you to call our Account Security team about what may be happening with the account.
    Note: You will need to be able to verify the account.
    Apple ID: Contacting Apple for help with Apple ID account security
    http://support.apple.com/kb/HT5699?viewlocale=en_US
    Cheers,
    Sterling

  • OFA changed once again...

    OFA changed once again...
    I was OFA compliant with all my 9i installations. Nowadays I need to make few new installations which have to be OFA 11g compliant. Along with that systems I'll have two 10g OFA 10g compliant installations. Worst of all, there will be more than 30 upgraded 9i intsallations, where I'll have 11g database running on old 9i OFA mount points...
    From my perspective, any new installation of 11g database which will stick to new OFA recommendation will introduce new mess in my system... Is there any good of OFA? I lived in hope that OFA will actually help me in upgrade procedure one day :)
    Is there anyone who actually had some benefit from OFA complaint installation?
    Thanks
    Srdjan

    People should read their customer aggreements. There is a whole part on this exact issue:
    "HOW AND WHEN CAN I DISPUTE CHARGES?
    If you're a Postpay customer, you can dispute your bill within 180 days of receiving it, but unless otherwise provided by law or unless you're disputing charges because your wireless device was lost or stolen, you still have to pay all charges until the dispute is resolved. If you're a Prepaid customer, you can dispute a charge within 180 days of the date the disputed charge was incurred. YOU MAY CALL US TO DISPUTE CHARGES ON YOUR BILL OR ANY SERVICE(S) FOR WHICH YOU WERE BILLED, BUT IF YOU WISH TO PRESERVE YOUR RIGHT TO BRING AN ARBITRATION OR SMALL CLAIMS CASE REGARDING SUCH DISPUTE, YOU MUST WRITE TO US AT THE CUSTOMER SERVICE ADDRESS ON YOUR BILL, OR SEND US A COMPLETED NOTICE OF DISPUTE FORM (AVAILABLE AT VERIZONWIRELESS.COM), WITHIN THE 180–DAY PERIOD MENTIONED ABOVE. IF YOU DO NOT NOTIFY US IN WRITING OF SUCH DISPUTE WITHIN THE 180-DAY PERIOD, YOU WILL HAVE WAIVED YOUR RIGHT TO DISPUTE THE BILL OR SUCH SERVICE(S) AND TO BRING AN ARBITRATION OR SMALL CLAIMS CASE REGARDING ANY SUCH DISPUTE."
    SEE THE REST OF IT HERE: Customer Agreement | Verizon Wireless

  • Error message: your computer booted up once again because of a problem

    I have a Macbook Pro retina. Regularly i have a pop up window with the above mentioned error message. Regularly when i open up the lid of my macbook it shows booting all the used programs once again. Then it shows after booted up all the used programs the error message: your computer booted up once again because of a problem. I have the option to ignore or to send the rapport to Apple. Also sometimes my macbook is very warm and the battery is drained for a big deal. What the **** is wrong with it.

    If you are still under warranty and/or have AppleCare, call them.  Let them deal w/it.

  • I am on windows 7 and I upgraded to 10.0.2 and now it will not open. I have removed firefox completely and uploaded it again and that did not work. So my latest attempt I removed firefox 10 again and uploaded the beta version and once again nothing.

    I am on windows 7 and I upgraded to the newest verison of firefox and now it will not open. I have removed firefox completely and uploaded it again and that did not work. I then made sure it could get through my firewall and that did not work. So my latest attempt I removed firefox 10 again and uploaded the beta version hoping that would do it and once again nothing. It will not open at all. Please help - is there a live chat or a number to talk to someone at Firefox?

    I think when uninstalling you may also have to choose (tick) to delete the preferences and other personal data like the bookmarks, stored passwords etc. to erase completely. If you are installing afresh, please try right-clicking on the file and '''Run as administrator''' to install. And when uninstalling, please also make sure choose to delete all data and also manually delete any '''Mozilla''', '''Mozilla Firefox''' or '''Firefox''' from %appdata%, %localappdata% and %programfiles%. You can open a location by typing for eg. %appdata% in the '''Run''' box (Windows key + R). You may also have to check the '''VirtualStore''' folder in %localappdata%. Files in the VirtualStore can be problematic. I think a clean installation may help.
    [https://www.mozilla.org/en-US/firefox/new/ Firefox]
    [http://kb.mozillazine.org/Installation_directory Installation Folder]
    [http://kb.mozillazine.org/Profile_folder Profile Folder]
    Please note that using system restore would usually damage the Firefox installation.

  • MDT 2012 deploy OS from USB external drive failed - need to unplug and plug it once again

    We are using MDT 2012 and deploying Windows 7 using media (USB external hard drive). We can successfully deploy Windows 7 32 bit using this method but there is a problem with deploying Windows 7 64bit. This problem appears only on HP EliteBook 840. We can
    boot into WinPE 64 bit and can start proper task sequence, all image is applied then after restart, before logon screen appears there is an error saying that cannot find litetouch.vbs script. After clicking ok, I can logon to Windows and there is no usb external
    drive recognized. But when I unplug and plug usb drive once again it is recognized by Windows and can be used. I can see that Windows install some drivers just after plug it again
    I checked BIOS looking for some USB power options - there is no such settings. And 32 bit deployment works ok. So this is not a case. Looks for me like a problem with proper usb drivers for 64 bit. I download all drivers from HP website (driver pack and
    drivers only for USB 3.0). We are using make and model matching in MDT - works ok for all the rest hardware models. Any idea how to troubleshoot it?

    Not sure what's going on here. Is this a USB "Flash" drive or a USB "Hard Drive". There *Is* a distinction.
    I *thought* that MDT would copy itself to the c:\minint\scripts folder to continue installation.
    Next time, when you see this error, Press Shift-F10 to get into a cmd.exe prompt. Can you find litetouch.vbs on any of the drives? Does the USB Drive appear?
    IF in fact, the USB Drive is not appearing after the 1st reboot, then you have a problem. Why did the USB 3.0 driver not install. Check the Driver Installation Logs to verify.
    Keith Garner - keithga.wordpress.com

  • Report is not getting refreshed after changing prompts once again?

    HI,
    I am running some webi and deski reports using webi sdk also i'm handling the prompts of
    report.
    Problem is that if i ran the parametrized webi or deski report then my application shows the prompt page
    then i fill all the prompt for the report it shows the data for selected prompt values.
    But if i once again changed prompt values it shows data of previously selected prompt values not for
    the currently changed prompt values. means reports not getting refreshed.
    sometimes its work correctly.
    What will be problem?
    How can i resolve this issues?
    Please help me
    Thanks in advance
    Harshad

    The workflow is:
    1. Refresh
    2. Set Prompts
    3. Get View.
    then repeat.
    Are you refreshing before setting prompts?
    Sincerely,
    Ted Ueda

  • Every time I update LR to a new version I seem to need a patch to make it work..... once again here I am SOS! I've just update LR to the 5.7 version and It wont let me start it: The application was unable to start correctly (0xc000007b).

    Every time I update LR to a new version I seem to need a patch to make it work..... once again here I am SOS! I've just update LR to the 5.7 version and It wont let me start it: The application was unable to start correctly (0xc000007b).

    Your system is missing a couple DLLs that LR needs, but the fix at Adobe is to copy them to the LR folder which gets replaced for each install, so you have to redo it after each LR install.  It would be worth documenting the process and saving the DLLs so you don’t have to ask about it each time:
    http://helpx.adobe.com/lightroom/kb/error-unable-start-correctly-0xc00007b.html
    You might also use the AIO210 program to add them as detailed in this YouTube video—maybe this is a more permanent fix, but since the files are from media-fire be very careful about what you do so as not to install a virus on your computer. 
    I’d scan the downloaded ZIP you download with whatever virus and internet security software you have and don’t be fooled by extraneous popups you might see during the download process.  I was able to download the aio210.zip after authorizing one Captcha window and closed at least one bogus popup trying to get me to install other software.  I also scanned the downloaded zip with two virus scanners and both said it was clean.  Here is the YouTube video, where the link to the ZIP to download is in the description once you expand it:
    https://www.youtube.com/watch?v=vlT0N2CX50g

  • I tried upgrading to MountaIN lION HOWEVER i WASNT ABLE TO Install.  I then tried reinstallling Snow leopard but once again it will not let me install stating there are errors on the disc.  I have run disc repair on disc utility but it wont allow me

    I was told to reinstall Snow leopard which I did .  More troubles! It then came up cannot iinstall as there are errors.  Tried going into disc utilities and repair but once again it stated iin red I cannot proceed.  can anyone help me here.  Before this was happening my system was slowing right down with the beach ball making an apearance after tapping the mouse or typing text.

    So you are trying to reinstall Snow Leopard?
    In order to do that, you need to erase your hard drive - you cannot go back to an earlier system without erasing. Make sure you back up your files first. Then insert the Snow Leopard install disk, and restart while holding down the C key. If that does not work, insert the install disk, go to System Preferences > Startup Disk and highlight the install disk > click on restart.
    Once you are booted into the install disk, go past the language selection and then to Utilities in the menu bar. Use Disk Utility to repair the drive (just in case), erase it and then install. After that, eject the disk and update to the latest 10.6.8.

Maybe you are looking for