dialog

Java Swing GUI - How to open multiple dialog boxes, one after another?

China☆狼群 提交于 2019-12-12 04:26:03
问题 I am building an application which helps a user navigate a website by giving step by step instructions. The instructions are given in the form of dialog boxes. I am using Java Swing to create the GUI dialog boxes. Here is the structure of my code : MainClass { //some selenium code to access the website 'Google.com'..... InstructionDialog frame1 = new InstructionDialog("Enter 'Hello' in search field"); frame1.setVisible(true); InstructionDialog frame2 = new InstructionDialog("Click 'Search'

Dynamically add table row in table and display it in dialog box in android

我是研究僧i 提交于 2019-12-12 04:13:54
问题 I am able to create a dialog box and show a table in it, but i wanted to add some more rows to it dynamically. These rows should have textviews in it (say 3 in a row). Please direct me on this. Thanks in advance My code, which is not working, is as follows: struct3x5 is layout file with table layout and table of 3x5 dimension 1). On click event code button.setOnClickListener(new OnClickListener() { public void onClick(View arg0) { final String NAMESPACE = "http://tempuri.org/"; final String

Setup Project: user enters a value then store it in a text file or database

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-12 03:53:07
问题 As the title said, how can i do that? I've search some tuts on google, but only for creating simple setup projects.sample When the user enters 'something', that value will be stored in a textfile or database after installation and is located in the application location (ProgramFiles). thank you ^_^ 回答1: That dialog looks like a TextBoxes dialog, and that dialog has uppercase property names for the content. If it's TextBoxes(A) the property name is probably EDITA1 so you use it in the format

Communicating my Dialog with Main Activity

牧云@^-^@ 提交于 2019-12-12 03:25:53
问题 I have read a lot of tutorials on how to communicate a FragmentDialog with the activity but I seem be unable to adapt them to my project. What I want to do is simple, when the user clicks the positive Button on my FragmentDialog I want to call a method in main activity. A simple idea, but execution is killing me. My main Activity uses tabbed browsing, which I thing is messing the hole thing up. This is a short version of my main activity. public class MainActivity extends ActionBarActivity

C++ Starting several modeless dialogs using WINAPI ( no MFC )

你离开我真会死。 提交于 2019-12-12 03:14:49
问题 I have been trying to get my program to display different modeless dialog boxes when different menu items are selected. So far I am only working on displaying 1 but I am unable to get this working. When I run my code I can see the main window losing focus but the about dialog box is not being displayed. HWND g_hToolbar = NULL; HWND hDlgCurrent = NULL; int APIENTRY _tWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPTSTR lpCmdLine, int nCmdShow) { UNREFERENCED_PARAMETER(hPrevInstance);

How to use a custom dialog in all of my application in android

依然范特西╮ 提交于 2019-12-12 03:05:57
问题 I have a dialog and i have many activities... I need to call the same dailog in all the activities...currently i have written the code in each of the activity but this is not the right way... Can any one help me in this 回答1: Ok below is my way of implementing dialog its in a static class so I can call it from any activity when I need public static void showProgressDialog(Context mContext, String text, boolean cancellable) { removeDialog(); mDialog = new Dialog(mContext, android.R.style.Theme

How to launch an activity from a dialog?

ⅰ亾dé卋堺 提交于 2019-12-12 02:42:11
问题 Any ideas how to launch an activity and send a value from a dialog button? Here's what I have at the moment. Tried a number of variations but app crashes when the button is pressed: dialog.setPositiveButton("View Profile", new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int which) { Intent intent = new Intent(); intent.setClass(context, Profile.class); intent.putExtra("profileID", "8"); startActivity(intent); dialog.cancel(); return; } }); Full class:

Python file dialog issue

 ̄綄美尐妖づ 提交于 2019-12-12 02:26:34
问题 I am trying to use Tkinter to choose a file and then import that filename into an argument to pass in a function. The program simply stops after the file is chosen. I included a print statement just to see if it returns the path and it does so I am not sure why it won't work in the function. #Main from Tkinter import * import tkFileDialog fileOpen = Tk() fileOpen.withdraw() #hiding tkinter window file_path = tkFileDialog.askopenfilename(title="Open file", filetypes=[("txt file",".txt"),("All

Show a specific process dialog in petrel?

断了今生、忘了曾经 提交于 2019-12-12 02:04:54
问题 I want to show a specified dialog under simulation category like "Developement Strategy" and do something after its "OK" click. Is there a way to show a native petrel process window? I can see some class and interfaces in " Slb.Ocean.Petrel.UI " like DialogBuilder , DialogPage , IDialogPageFactory , IDialogPage ...but I can't use them, even I don't know if they supply my required objects. 回答1: I think you want to create a Workstep (Slb.Ocean.Petrel.Workflow). The Ocean wizard lets offers a

Glade 3 Standard Button Layout

谁说我不能喝 提交于 2019-12-12 01:57:20
问题 I want to create a dialog using Glade 3 (or gtk and Python). In Glade 2 if you wanted to create a dialog box there was an option to set a "standard button layout" which would automatically create an Ok button and a Cancel button which return either gtk.RESPONSE_OK or gtk.REPONSE_CANCEL. This feature has not been reimplmented in Glade 3. How can I create a dialog which will have ok and cancel buttons which return the correct response? Cheers, Pete 回答1: You can create them manually in Glade;