Monday 26 August 2013

How to popup message below Taskbar right-corner



// when message is received
JDialog d = new JDialog();
d.setSize(200,200);
d.setLocation(theXLocation, theYLocation);
d.add(new JLabel(message);
d.setVisible(true);
where the x and y location match the right corner

to get these locations, see the toolkit class, that will allow you to get the dimension of the screen

15 comments:

  1. How to implement slider window in javafx?

    ReplyDelete
    Replies
    1. Hiii Ananth
      Sliding a window is just a the Transition of a Node I guess. Are you trying to make the use of sliding window like of ANDROID/IOS system? If so then you can make use of KeyFrames, KeyValue and Animation or may be you can try some Transitions of JavaFX.
      Thanks

      Delete
  2. How to implement MDI in javafx.
    please reply

    ReplyDelete
    Replies
    1. I think it is not supported in javafx2..you may try fxtras.

      Delete
  3. This comment has been removed by the author.

    ReplyDelete
  4. This comment has been removed by a blog administrator.

    ReplyDelete
    Replies
    1. This comment has been removed by the author.

      Delete
    2. This comment has been removed by the author.

      Delete
    3. This comment has been removed by a blog administrator.

      Delete
  5. I Came to know that Datepicker is not available in javafx 2.0..Then how to implement it in javafx ?

    ReplyDelete
    Replies
    1. Hiii Ananth
      The JavaFX 8 API, which is bundled with JDK 8, contains a new UI control known as the DatePicker. This video demonstrates how to use NetBeans 7.4 beta to create a JavaFX application from scratch that contains a DatePicker. It also touches on using Java lambda expressions to simplify event handling. In addition, the new date/time API is discussed, and the JFXtras CalendarPicker is demonstrated.

      Note: (http://www.youtube.com/watch?v=wFDPrdtwwdc#t=184)In the video, my statement that "DatePicker extends ComboBox" should have been "DatePicker extends ComboBoxBase".

      Regards,

      Farhan Quadri

      Delete
  6. Hi Farhan,
    What are the various techniques for clearing the floats in css?

    ReplyDelete
  7. Hiii Ananth use this for clearing the float in css
    style="clear:both;"

    ReplyDelete