Component visibility in the screen,

Hi
I'm facing a problem in the visibility of the component.
My need is to identify the component is in visibility or not.
ex: In a panel, i'm trying to change the location of the label , at a stage the label gets moved to end and the label is not in the screen in display.
How could i know the label is currently showing in view or not..
is there method to identify the label in view or not ??
regards
rathinam.

Hi thanks for your reply.
here i pasted the sample program.
let me know the solutions.
For your information, i'm creating a stock ticker component.
package table;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import java.util.List;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
public class TickerTesting extends JFrame {
JFrame fTickerFrame;
JPanel fTtickerpanel;
List fArray;
public TickerTesting() {
fTickerFrame = new JFrame( "Ticker" );
fTickerFrame.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
fTickerFrame.setSize( new Dimension( 120, 40 ) );
JPanel panel = new JPanel();
panel.add( new Ticker( ) );
fTickerFrame.getContentPane().add( panel, BorderLayout.CENTER );
fTickerFrame.pack();
fTickerFrame.setVisible( true );
private class Ticker extends JPanel { // private JPanel panel;
private boolean paused;
public Ticker() {
MouseListener listener = new MouseAdapter() {
public void mouseEntered(MouseEvent event) {
paused = true;
public void mouseExited(MouseEvent event) {
paused = false;
addMouseListener( listener );
fTtickerpanel = new JPanel();
fTtickerpanel.addMouseListener( listener );
fTtickerpanel.setPreferredSize(new Dimension(500,50));
final TickerLabel label1 = new TickerLabel();
label1.setText("1     2     3     4     5     6     7     8     9");
fTtickerpanel.add( label1 );
label1.setBackground(Color.RED);
label1.setOpaque(true);
fTtickerpanel.setLocation( 0, 0 );
fTtickerpanel.setBackground(Color.WHITE);
fTtickerpanel.setOpaque(true);
add( fTtickerpanel );
paused = false;
new Thread( new Runnable() {
public void run() {
while ( true ) {
if ( !paused ) {
     int x = label1.getX() - 1;
if ( x < -label1.getWidth() ) {
x = getWidth();
label1.setLocation( x, 0 );
try {
Thread.sleep( 20 );
} catch ( InterruptedException exception ) {
exception.printStackTrace();
} ).start();
public Dimension getPreferredSize() {
Dimension preferredSizeOfPanel = fTtickerpanel.getPreferredSize();
return new Dimension( preferredSizeOfPanel.width / 2,
preferredSizeOfPanel.height );
class TickerLabel extends JLabel {
public TickerLabel() {
setForeground( Color.BLUE );
public String toString() {
return getText();
public static void main(String[] args) {
javax.swing.SwingUtilities.invokeLater( new Runnable() {
public void run() {
new TickerTesting();
}

Similar Messages

  • I'm using a Kodak M532 camera with a 2 gigabyte SD card. I just took 30 photos, all of which are visible on the screen. When I attempted to import them the last 15 were said to be in an unreadable format (no. 1117 on). Is there a fix?

    I''m using a Kodak M532 camera with a 2 gigabyte SD card. I recently took 30 photos, all of which are visible on the camera's screen. When I attempted to import them the last 15 were said to be in an unreadable format (no. 1117 on). I deleted some 200 photos from the card, but photos that I then took, though also visible on the camera's screen, were also said to be in an unreadable format. Is there a fix?

    There is an ongoing issue with Kodak cameras and 10.6. Workaround: Reformat the card with the camera and use a USB Card Reader.
    Regards
    TD

  • Move the rectangle to an area no visible of the screen with a scrollbar

    hi! I have a rectangle and a scrollbar on the scene. I want when you drag the rectangle to the final of the right side of the screen visible, the scrollbar is updated and made visible the right side of the screen. What variables must I put and how, in the scrollbar and in the rectangle?

    The large "X" means that the image is still marked as hidden, but as you see the hidden photos, you now have turned on "hidden Photos" in the "View" menu of the main menu bar.
    To remove the "Hidden" mark, select the image in the event and use the command "Photos > Unhide Photo ⌘L"
    Regards
    Léonie

  • TS1382 My I-Pod will not accept a charge.  The battery icon I normally see while charging is not visible on the screen.  The cord works fine to charge my I-Pad.

    My I-Pod will not accept a charge.  The battery icon I normally see while charging is not visible.  The cord works when charging my I-Pad.  Any ideas?

    Please find "System Information" in this folder path---Applications > Utilities---and launch it. When it opens, find "Power" in the left-hand contents pane and click it to get something like this in teh main pane:
    Copy everything in the "Battery Information" and copy/paste it here. The number values in that report may help us diagnose what is happening.
    Also, did you buy this battery directly from Apple or from another source. There are an increasing number of reports showing up that suggests some counterfeit batteries being sold.

  • HT1688 My iPhone 5 has this little red dot of light that appears through the screen. It's only visible when the screen is dark. Does anyone know what it is?

    When there is a black background on the screen, a tiny red dot appears and glows through my iPhone screen.

    Nope.

  • When ever I print my bank staement from the website it never prints the whole statement , only the part that is visible on the screen . I am using an imac G5 with OS 10.4 and have always had this one problem with Fire fox. Thanks

    I think it's the same for other websites as well. That is, that only the visible part of the monitor will print instead of the whole window. I am using the latest upgraded fire fox browser that a non intell I mac G5 can use which is 3.6.8 upgrades above this are not possible

    OK - to answer my own question, Apple recommend 8.2.1, but you can install 9.1.1 and it will run on a G3. Very slowly. Looks like this is the only option. Get it here: http://support.apple.com/kb/DL1036. You need OSX 10.4.11 or later though....

  • Text in Tag doesn't match what's Visible on the screen (Acrobat 8 Pro)

    I have been exporting PDFs from InDesign CS3 as tagged Acrobat 8 compatible PDFs. When bookmarking the PDF, I generally highlight the heading I want to bookmark and do a ctrl-B to bookmark it which copies the text and applies it as the bookmark text.
    One thing I've been noticing is that sometimes the visible text is not the text which actually resides in the tag information (Created by ID CS3 - and it's the tag information that gets copied when one highlights and copies the text)
    For example my heading read "Human Exposure" and when I make a bookmark from the highlighted heading (or copy and paste it into another application) it reads "Humanan Exposure" And if you look at the tag text, "Humanan" is what's reported. The original document had it right and the visible Acrobat document has it right
    I have no clue how this is happening. It's either an InDesign CS3 problem or a Distiller problem
    Has anybody else run across this problem?

    O.K., I understand what you're getting at now...
    No, it is a bold font (Times New Roman Bold).
    I'll look again to make sure none of the line has also been bolded.
    I'm starting to think that tagging is a little buggy to begin with, because the actual header reads as follows (it's two lines because it's in a double columned format):
    Production, Use,
    and Human Exposure
    And if I delete the tag and re-tag it as text, copying the whole selection and pasting it (or bookmarking it) gives "P P P P P P P P"

  • Hiding and then making select-options visible on the selection-screen

    I've created a selection screen. On this i've got a field (pr_inpt) depending on whose value i have to display the rest select-options viz. (so_c1, so_n1, so_d1, so_t1) say ,
    1.)if (pr_inpt) contains value 'A' then display (so_c1 & so_d1)
    2.)if (pr_inpt) contains value 'B' then display (so_n1, so_d1 & so_t1)
    To achieve it, in the initialization event, i looped at the screen and for all (so_c1, so_n1, so_d1, so_t1) i made screen-active = '0'. Due to this my objective to hide fields in the beginning is achieved.
    Next when user is entering value into (pr_inpt), i am making screen-active = '1' at selection-screen output event, for those relevant select-options (say if A, then made active for so_c1 & so_d1) but my problem is that it is making all select-options (so_c1, so_n1, so_d1, so_t1) visible on the screen which i don't want.
    How can i achieve this, also is it possible to change the label of the select-options while displaying.
    Plz help.

    hi just copy and paste following code into ur abap editor and see weather this logic helps u ????
    REPORT Z_HRA1.
    tables: pa0000, pa0001.
    parameters: p_chk1 as checkbox user-command rusr,
    p_chk2 as checkbox user-command rusr,
    p_chk3 as checkbox user-command rusr,
    p_chk4 as checkbox user-command rusr,
    p_chk5 as checkbox user-command rusr.
    selection-screen: begin of block blk1 with frame.
    select-options: s_pernr for pa0000-pernr modif id ABC no-extension no intervals,
    s_stat2 for pa0000-stat2 modif id DEF,
    s_werks for pa0001-werks modif id GHI,
    s_persg for pa0001-persg modif id JKL,
    s_persk for pa0001-persk modif id MNO.
    selection-screen: end of block blk1.
    AT SELECTION-SCREEN output.
    LOOP AT SCREEN.
    IF SCREEN-GROUP1 = 'ABC'.
    IF p_chk1 = 'X'.
    SCREEN-ACTIVE = 1.
    ELSE.
    SCREEN-ACTIVE = 0.
    ENDIF.
    MODIFY SCREEN.
    ENDIF.
    IF SCREEN-GROUP1 = 'DEF'.
    IF p_chk2 = 'X'.
    SCREEN-ACTIVE = 1.
    ELSE.
    SCREEN-ACTIVE = 0.
    ENDIF.
    MODIFY SCREEN.
    ENDIF.
    IF SCREEN-GROUP1 = 'GHI'.
    IF p_chk3 = 'X'.
    SCREEN-ACTIVE = 1.
    ELSE.
    SCREEN-ACTIVE = 0.
    ENDIF.
    MODIFY SCREEN.
    ENDIF.
    IF SCREEN-GROUP1 = 'JKL'.
    IF p_chk4 = 'X'.
    SCREEN-ACTIVE = 1.
    ELSE.
    SCREEN-ACTIVE = 0.
    ENDIF.
    MODIFY SCREEN.
    ENDIF.
    IF SCREEN-GROUP1 = 'MNO'.
    IF p_chk5 = 'X'.
    SCREEN-ACTIVE = 1.
    ELSE.
    SCREEN-ACTIVE = 0.
    ENDIF.
    MODIFY SCREEN.
    ENDIF.
    ENDLOOP.
    Regards
    Gagan

  • I updated win7 and now I cant see ff. I have reinstalled it 5 times now. It shows it is running in task manager but it is not visible on the desk top.

    I installed win7 ultimate and then ff. ff worked fine until I installed win7 service pack 1 and all the other updates it recommended. I click to open ff and nothing happens. I look in task manager and it shows it is running. It is not visible on the screen or in the task bar. I have reinstalled a fresh download of it 5 times. I even tried the beta version but still the same problem. I can use explorer and chrome ok but not ff.

    The "System Tray" is located at the very bottom right of your screen and is a list of most/all running applications that will show in this list.
    For your SysFader issue, this "may" be the problem:
    1 Find the "My Computer" desktop icon and right-click it. A pull-down menu will appear. Select "Properties."
    2 Click on the "Advanced" tab. This will load a new page of options.
    3 Select the "Visual Effects" tab at the top of the window and deselect "Animate Windows when minimizing and maximizing," "Fade or slide menus into view," "Fade or slide Tool Tips into view" and "Fade out Menu items after checking."
    4 Click "OK." This will remove most if not all of the Sysfader effects, at the same time correcting related errors that used to come up during opening a new file or program.

  • SAP Cloud SDK : Make Display mode when open Embed Component in Account TI screen

    Hi Experts,
    I have created the custom business object and assign some fields into it.
    I have also assign some custom action into this custom business object. After that i have created the Embed component and and configured into Account_TI screen and its display data.
    Now when I open Any Account and go to that newly embed component in silverlight 2 options comes ( Save and Cancel ) to remove this options or to make display mode by default I have followed the below steps:
    1) Open Embed Component into UI designer.
    2) Go to Properties Window.
    3) In the top from the dropdown list select embed component.
    4) In the Property go to Configuration --> WorkProtectRelevant equal to false.
    5) After save and activate and check but still getting ( Save and Cancel ) option in embed component
    Is there any other solution or any other settings require to remove this ( Save and Cancel ) option.
    Regards,
    Mithun

    Hi Brad and Sumeet,
    Thanks for you reply on this post.
    In my requirement we do not want to save record anymore.
    Also my scenario : We have consuming the on-premise web service into c4c we have created the custom business object ( Not Screen) and based on this custom business object we have created the embed component and  design the screen to embed with Account_TI.
    We have Read the Account ID from Account _TI screen and assign to embed component element Alternative key AccountID.
    We have created of configured the embed component Inport to Read and Assign the Account ID as below:
    My Custom business object :
    businessobject ECC_recordBO {
      [AlternativeKey] [Label("Customer Number")] element AccountID : BusinessPartnerInternalID;
      element CtLimit : LANGUAGEINDEPENDENT_LONG_Text;
      element AvailCLimit : LANGUAGEINDEPENDENT_LONG_Text;
      element AccCurrency : CurrencyCode;
      action ViewAcc;
    My embed component InPort event :
    ReadEvent
    In ReadBOEvent I have add below actions:
    BO Operation
    Condition
    And under the condition I have use the below actions :
    To create BOOperation
    Second DataOperation as below :
    Assign AccountID from Account_TI to AccountID of embed component.
    Also once the user come into the Account_TI screen and go to embed component first its in display mode and when he click on any action under embed component its in edit mode but we do not want to save data anymore.
    Regards,
    Mithun

  • How to Remove Jar File name from the screen of nokia 40 series

    hi
    i have the problem with running midlet.
    the jar file jame is always visible on the screen, how to remove that ?

    >
    Prasanna Kumar wrote:
    > Hi ALL
    >
    > I am using  file adapter and I what to create file name dynamically by acesssing PO number and time stamp from the payload using variable substution.
    > But the problem is I am getting ":" in time stamp field value and it is not acceptable for file name .
    > So could you please tell me a way that I can remove this ":" from that particular field value and create the file name dynamically.
    >
    > Note 1)Add Time stamp option will not help me as we require a time stamp of particular zone.
    > 2) Dynamic Configuration code is also not use full as I am using 1:n file creation
    does the time stamp with the ":" a part of your output file?
    else use a replaceAll function in your mapping and replace the : with empty string then use the value in the variable substitution
    Another option is use the normal BPM for 1: N message flow. The use a simple java mapping that will introduce a dynamic configuration and you can create the file name as you want. the java mapping will be used in the flow of messages from BPM to target system.
    ref: /people/shabarish.vijayakumar/blog/2009/03/26/dynamic-configuration-vs-variable-substitution--the-ultimate-battle-for-the-file-name

  • Selecting all rows currently visible in the table

    Hi ,
        we need to add the "Select all" functionality for the a table used in one of the screens. The examples I have found for this would select all the elements of the node bound to the table. However, we need to select only those elements which are presently visible on the screen, which would change if the user presses the previous or next button.
    Please guide me on how it can be possibly done .
    Edited by: Dhruwat Bhagat on Dec 28, 2007 11:45 AM

    Hi Dhruawat,
                        Modify the example functionality SelectAll like this:
    Create visRow context attribute of type int. Bind this to firstVisibleRow property of table.
    Check visibleRowCount value (default is 5)
    //for loop on the table node
    for(int i=visRow ;i<(visRow + visibleRowCount value );i++)
    select the element;
    // end of for loop
    regards,
    Siva

  • How to Aviod  the appearance of the MIDlet Name From The Screen

    hi
    I am working with Mobile application,
    while running the application the MIDlet file name is always visible on the screen. So that the image moved down and partly hiden.
    how to aviod this problem

    Hi Radhika,
      I tried doing that with a couple of invoices but I dont see the Long text printed on the check after the automatic payment run. Can you please suggest me if I am missing on anything. I inserted a long text and a '*" before this to have it printed on the check which does not seem to work. Can you please suggest me alternative solution.
       Thanks in advance.
    Ramya

  • How to Remove the MIDlet Name on The Screen of Mobile, in application

    hi
    I am working with Mobile application,
    while running the application the MIDlet file name is always visible on the screen. So that the image moved down and partly hiden.
    how to aviod this problem

    If you have an email account set up on your BlackBerry, you're going to receive notifications of new emails in the Notifications Bar; there's no two ways about it.  You're able to selectively not receive LED notifications or audio notifications or even vibrations notifications but as long as the email account is active on your phone, you can't get around the Notifications Bar ones.
    Cheers.  
    - If my response has helped you, please click "Options" beside my post and mark it as solved. Clicking the "thumbs up" icon near the bottom of my response would also be appreciated.

  • My iPad2 screen has 3 blocks of lines across the screen

    Hi,
    Has anyone else encountered this? The blocks of lines appear to be aligned with the spaces between the smart cover and go vertically across my screen. I am using a ZAGG invisishield cover and have wiped it clean. It's most visible when the screen is white.

    Simon-
    My first thought is that the invisishield cover has reacted to the pressure of your smart cover.  In other words, the lines may not be in the iPad, but between the invisishield and the iPad.
    I'm not familiar with the invisishield.  If it can be removed without ruining it, you might see if that makes the lines go away.
    If the lines are actually in the iPad, it may be a defect.  If convenient, show it to an Apple Store Genius.  If not, look for an Apple Authorized Repair Center near you.
    Fred

Maybe you are looking for

  • Where to find WLCServer3.5

    Where to find WLCServer3.5

  • How to fill an oracle CLOB with a XML document using Unicode UTF8

    Hi, I'm working with C# and oracle database v8.1.7 (release 3), and i'm having some problems to fill correctly an oracle CLOB parameter with XML document using UTF8 encoding. It works fine with "Encoding.Unicode" but not with "Encoding.UTF8". The pro

  • How to transfer comments with songs

    How do I transfer my music from iTunes to a flash drive in the order I've already sorted them? The transfer changes their names by adding numbers to their front then auto sorts by name. I added numeric sequence to the comments hoping I could use the

  • Transaction posting user and time

    how do we get a transaction's posting time and the user who posted it?

  • Unable to make calls to India

    I have recharged unlimited premium pack for one month for $14 plus. However I am unable to make any calls to India and throwing an error message as insufficient credit. It's annoying.. I feel it was useless of paying 14 bucks as I can't make calls to