Ticker Code

Hello Folks - I am new to Java and like to dive right into some code. I am looking for some sample code for a ticker tape that would scroll along the bottom of the desktop (not within a web browser). The input for the ticker tape would be a text file or db. Any ideas where I can find some sample code? Thanks.

I am new to Java and like to dive right into some code.I recommend the following:
Installation Notes - JDK 5.0 Microsoft Windows (32-bit)
Your First Cup of Java
Essentials, Part 1, Lesson 1: Compiling & Running a Simple Program
The Java� Tutorial - A practical guide for programmers
New to Java Center
Java Programming Notes - Fred Swartz
How To Think Like A Computer Scientist
Introduction to Computer Science using Java
The Java Developers Almanac 1.4
JavaRanch: a friendly place for Java greenhorns
Object-Oriented Programming Concepts
Object-oriented language basics
Don't Fear the OOP
Books:
Head First Java, by Bert Bates and Kathy Sierra
Thinking in Java (Free online), by Bruce Eckel
Core Java, by Cay Horstmann and Gary Cornell

Similar Messages

  • Help with Multiselect List Item

    Assuming one employee can work for multiple departments, I want to display the departments employee 7844 works for preselected in a multiselect list.
    I am using the following query statement in a report region.
    select htmldb_item.select_list_from_query_xl(1, deptno ,'select DEPTNO,DNAME from scott.dept ','MULTIPLE HEIGHT=25', 'Y',null,null,null,'Department',null) a from scott.emp where empno = 7844
    The result I am seeing is a multiple multiselect lists with one department selected in each list.
    How should I modify the query to get what I want?
    Thanks
    Mina

    Hi Carlos,
    I set up a test case in exactly the same way and it worked fine for me. I created a page item called P1_DA_DEMO and added some static select list values then added some help text. The settings I used are below, I suggest you try again but also make sure you have no other Javascript errors on the page. Use a tool like firebug to check.
    Name : Dynamic Action Demo
    Sequence: 10
    Even: Click
    Selection type: Item(s)
    Item(s): P1_DA_DEMO <- a selection list item
    Condtion: - No Condition -
    True Actions
    Sequence: 10
    Action : Execute JavaScript Code
    Fire when event result is :True
    Fire on page load: Not Ticked
    Code: javascript:popupFieldHelp('277938589795252851','1545903379570909')
    Event Scope set a s Bind.
    Thanks
    Paul

  • How to read data row by row in design studio 1.2

    Hi All,
    I have a requirement to display data as a a ticker in my design studio application.
    Attached picture shows the requirement.
    I want to display top 3 best selling products from the data source. Data source will have two columns i.e. Product Name and Revenue. Requirement is to display top 3 product in a single ticker as presented below.
    1. Product Name + Revenue            2. Product Name + Revenue           3.Product Name + Revenue
    Any idea how to achieve this?
    Best Regards,
    Tanisha

    Hi Tammy,
    Through the getData() function we can display the measure but as far as I know I never came across any function to display dimension value for that measure in design studio. In my requirement I need to display both measure and dimension (1. Product Name + Revenue).
    I have never used the KPI tile SDK component but does it provide this functionality as well?
    I have already seen this ticker code. It works fine for displaying a text box in ticker. But if someone wants to display something like above, then is it possible to read data row by row from a data source and then concatenate it as a string in a text box to display it in a ticker?
    Regards,
    Tanisha

  • Help with select list item and dynamics action

    G'Day Apex Gurus,
    I having problems trying to achieve to trigger the help window of a select item automatically. A help window is triggered when the select item label is clicked but my client would like to be triguered automatically as soon as the user click to see the options in the select list.
    I think that I should be able to do it with dynamic actions but I can not get it to work.
    I know when someone click on the label of the select list item trigger this JavaScript
    javascript:popupFieldHelp('277938589795252851','1545903379570909')
    So I want to trigger the javascript also when the user click of the select list item and pull down the options and for that I think that Dynamic actions is the way to go but I can't get it right.
    This is what I a doing:
    I created a Dynamic option as follow:
    Name : test
    Sequence: 30
    Even: Click
    Selection type: Item(s)
    Item(s): P1_RATING <- a selection list item
    Condtion: - No Condition -
    True Actions
    Sequence: 10
    Action : Execute JavaScript Code
    Fire when event result is :True
    Fire on page load: ticked
    Code: javascript:popupFieldHelp('277938589795252851','1545903379570909')
    I appreciate any one who can tell me what i am doing wrong here or provide a solution to my problem of achieving to trigger the help window of a select item automatically.
    Kind regards
    Carlos

    Hi Carlos,
    I set up a test case in exactly the same way and it worked fine for me. I created a page item called P1_DA_DEMO and added some static select list values then added some help text. The settings I used are below, I suggest you try again but also make sure you have no other Javascript errors on the page. Use a tool like firebug to check.
    Name : Dynamic Action Demo
    Sequence: 10
    Even: Click
    Selection type: Item(s)
    Item(s): P1_DA_DEMO <- a selection list item
    Condtion: - No Condition -
    True Actions
    Sequence: 10
    Action : Execute JavaScript Code
    Fire when event result is :True
    Fire on page load: Not Ticked
    Code: javascript:popupFieldHelp('277938589795252851','1545903379570909')
    Event Scope set a s Bind.
    Thanks
    Paul

  • Is it possible to display a cmd window inside the windows form? Visual Basic

    If so Can u show me how?
    Because i have a .exe i'm trying to open in the Form
    the exe open up a command line but i what it to look like this 
    01
    02
    |------------------------------------------------|
    03
    |           
    this is your main form              |
    04
    |                                               
    |
    05
    |  
    /--------------------------------------\     |
    06
    |  
    |######################################|     |
    07
    |  
    |#####the cmd screen is shown here#####|     |
    08
    |  
    |######################################|     |
    09
    |  
    \--------------------------------------/     |
    10
    |                                               
    |
    11
    |                
    [ a button ]                   |
    12
    |
          the  button run/open the cmd/exe 
           |
    13
    i do not what it to open up another window
    Please help!!!
    please and thank you

    Hi,
     Here is a simple example you can try. I don`t know when or how you are opening the cmd windows or anything else so it probably is not exactly what you want. You can test it in a new form project with 1 Button and 3 Panels added to it. each time you
    press the button it opens another cmd window until the 3 panels are full.  Being i am only using 1 timer it will only allow you to open each cmd window after the timer tick code finds the previously opened cmd window and sets its parent as one of the
    panels.
    Imports System.Runtime.InteropServices
    Public Class Form1
    Private WithEvents Tmr As New Timer With {.Interval = 200}
    Private Const HWND_BOTTOM As Integer = &H1
    Private ProcCnt As Integer = 0
    Private CmdWindows(2) As Process
    <DllImport("user32.dll", EntryPoint:="SetParent")> _
    Private Shared Function SetParent(ByVal hWndChild As IntPtr, ByVal hWndNewParent As IntPtr) As IntPtr
    End Function
    <DllImport("user32.dll", EntryPoint:="SetWindowPos")> _
    Private Shared Function SetWindowPos(ByVal hWnd As IntPtr, ByVal hWndInsertAfter As IntPtr, ByVal X As Integer, ByVal Y As Integer, ByVal cx As Integer, ByVal cy As Integer, ByVal uFlags As UInteger) As <MarshalAs(UnmanagedType.Bool)> Boolean
    End Function
    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
    If Not Tmr.Enabled And ProcCnt < 3 Then
    CmdWindows(ProcCnt) = Process.Start("cmd.exe")
    ProcCnt += 1
    Tmr.Start()
    End If
    End Sub
    Private Sub Tmr_Tick(ByVal sender As Object, ByVal e As System.EventArgs) Handles Tmr.Tick
    Dim pnl As Panel = CType(Me.Controls("Panel" & ProcCnt.ToString), Panel)
    If SetParent(CmdWindows(ProcCnt - 1).MainWindowHandle, pnl.Handle) <> IntPtr.Zero Then
    Tmr.Stop()
    SetWindowPos(CmdWindows(ProcCnt - 1).MainWindowHandle, New IntPtr(HWND_BOTTOM), 0, 0, pnl.ClientSize.Width, pnl.ClientSize.Height, 0)
    End If
    End Sub
    Private Sub Form1_FormClosing(ByVal sender As Object, ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles Me.FormClosing
    For i As Integer = 0 To CmdWindows.Length - 1
    Try
    If CmdWindows(i) IsNot Nothing AndAlso Not CmdWindows(i).HasExited Then CmdWindows(i).CloseMainWindow()
    Catch ex As Exception
    End Try
    Next
    End Sub
    End Class
    If you say it can`t be done then i`ll try it

  • Why is the Tick Count function slow when used with a .dll but fine with normal lab view code?

    when using the Tick Count millisecond timer with a .dll I've written in C, I'm getting some odd timing issues.
    When I code the function I want (I'll explain it below in case it helps) in LV and run it as a subVI, feeding it the Tick count as an argument, the function runs quickly, but not quite as quickly as I would like. When I feed this same subVI just an integer constant rather than the Tick Count, it takes about the same amount of time, maybe a tiny bit more on average.
    When I bring in my function from a .dll, however, I start to run into problems. When I feed my function an integer constant, it is much faster than my subVI written in LV. When I feel my .dll the Tick Count, however, it slows down tremendously. I'm including a table with the times below:
                 |  Clock   |   Constant   |
    SubVi:   | 450ms  |  465ms       |
    .dll         | 4900ms|  75ms         |
    This is running the function 100,000 times. The function basically shifts the contents of a 2-dimensional array one place. For this function, it probably won't be a huge deal for me, but I plan on moving some of my other code out of LV and into C to speed it up, so I'd really like to figure this out.
    Thanks,
    Aaron

    Hi Aaron,
    Thanks for posting the code -- that made things a lot clearer for me. I believe I know what's going on here, and the good news is that it's easy to correct! (You shouldn't apologize for this though, as even an experienced LabVIEW programmer could run into a similar situation.) Let me explain...
    When you set your Call Library Function Node to run in the UI Thread you're telling LabVIEW that your DLL is not Thread-safe -- this means that under no circumstances should the DLL be called from more than one place at a time. Since LabVIEW itself is inherently multithreaded the way to work with a "thread-unsafe" DLL is to run it in a dedicated thread -- in this case, the UI thread. This safety comes at a price, however, as your program will have to constantly thread-swap to call the DLL and then execute block diagram code. This thread-swapping can come with a performance hit, which is what you're seeing in your application.
    The reason your "MSTick fine behavior.vi" works is that it isn't swapping threads with each iteration of the for loop -- same with the "MSTick bad behavior.vi" without the Tick Count function. When you introduce the Tick Count Function in the for loop, LabVIEW now has to swap threads every single iteration -- this is where your performance issues originate. In fact, you could reproduce the same behavior with any function (not just TIck Count) or any DLL. You could even make your "MSTick fine behavior.vi" misbehave by placing a control property node in the for loop. (Property nodes are also executed in the UI thread).
    So what's the solution? If your DLL is thread-safe, configure the call library function node to be "reentrant." You should see a pretty drastic reduction in the amount of time it takes your code to execute. In general, you can tell if your DLL is thread-safe when:
    The code is thread safe when it does not store any global data, such as global variables, files on disk, and so on.
    The code is thread safe when it does not access any hardware. In other words, the code does not contain register-level programming.
    The code is thread safe when it does not make any calls to any functions, shared libraries, or drivers that are not thread safe.
    The code is thread safe when it uses semaphores or mutexes to protect access to global resources.
    The code is thread safe when it is called by only one non-reentrant VI.
    There are also a few documents on the website that you may want to take a look at, if you want some more details on this:
    Configuring the Call Library Function Node
    An Overview of Accessing DLLs or Shared Libraries from LabVIEW
    VI Execution Speed
    I hope this helps clear-up some confusion -- best of luck with your application!
    Charlie S.
    Visit ni.com/gettingstarted for step-by-step help in setting up your system

  • Sensirion EKP-3 Code to read the raw ticks from the SDP6xx Pressure Transducer with LabVIEW

    Guys:
    I have seen the post here about the Temp Humidity sensor: Ref: http://forums.ni.com/t5/forums/replypage/board-id/170/message-id/749141
    Pardon the post under a new topic but I was advised to post it in a "new thread"... With the Device name in the title..  If this is a no-no let me know...
    Here is a question for the EKP-3 using the USB for the SDP6xx Here is an overview of what I am looking for... 
    http://www.screencast.com/t/RUDOisSvqC
    I have the Sensirion EK-P3 Stick to talk to the pressure transducer..
    This stick is made by these guys: http://www.codemercs.com/349/
    My question is how did you figure out the binary code to read the T and RH from the  iowkit.dll
    I want to read the RAW TICKS from the device that represent pressure. They go from 0 - 65535 and I have spied on it with WireShark and can not wrangle the binary code to read the raw ticks I am after.
    I made a video you can look at to see what I want from my learnings from this post: 
    http://www.screencast.com/t/UnCTJtvWLe
    I attached the DLL as well (Just rename it to iowkit.dll because LabVIEW does nol like dll's in attachments... so you do not have to mess with the msi.
    You may contact me directly at [email protected]
    Thanks!
    Dave Korpi
    Ref: http://forums.ni.com/t5/forums/replypage/board-id/170/message-id/749141
    Attachments:
    SHT75_IOWarrior.llb ‏139 KB
    iowkitdll.txt ‏71 KB

    Cameron... Wondering if you knnow how to get a 2's compliment for a 12 bit value in LabVIEW?
    I am looking to get the code to communicate to this top secret Sensirion product.
    Anyone know if I am properly sending the commands at 1, 2 and 3 of the image below?
    At issue, I think, is getting the two's compliment of the two 8 bit registers at Data LSB and Data MSB using LabVIEW...
    I have been working with the wizards at http://www.codemercs.com/258/?L=1 who have been EXTREMELY helpful.
    They have an AWESOME I2C to USB converter that you can get OEM devices to work for your I2C project. It is a single channel version of the NI-8451
    Anyone out there can figure this out so I can read the RAW TICKS from the Sensirion SDP6xx product line?
    Thanks a million! 
    Feel free to contact me at 831-455-0418 (pacific time) or [email protected]
    Attachments:
    SensirionCalls.png ‏121 KB
    Sensirion_Differential_Pressure_SDP6x0_Sample_Code_V1.pdf ‏97 KB
    LabVIEW_IOWarrior_V150Second.zip ‏1403 KB

  • Error -42408 comes up after restoring my ipad and now I cannot download my apps I have, I can tick them to down load but is interrupted by the error code.Can anyone help

    Hi I have had to restore my ipad which went well, but when it came time to tick my apps to download back onto the ipad an error code prevented the proceedure.The erroe code was -42408.Can anyone help me ?

    I have solved my own problem !
    If you go to the security serttings under your windows/outlook settings page and TURN OFF 2 step verification then you can login using your normail hotmail password.
    If you have 2 step verification switched on, your IPAD cannot prompt you for a security code so it gets "stuck" I guess. Once I turned this off, I was able to add my hotmail back to the IPAD .... HOORAY

  • Expand collapsed code by double-click. A ticking bomb

    I might have posted about this before, but since the technical support doesn't accept cases after-hours (they seem not like to arrive to the office with tons of requests, so we are all squeezed to the the group of those that have the time to wait in line - in the chat… which often closes itself because of the long time waited)
    When I double click collapsed code to expand it, Dreamweaver ALWAYS crashes. It might be on the spot, or later.
    If I NEVER double click collapsed code, Dreamweaver can run for weeks without even closing it (I never shutdown my MacBook Pro)
    If I do it, it WILL crash, usually on the spot, or minutes later.
    When I dare to do it, and I forget that I did minutes later, I end up regretting when it finally crashes, and it NEVER dissapointed me: Soon it crashes as expected.
    I already deleted all the possible preferences and customizations, and it still happens.
    It's been happening for years, so it's not only DreamWeaver CC. Definitely from CS4 and up.
    I use creative swite CC, on Mac OS 10.6.8

    I use creative swite CC, on Mac OS 10.6.8
    Can you confirm the version(s) of DW you're running on 10.6.8?
    Dreamweaver CC only runs on Mac OS X 10.7 and higher
    http://www.adobe.com/products/dreamweaver/tech-specs.html

  • Z97 Gaming 5 Flashing / Ticking Debug Code 00

    Hi,
    My new rig I built over a week ago which was working fine, until I came home to power on and the system was not posting and I heard a consistent ticking sound coming from the tower. So I opened the side panel and audio lights coinciding with debug led were flashing 00. I've tried reseting the cmos, didn't work. What else can I do? I hope this is not bricked mobo being how young it is.. Please help!
    CPU: i5 4690k
    PSU: Corsair 750RM
    Memory: 2x8GB Corsair Vengeance
    Mobo: MSI Gaming 5
    Video: Asus GTX 970
    Storage: Samsung Evo 840 500GB

    Try to turn off your Power supply or plug out the 24pin /8 pin power cable from the motherboard, then try
    clear CMOS and wait for 1 min and then replug the power cable to the MB first.
    If still have problem, try to plug out the memory and just plug in 1 memory,  try also to plug out the Video card and use the onboard VGA first for testing.

  • Cannot delete file from external hard drive (error code 36) in Finder, but Terminal is ok

    I have a relatively new Macbook Pro Retina 15" and have a Western Digital 1 TB Passport.  I've been using the passport for about a year now without any problems on older Macbooks in my house.  I used to be able to read and write to this drive no problem.  I am using the Paragon NTFS for Mac software in order to read and write to the NTFS drive.  When I navigate through the drive in Finder, if I try to create a new folder, I do not have a problem.  If I try to delete that folder I just created, I get this error:
    The Finder can’t complete the operation because some data in “untitled folder” can’t be read or written.
    (Error code -36)
    The folder has nothing in it whatsoever.  I just created it.  But if I go to Terminal and I run
    rm -rf "untitled folder"
    This works fine.  Why is Terminal acting different than Finder?  This does not happen on my other Macbooks.  Thanks in advance.

    Thanx for such qucik reply!!! The pages were great, it had an answer for my problem, but unfortunately it also involved me dealing with it only on the MacIntosh HD itself, not on mounted external drive I suppose... So it didn't work they say that there is an icon in the left corner indicating locked folder - I don't see any icon on it. It says you can untick the box to unlock the folder - there is no tick to be unticked. Finally, they say that if I don't have permition or rights I cannot delete it. But how do i change permittion which already says that i can read and write in it? So everything appears to be normal only I cannot delete it. there is not even any warnig telling me I don't have enough rights, it just requires the password and after me typing it in it makes the sound of scraping paper but does nothing more. I aslo had some problems with emptying Trash after being seemingly succesful with one file and had got so far to have them appear in the Trash (no clue how this one actully got there though..) I followd the advice and emptied the Trash with Terminal. The Folder is still there but it shows 0 Kb... So far so good BUT: It is still on the external drive, so I obviously only managed to copy it into the Trash!!! Phew, innit a bit too tight to poor owners, this macbook?? I want my rights back!

  • Cross Plant Planning- MRP activation indicator turned after the creation of Material code

    Dear Experts,
    Working on Cross plant planning, where 1001 Production plant will stock transfer material to 8 different plants.
    Right now, only 10001 plant had MRP and planning file entry ticked in customizing OMDU.
    The other 8 plants have Materials codes created and MRP views extended but no MRP activation is ticked.
    Now, to have Cross plant planning MRP set, I have done necessary configurations, Scope of Planning, Special Procurement 40, and parallel processing is configured. All master datas are set properly. Tested few scenarios in IDES, working fine.
    If my understanding is clear, than I thin I need to run MDAB, activation of planning file and MDRE, Planning file Consistency Check,  because MRP will run in background?
    Is this correct or something more needs to be done ?? Please suggest
    Please also tell what is the use of MDRE t code.
    Best regards
    Shailesh

    Hello Shailesh
    MDAB (RMMDVM20) is at plant level, you need to create different variants as per your plants
    Create a variant for the new plants and then schedule a job for these variants.
    Check customizing transaction OMDU -> set up planning file
    entry and consistency check of planning file entries.
    Best Regards,
    R.Brahmankar

  • Vendor Open items upload- Withholding tax liable tick

    Hi all
    I have uploaded the Vendor open items. At the time of upload, Withholding tax was activated at the co code level. However, the liable to TDS tick was not checked. Now when I activate the liable tick and go to F-53 to pay the open items, I get an error of Items not activated due to Inconsistent Withholding tax. How do i resolve this error. I think there is a program which we need to execute to correct this. Can any1 help me with the program name?
    Thxs in advance
    Hrishi

    RFWT0010 is a programme to run for Open items adjustment.
    Let me know the result.
    thanks
    prabhakar

  • Tax code does not appear in any G/L account item Message FF753

    Dear all,
    During creating billing document, the system cannot post account document and display the follow error message:
    FF753 Tax code does not appear in any G/L account item.
    I tried to trace the program and found internal table t_bseg containing 3 entries:
    1: Customer a/c: without tax code
    2: GR clearing a/c: without tax code
    3: Output tax a/c: contain tax code
    Customer a/c and GR clearing a/c without tax code causes this error.
    Anyone know how to solve it?
    Thanks & B.Regards

    Hi,
    In FS00 for GR/IR A/c in Control data, in Tax Category choose all tax types allowed (*) and also tick posting without tax allowed and try again.
    Regards,
    Sadashivan

  • What does an error code "300 (LACQ_LICENSE_DENIED)" mean in the server?

    If the Adobe Access Reference Implementation License Server throws a 300 error code, the most likely issue is that the evaluation of the Adobe Access DRM policy failed during license issuance, and that the license server refused to issue a license.
    For example, if the policy specifies an end date that was in the past, the license server will see that the current time is beyond the validity date specified in the policy and reject the license request, recording an error code 300 in the Adobe Access license server's logfile.
    cheers,
    /Eric.

    I can't believe there is no answer to this question.
    after all day researching I've given up google and went back to basics
    OS X Server essentials book....
    and I found it ...
    So in Server.app left panel top... click on your server name and than Settings tab in the right one.
    make sure that Enable Apple push notifications are ticked
    Tha... tha... thats all folks

Maybe you are looking for

  • How to Restore a data table from a 'dmp' file in a database of oracle ?

    Hello, I want just to restore one table belonging in a database. I Have the dmp file which I must restore. Then I am asking if it's possible to restore only a table not all the databse ? If Yes, What I mut do to realize it ? I need really helps . Reg

  • How to implement the kind of table header

    JTable header and data is as follows: header1                    header2             header3                header4 header11 header12 header13 data1    data2    data3    data4               data5                  data6if you don't understand the exam

  • Purple line after installing...

    I just recently installed the new update to iTunes and Quicktime. As soon as my computer restarted a single purple vertical line of pixels appeared on my screen, at first it would disappear and appear at random, but now it is just stuck there. It is

  • Array initialize causing crash in simulator, only with certain versions set

    I am initializing an array in my viewDidLoad method: for (i=0; i<NUMBEROFIMAGES; i++) { [buttonsArray addObject:[UIButton buttonWithType:UIButtonTypeRoundedRect]]; [[buttonsArray objectAtIndex: i] setImage:tmpImage forState:UIControlStateNormal]; The

  • I want to buy a mac book pro to edit video on what computer and software do I get?

    I want to buy a mac book pro to edit video on.  What kind of specifications do I need to make sure Final Cut runs smootlhy. And do I need Final Cut studio or Final Cut X? The software is for beginners? Thanks