Results 1 to 4 of 4

Thread: Need Some Help

  1. #1
    nikunj is offline Member
    Join Date
    Aug 2010
    Posts
    7
    Rep Power
    0

    Default Need Some Help

    Hello,
    I have some questions related to Swings. I hope everyone seen Microsoft new Calculator in Windows 7.
    Question 1) How to create a text field like MS Calc which display both result and equation entered?(Means its multiline not just single line but JTextField are only used for single line display or read.)


    Question 2) How to make my button glow when my cursor comes on button of Calculator like in MS calc?

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default

    JTextArea can give you multi-line capabilities. To make a button glow, you can set a roll-over icon that shows the glow. The API can show you how to do this.

  3. #3
    nikunj is offline Member
    Join Date
    Aug 2010
    Posts
    7
    Rep Power
    0

    Default

    But roll-over icon sets the icon. how will i glow it by using it. Please give a piece of code.

  4. #4
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default

    Quote Originally Posted by nikunj View Post
    But roll-over icon sets the icon.
    If your roll-over icon has the appearance of a glowing button, then that will work fine.

    how will i glow it by using it. Please give a piece of code.
    Demanding code of volunteers is somewhat impertinent and is frowned upon. We'll be more than happy to help you fix your own code, but if you need to demand code, then you should pay for it.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •