How do I show and hide a popup message by the program
Hi,
I've the following problem. Sometime the program must wait to open a seriel port. On slow machines, this could take some seconds.
During this time I'll display a popup message with the message "please, be patient....".
After the port is open, the message should be hide by the program.
JOptionPane could be good, but without a "OK" button. Everthing should be controlled by the program.
I would implement the Runnable interface for the showing of the popup message.
Any ideas? Thanks in advance.
Hans
You can use a JDialog... this will act like JOptionPane, but you can put on it whatever components you like... so no OK button!
For example:
JDialog dialog = new JDialog(parentFrame);
dialog.add(new JLabel("Please be patient", BorderLayout.CENTER);
dialog.pack();
dialog.setLocation(100,100);
dialog.setVisible(true);
dialog.setVisible(false);
Similar Messages
-
Hello,
I've made a user interface with a little grafic description.
That description should change depending on user actions, e.g. if the user switches a button, some lines should disappear and some other lines should appear.
I thought some decorations could be shown and hidden via something like a property node, but that is not possible. Images can also not be hidden during execution of the program.
Is there any posibility to change a grafic user interface?
Johannes
LV 7.1
Greetings Johannes
Using LabVIEW 7.1 and 2009 recently
Attachments:
LV_Grafic.JPG 21 KBThanks to Tim for drawing what I suggested as option while I had some real work to do.
There is a trick of overcoming the index problem that was presented/devloped in the forum in the last month's:
You can place the decoration inside a cluster, so you can use the lable of the cluster to adress the decoration you want. The data type of the cluster doesn't mather for this, so you will hide the control/indicator. And you colour the cluster transparent (hint: right click with the coloring tool and use space to toggle).
Felix
www.aescusoft.de
My latest community nugget on producer/consumer design
My current blog: A journey through uml -
How do I show and/or update image info in the Grid view?
Somehow, all the info that was showing in my grid view, in Lightroom 5.6, disappeared. How do I view info for each grid image, on the grid and how do I update or change what info is viewable?
Ctrl/Cmd-J
-
Hi All,
I have the Requirement like :
I have two iframes side by side in a page, and two buttons show and hide,
once i click hide button second iframe should disappear and first one should be increase in size to fit whole window. and once i click show first and second should be 50/50 in the page
for this i followed below steps
1) created page.
2) created two report region (No Template)
3) In one region source i called iframe like
TABLE>
<TR>
<td>
<IFRAME SRC="http://Localhost:7777/pls/apex/f?p=&APP_ID.:&P104_INTERFACE.:&SESSION." WIDTH=&P104_WIDTH. HEIGHT=540 scrolling="auto" frameborder="1"></IFRAME>
</td>
</tr>
</table>
4) in second region
TABLE>
<TR>
<td>
<IFRAME SRC="www.google.com ; HEIGHT=540 scrolling="auto" frameborder="1"></IFRAME>
</td>
</tr>
</table>
6)conditionally showing the region with the help of SHOW and HIDE BUTTON
7)and also on Show and hide button i am setting the value of P104_WIDTH . So the size will vary with conditional display?
NOW MY QUESTION IS:
once i click hide button THE CONTENTS(item VALUES) OF THE FIRST FRAME ARE REFRESHED, DUE THAT ALL ENTERED DATA WIL DISAPPEAR SO HOW TO AVOID IT , without refreshing the frist frame i need to set the P104_width value so it interm width will set in the iframe region??????
Thanks & Regards
Nagaraj B KI had another idea that I am pursuing. I am looking into extending the current renderer CommandNavigationRenderer and will render another goLink just after the current goLink that will execute a close action. I was able to re-direct the rendering by added an override render-kit block in my current faces-config.xml file.
<render-kit>
<renderer>
<component-family>org.apache.myfaces.trinidad.Command</component-family>
<renderer-type>oracle.adf.rich.NavigationItem</renderer-type>
<renderer-class>com.riscs.ui.backing.jsp.components.ClosableCommandNavigationItemRenderer</renderer-class>
</renderer>
</render-kit>
If this works I am planning on extending the commandNavigationItem by creating a ClosableCommandNavigation tag and add a "closeAction" tag that will determine if a close item should render.
Preliminary work looks promising. I will update if I make progress...please let me know if I am crazy.
Thanks. -
Show and hide Lov icons and Date Picker image on conditional?
How to show and hide Lov icons and Date Picker image on conditional?
Why do you just want to make the icons conditional? Shouldn't the field also be conditional?
Patrick
My APEX Blog: http://inside-apex.blogspot.com
The ApexLib Framework: http://apexlib.sourceforge.net
The APEX Builder Plugin: http://sourceforge.net/projects/apexplugin/ -
How to get gui_download and gui_upload with popup filename?
how to get gui_download and gui_upload with popup filename?
Here is a short example.
report zrich_0003 .
data: ifiletab type filetable.
data: xfiletab like line of ifiletab.
data: xstring type string.
data: rc type i.
data: itab type table of string.
data: xtab type string.
start-of-selection.
call method cl_gui_frontend_services=>file_open_dialog
changing
file_table = ifiletab
rc = rc.
read table ifiletab into xfiletab index 1.
xstring = xfiletab-filename.
check not xstring is initial.
call method cl_gui_frontend_services=>gui_upload
exporting
filename = xstring
changing
data_tab = itab.
loop at itab into xtab.
write:/ xtab.
endloop.
Regards,
Rich Heilman -
I have a rather large JTable with a lot of columns that are updated once in a while.
Is there an easy way to show and hide columns, so that I don't have to keep track on which a shown and hide when I use setValueAt()...?JTable does the conversion between the column indexes of the view and the model.
You should be able to add remove columns using addColumn and removeColumn methods. and in the TableColumn class you can specify the coulmn in the model that the TableColumn refers to. -
Error in my show and hide button prg
Hello Frnds,
With this link tutorial iam doing now but error raised , and tried my best plz check the tutorial and solve my prb
Method ONACTIONSHOW_HIDE
*THIS IS CODE FOR SHOW AND HIDE THE INPUT FIED BUT GETTING ERROR IS
**set_attribute_property doesnot exit similar ly get_attribute_property and set attribute is there like that getting error for this code
. DATA lo_nd_radio_node1 TYPE REF TO if_wd_context_node.
DATA lo_el_radio_node1 TYPE REF TO if_wd_context_element.
DATA lw_index TYPE I.
DATA lo_el_radio_node1_1 TYPE ref to if_wd_context_element.
navigate from <CONTEXT> to <RADIO_NODE1> via lead selection
lo_nd_radio_node1 = wd_context->get_child_node( name = wd_this->wdctx_radio_node1 ).* call method get lead selection index to get index
CALL METHOD lo_nd_radio_node1->get_lead_selection_index
receiving
index = lw_index. lo_el_radio_node1_1 = wd_context->get_element( ). If lw_index = 1. * call method set attribute property and pass value as 'X' to show
call method lo_el_radio_node1_1->set_attribute_property
exporting
attribute_name = 'FIRST_NAME_1'
property = 1
value = 'X'.
call method set attribute property and pass value as 'X' to show
call method lo_el_radio_node1_1->set_attribute_property
exporting
attribute_name = 'LAST_NAME_1'
property = 1
value = 'X'. Else. call method set attribute property and pass value as SPACE to HIDE*
call method lo_el_radio_node1_1->set_attribute_property
exporting
attribute_name = 'FIRST_NAME_1'
property = 1
value = space.* call method set attribute property and pass value as SPACE to HIDE
call method lo_el_radio_node1_1->set_attribute_property
exporting
attribute_name = 'LAST_NAME_1'
property = 1
value = space. EndifHi Ananth,
I tried the same code from that tutorial,its working fine.
once again check the name of the nodes and the elements.
you can try another way also to show and hide input fields.
create one attibute of type WDY_BOOLEAN and bind this attribute to the visible property of the input fields.
for example
attibute name = 'visible ' : type = wdy_boolean :default value = X
onaction of the radio button place the following code.it really works
DATA lo_el_context TYPE REF TO if_wd_context_element.
DATA ls_context TYPE wd_this->element_context.
DATA lv_visible TYPE wd_this->element_context-visible.
DATA lo_nd_radio_node1 TYPE REF TO if_wd_context_node.
DATA lo_el_radio_node1 TYPE REF TO if_wd_context_element.
DATA lw_index TYPE i.
DATA lo_el_radio_node1_1 TYPE REF TO if_wd_context_element.
lo_nd_radio_node1 = wd_context->get_child_node( name = wd_this->wdctx_radio_node1 ).
lo_el_context = wd_context->get_element( ).
CALL METHOD lo_nd_radio_node1->get_lead_selection_index
RECEIVING
index = lw_index.
lo_el_radio_node1_1 = wd_context->get_element( ).
IF lw_index = 1.
lo_el_context->set_attribute(
name = `VISIBLE`
value = 'X' ).
ELSE.
lo_el_context->set_attribute(
name = `VISIBLE`
value = ' ' ).
ENDIF.
Thanks,
krishna -
SetVisible against show and hide
Hello, making some practises I have observed that setVisible method doesn't just makes visible or not, it affects me when I change location of components I have played with setVisible, but when I use deprecated methods hide and show I haven't that problem.
What else makes setVisible than make visible or not?Hello, the way I see it, setVisible is just a nicer way of setting visibility than show() and hide(). Anyway, the way setVisible is implemented in the Component class is :
public void setVisible(boolean b) {
show(b);
}So I don't believe you should be experiencing any difference between show() and setVisible(). As to the change in positions of components, you might find the actual implementation useful:
public void show(boolean b) {
if (b) {
show();
} else {
hide();
public void show() {
if (!visible) {
synchronized (getTreeLock()) {
visible = true;
ComponentPeer peer = this.peer;
if (peer != null) {
peer.show();
createHierarchyEvents(HierarchyEvent.HIERARCHY_CHANGED,
this, parent,
HierarchyEvent.SHOWING_CHANGED,
Toolkit.enabledOnToolkit(AWTEvent.HIERARCHY_EVENT_MASK));
if (peer instanceof LightweightPeer) {
repaint();
updateCursorImmediately();
if (componentListener != null ||
(eventMask & AWTEvent.COMPONENT_EVENT_MASK) != 0 ||
Toolkit.enabledOnToolkit(AWTEvent.COMPONENT_EVENT_MASK)) {
ComponentEvent e = new ComponentEvent(this,
ComponentEvent.COMPONENT_SHOWN);
Toolkit.getEventQueue().postEvent(e);
Container parent = this.parent;
if (parent != null) {
parent.invalidate();
}I left out the hide() code, since it is quite similar. Anyway, if you are interested in this code you can always look it up - it's avaliable.
Hope this helped, laginimaineb. -
How can I display and hide toolbar?
hello!
Who can tell me, how I can display and hide ERP's toolbar?
thanksit is the default i think you cannot hide the application toolbar.
-
How do i show a movie from my mac to the television?
how do i show a movie from my mac to the television?
Hello there, kojak100.
The following Knowledge Base article goes over how to sync content to your iPad:
iOS: How to transfer or sync content to your computer
http://support.apple.com/kb/ht1296
This section may prove useful:
USB syncing
Open iTunes.
Connect the iOS device to your computer using the included USB cable and click the device button in the upper right corner. (If you are viewing the iTunes Store, click the Library button in the upper right corner. The device button will then be visible.) Some tabs may not appear if you do not have corresponding content in your library. For example if you do not have any podcasts in your library, the corresponding Podcasts tab will not appear.
You can configure the different content types in each tab. For example, movies under the Movies tab.
To sync, click Apply, in the lower-right corner of the screen.
Thanks for reaching out to Apple Support Communities.
Cheers,
Pedro. -
How do you show what time an sms message was recieved or sent?
how do you show what time an sms message was recieved or sent?
Hi,
I had a simmilar requirement once, i also had to display some meaningful message with the busy mode icon, but i guess that comes directly from the WD Framework and is not possible to be changed. Refer the following thread, i raised that time.
Web Dynpro ABAP
Dont have much idea if somethig exists in portal for this.
Regards,
Runal -
I am trying to install CS3 on Windows 8 and keep getting a message saying "the serial number I entered is not valid please enter it again" Does anyone know how to install successfully on Windows 8?
CS3 is unsupported under Windows 8. That said, you'll need to contact Adobe
directly for serial number issues. -
How can I login and retrieve my user file from the trash?
I was trying to find out where all my HD had gone, which a did using ‘What Size’.
I found what looked like an old backup file so I put the file in the trash.
It turns out that the file was my user file. So now I can’t login to as the user.
How can I login and retrieve my user file from the trash?The Digital Editions forum is here, in case this is what you are talking about:
http://forums.adobe.com/community/adobe_digital_editions
If you are not, I apologize for the misunderstanding. -
I used time machine to restore on a formatted MAC. Now the HDD space has reduced by 100GB but I cannot see any of the files. How do I find and delete those 100GB data from the HDD?
dglenn9000 wrote:
I created a new user account just to see if it was my user Library or if there was something wrong with my system. And the new user account is doing most of the same things so I will need to do a full restore anyway.
Not necessarily. I'd suggest downloading and installing the "combo" update. That's a combination (thus the clever name) of all the updates to Leopard since it was first released, so installing it should fix anything that's gone wrong since then, such as with one of the normal "point" updates. Info and download available at: http://support.apple.com/downloads/MacOS_X_10_5_8_ComboUpdate Be sure to do a +Repair Permissions+ via Disk Utility (in your Applications/Utilities folder) afterwards.
Maybe you are looking for
-
I've been in an administrative job at my university, in which I needed to be able to access lots of past email conversations. I ended up saving *everything* religiously, by copying each email or conversation into an "On My Mac" folder on either my h
-
Exporting Report Output to Doc, RTF or other
I have designed a few reports using Developer 2000 and I was wondering if if was possible to export the output of these reports to other file formats such as Word's Doc or RTF formats .... while the tool is powerfull it would be nice to let people us
-
Multiple retries for automatic, tried re-typing, won't display last setup dialogue either way.
-
HT4623 I prefer to stay with iOS 6- however
I cannot... I Must upgrade to iOS 7 to remain secure ? How can Apple be so insensitive...or lazy I am comfortable with the look and feel of iOS 6...iPhone 5 I love my 10 year old Mercedes Benz and don't want a new one... Please fix iOS 6 ... Don't be
-
Dimension position with the POV in Smartview 11.1.2.3
Morning In the previous version of the smartview, I was able to arrange the dimension as follow : Americas Jan Sales 100 Now each time I do the same the smartview automaticly moves it to :