How to change button on button click in blackberry - user-interface

I want to change button on same button click how i can do that in blackberry. i used frame layout in android for overlay two field one after above so how i can change field on same click in blackberry?
like e.g i want to kept two buttons on same position when i click btn1 btn2 should display and when i click btn2 btn1 should display

Hay i done with replace method thanks for all of u for reply
i used
vfm.replace(oldField, newField);
to swap
Changing part of the screen in when button clicks in Blackberry //here is the link

Related

javafx : ui toggling for buton clicks

I have some button (JFoenix buttons) in my JavaFX program which is in left column below :
I want to look them like clicked once they are clicked and toggle if others are clicked. How do I do this?

how to show keypad below textfield in nativescript using modalStack?

If I click on the textfield then keypad is open above the that field in modalstack of nativescript.
that's why textfield cannot display when fill that textfield..
First pic will show you before the click on the textfield
Second pic will show after click on the textfield.
Try to use this plugin for textfield move on open the keypad. https://market.nativescript.org/plugins/nativescript-iqkeyboardmanager-ns

Change the button color by onclick event using Animations in Xamarin.forms

I want to change the color of the button when a user clicks on it,the click event is bindable i.e., implemented in ViewModel....when the user clicks on the button some kind of animation has to be done so that the user can know his selection
There is a possibility to this by binding the button color and in the method I can change the colours..But I want to achieve it using Animations(FadeTo,FadeIn) from ViewModel
Is It possible to do like this??
Thank You

Image changing while pressed

I have 2 images for a JComponent, one of an unpressed button, and one of a pressed button. When I click the button, I want the image to change for the pressed one, but only while I am clicking. Which means whenever I release the mouse button, the image goes back to the unepressed button.
How can I do this?
Using a JButton, set the standard and pressed icons.

How to make image visible in Blackberry when button is pressed?

I want to show image when button is pressed on main screen in blackberry, How can I do this?
Simply I have a button, when I do press it, the data is loading from xml, and I want to show that data is loading, how can I do this, I have image(having text on it).
Help!
You can add that image in a vertical field manageer and add the vertical field manager to the screen on the button click. that's it..

Resources