Plz help, How to blink the tab of a minimized JFrame?

How it is possible to blink the tab of a minimized window in a chat software, when message is received.
Karar

Once the JFrame is minimized and placed in the tray ,then its not in your control.
If you like to do anything ,then you have to make use of JNI.

Similar Messages

  • How to blink the tab of a minimized JFrame?

    Hi,
    I am creating a chat software. When a message comes for a specific jframe, how can we start that minimized jframe to blink. In this way, the user knows that message has arrived.
    Thanks
    Karar Haider

    you need to use the Frame.setIconImage() method to change the icon.
    in order to flash the icon use something like this (this is for a flashing JLabel, but you can easily change that to flash the icon):
    public class FlashLabel extends JLabel implements Runnable {
        public static final int NORMAL_COLOR = 0,
                                FLASH_COLOR = 1;
        private Color           colors[] = new Color[2];
        private int             well = 500;
        public FlashLabel(String text, int horizontalAlignment) {
            super(text, horizontalAlignment);
            colors[NORMAL_COLOR] = getBackground();
        public void setFlashColor(Color c) {
            colors[FLASH_COLOR] = c;
            setOpaque(true);
        public void startFlashing() {
            Thread t = new Thread(this);
            t.start();
        public void setTime(int t) { well = t; }
        public int getTime() { return well; }
        public void run() {
            int current = 0;
            try {
                while (true) {
                    setBackground(colors[current]);
                    current ^= 1;
                    Thread.currentThread().sleep(well);
            } catch (InterruptedException e) { return; }
    }you could also add a ComponentListener to your frame to get informed if and when your frames gets iconized in order to do the flashing only if the frame really is minimized.
    thomas

  • I deleted my download folder by accident  i waz moving it and it just deleted it and showed this smoke. i found it in my trash so put it on my dock then clicked on it and it shows preview?! plz help how do i get it back!!!

    i deleted my download folder by accident  i waz moving it and it just deleted it and showed this smoke. i found it in my trash so put it on my dock then clicked on it and it shows preview?! plz help how do i get it back!!!

    You need to restore the folder using the (Put back) selection (CTRL click).

  • How to disable the tab focusing for a JTextField object because those ...

    Hi All,
    Here I need some help. I want to disable the tab focusing( tab index) for a JTextField objects because those objects are set as setEditable(false). Also can u tell me about how to change the tab index orders for JTextFields.
    Many thanks,
    Vijaycanaan.

    I want to disable the tab focusing( tab index) for a JTextField objectsLook through the API and find methods with the word "focus" in the method name.
    Also can u tell me about how to change the tab index orders for JTextFields."How to Use the Focus Sub System":
    http://java.sun.com/docs/books/tutorial/uiswing/misc/focus.html

  • How to find the TAB details in the program - Urjent

    Hi All,
    There is a customized tab with details in a screen. How to see the customized tab details in the program. When I go and see in the status and program name, there are many includes written over there.
    I just want to go and see the details in the tab of the screen in the program. Please let me know how to see the TAB details in the program.
    Thanks,
    Ramana

    hi KCR,
             You have to place cursor on that tab and then you have to go to Status...There you can see the program name as well as screen number... You can go for screen number there you can see the flow logic and then you can confirm the screen after going in the layout......
             Just try and see.. and let me know..whether it works or not....
    rewards points if it helpful...
    Cheers,
    Sagun Desai....

  • Programming help - how to get the read-only state of PDF file is windows explorer preview is ON?

    Programming help - how to get the read-only state of PDF file is windows explorer preview is ON?
    I'm developing an application where a file is need to be saved as pdf. But, if there is already a pdf file with same name in the specified directory, I wish to overwrite it. And in the overwrite case, read-only files should not be overwritten. If the duplicate(old) file is opened in windows (Win7) explorer preview, it is write protected. So, it should not be overwritten. I tried to get the '
    FILE_ATTRIBUTE_READONLY' using MS API 'GetFileAttributes', but it didn't succeed. How Adobe marks the file as read-only for preview? Do I need to check some other attribute of the file?
    Thanks!

    Divya - I have done it in the past following these documents. Please read it and try it it will work.
    Please read it in the following order since both are a continuation documents for the same purpose (it also contains how to change colors of row dynamically but I didnt do that part I just did the read_only part as your requirement) 
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f0625002-596c-2b10-46af-91cb31b71393
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/d0155eb5-b6ce-2b10-3195-d9704982d69b?quicklink=index&overridelayout=true
    thanks!
    Jason PV

  • How to change the tab order in adf forms.

    Hi,
    I design a from in adf jsff page.In the form i have 4 components. These components are surrounded with a panel form layout. Now if i put number of columns as 2 in the property inspector of the PFL.
    Components appear as 2 fields in the first row and next two fields are in the second row.
    Now my doubt is, when I tab out 1 field to another field. The tab out is Horizontal. But I want the tab out to be vertical. Please suggest how to make the tab out feature as vertical.
    Thanking in advance,
    Sudipta

    I don't think we have something called tab index in adf like in javascript. This may not possible in adf.

  • How to change the tabbing order of an array of clusters?

    How to change the tabbing order of an array of clusters?  I have the cluster arranged in table in the front panel.   The cluster element goes horizontal and array element goes vertically.   When I press the tab key, the cursor goes to the next array element instead of the next cluster item (down instead across).
    Solved!
    Go to Solution.

    Broken Arrow wrote:
    Harold asked a perfectly reasonable and necessary question, but how is that a Solution ???
    I believe it is called the Socratic Method.
    Sea-Story time
    I had the privledge of working for Ron Davis when he managed the Allegheny District of DEC. He was an ex-WO4 (Highest possilbe rank for non-commisioned officer in US Navy, required act of congress to confirm).
    Ron never answered any question I ever saw presented to him. I remember a group of managers in a frenzy over some issue  running to him to to see what he thought. He asked them a series of questions that lead them to the solution and soon they were smiling and slapping each other on the back as they walked away.
    Who is that has a signature that read "it is the questions that guide us"?
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • Qtn: I have 10 standard elementary search helps in collective standard search help, how to deactivate the 10th elementary search help?

    Qtn: I have 10 standard elementary search helps in collective standard search help, how to deactivate the 10th elementary search help?

    Hello,
    this topic is still a problem for me, does anybody have an idea.
    Just to show what's my problem:
    Collective Search help KRED does include a SAP append-search help ASH_KRED which holds the elementary search helps KREDC, KREDE, KREDM, KREDW.
    The search helps KREDE, KREDM, KREDW should not be displayed, so I added another Serach-Help-Append ZKRED_CUST at the end of CSH KRED which holds these 3 SH's with the hidden flag.
    That works, the SH's are not shown anymore.
    I also added some other of the Original SAP SH's (e.g. KREDA) with the hidden flag and added changed copies of these (e.g ZKREDA) there to be shown instead.
    All this can be done modification free by appends.
    The folders of the elementary search helps are shown in the order as they are found included in the KRED SH and the append to this SH.
    This means that the not hidden Sh KREDC from ASH_KRED is shown before all the "custimized" ZKREDx -SH's. But we need this SH not very often, so that I want it to displayed al the right-most position of the folders of SH's or at the most down postition of the drop-down-selection of SH's.
    But I have not found any way to do this modification free.
    The only way to archive this is to modify ASH_KRED by setting the Hidden-Flag for KREDC and add this SH at the end of append-SH ZKRED_CUST again.
    But I want avoid this modification.
    So, is there any way to do this without modifing any of the original SAP SH's ?
    Helmut Fischer

  • Plz help me to answer the security question of apple id

    plz help me to answer the security questions of apple id coz i have a great problem that i couldn't buy the itunes music with out using security questions.

    You need to ask Apple to reset your security questions; this can be done by clicking here and picking a method, or if your country isn't listed, filling out and submitting this form.
    They wouldn't be security questions if they could be bypassed without Apple verifying your identity.
    (110908)

  • Plz help me,after instuling the last software update,the programs and games and everything i have download it can't open!

    plz help me,after instuling the last software update,the programs and games and everything i have download it can't open!

    Have you tried the basics from the manual?
    restart, reset, restore.
    iPod touch User Guide (For iOS 4.3 Software)

  • Plz help me to get the document UIT 250 in IS-U area...

    Hi all,
    Can any body plz help me to get the document UIT 250 in IS-U area...
    Appreciate ur help..
    Regards,
    Raja

    String line1="27-03-2006";
    SimpleDateFormat dfInput = new new SimpleDateFormat("EEE MMM d HH:mm:ss zzz yyyy");
    Date dateBegin = dfInput.parse(line1.trim()); By the way, I feel there is some mismatch...

  • E-Rec 6.0: How to increase the tabs on Candidate Profile

    Hello,
    I'm trying to find out how to increase the tabs that we see on Candidate Profile. In any clients, only 5 tabs are visible on the profile and for more, the candidate clicks on next to view other tabs and then submit the profile. I searched for all configuration tables and code but could not find any.
    I appreciate if anyone could share this info if they know how to do this.
    Points would be awarded .
    Thank you
    K.

    Hi,
    You can configure the tabs at Technical Settings->User interfaces->Setting for BSP->Flexibilization->Container Sequences.
    if you want to add one tab, you have to define one element for container sequence and then assign it to the container of candidate profile at Modify Container Sequence.
    Best Regards,
    Shaoming

  • Could any one help how to open the application without port number in servl

    Could any one help how to open the application without port number in servlets or jsp?

    Well, configure the application server/web container to listen to the default http port of 80, rather than 8080.
    I couldnt get where to specify 80 instead of 8080 so that it opens without numbers

  • How to remove the tabs such as "startnow", "Shoppings", "Games"?

    How to remove the tabs such as "startnow", "Shoppings", "Games"?

    When do you see those tabs?
    See these articles for some suggestions:
    *https://support.mozilla.com/kb/Firefox+has+just+updated+tab+shows+each+time+you+start+Firefox
    *https://support.mozilla.com/kb/How+to+set+the+home+page - Firefox supports multiple home pages separated by '|' symbols
    *http://kb.mozillazine.org/Preferences_not_saved
    See also:
    *http://kb.mozillazine.org/Session_Restore

Maybe you are looking for

  • FBL5N: Sales Order & Item columns

    Hi, The FBL5N report contains Sales Order and Item fields from the hidden columns.  However, there is no data when they are selected to be displayed. How are these fields populated? How can the SO and items be displayed in these columns? Thanks!

  • Save Attachment AS in Mail

    As a former PC user I'm trying to get used to my Mac. When I have an attachment I want to save I don't like having to click the Save button to have it go to my downloads folder then go to it and move it. I also don't prefer to open up the folder I wa

  • Module pool / Screen Prog is there any standard SAP functionality ?

    Hi I am creating a Module pool / Screen Prog. On this screen I have nearly 100 fileds , now I want to take print out of all the information shown on the screen for the same is there any standard SAP functionality ? Does SAP provides any standarar rea

  • I open by default .gif files with the Mail application.

    But every time I try to open one, it asks me to confirm because it says it was downloaded from the internet. How can I remove that check? Thanks, Roberto

  • How do I solve the embedded font issue that ibook proofer does not accept?

    I have several books I created in ID 6 and am now trying to prepare them to sell on iBookstore - and as others have noted ID creates a file for embedded fonts - I cannot find a way within ID to defeat this option when exporting to EPUB 3.0. Any help