How To use a dialog box??
Sorry i am asking a very basic question.............But i would like to know how can i use a dialog box in swing.
for input requested try this
String ar = JOptionPane.showInputDialog("Please, enter artist name");for any sort of message box try this
int answer = JOptionPane.showConfirmDialog(null, "Enter another record?",
"???",JOptionPane.YES_NO_OPTION);This might help you buddy.
Similar Messages
-
How to Use Open Dialog Box, & Save Dialog Box
Hi Frens,
Can You tell me how can i use open dialog box, and save
dialog box using Flex. Because there is no such components are
given here.
Also How can i Do when I click on some button, or some event
Please tell me abt this, Thks in advance frens
Ashish Mishrafor input requested try this
String ar = JOptionPane.showInputDialog("Please, enter artist name");for any sort of message box try this
int answer = JOptionPane.showConfirmDialog(null, "Enter another record?",
"???",JOptionPane.YES_NO_OPTION);This might help you buddy. -
How we can Open dialog box in form 6i
Hi
How we can use file Dialog Box (Open Dialg,Save Dialog Etc) in forms 6i.
Thanks & RegardsUse GET_FILE_NAME built in
** Built-in: GET_FILE_NAME
** Example: Can get an image of type TIFF.
DECLARE
filename VARCHAR2(256)
BEGIN
filename := GET_FILE_NAME(File_Filter=> 'TIFF Files (*.tif)|*.tif|');
READ_IMAGE_FILE(filename, 'TIFF', 'block5.imagefld);
END;
Rajesh Alex -
Portal 7.3 masthead customization - How to remove Logoff dialog box "Are you sure you want to logoff?"
I have recently upgraded our portal to 7.3 sps10 and we are using the Ajax framework
I have a requirement to Remove the Logoff Dialog box "Are you sure you want to logoff?"
I am able to Import masthead.war into NWDS and get the project ready for development with the appropriate jar and libraries.
I am able to deploy the project also. I need help finding How to turn this dialog box off and just log the user off. I was able to accomplish this in Classic frame work page HeaderiView.jsp.
I have looked at afpmasthead.org.sj and masthead.jsp. I am not a js/jsp developer.
I can see the logoff dialog box being created but I am having trouble finding the logoff code.
Please advise me on the code changes required to remove the Logoff dialog box "Are you sure you want to logoff?" from the Ajax framework.
Any help on this matter would be greatly appreciated.
Thank you
SarahThank you Troy for your Helpful Threads.
Problem Solution:
Followed the thread on How to download and change AFP Masthead on SAP Portal 7.3
Located the file which contains the logoff code from thread http://scn.sap.com/thread/3265584
The File with the Logoff coding in it is a Javascript file afpmasthead.js
Identified logoff code without dialog box using this thread https://scn.sap.com/thread/3307601
NovaDialogBox.performLogout(); (perform logoff)
I was able to remove the Logoff dialog box Do you really want to logoff? And replace it with logging the user off.
afpmasthead.js All the code is on 1 line, To fix this go to -->Source -->Format
Comment out the following lines of code and replace with logoff code
logoffLinkElement.onmouseup= function(aS) {
logoffLinkElement.onmouseup= function(aS) {
NovaDialogBox.performLogout();
Sarah -
This doesn't work in Windows 8. Anybody know how to get this dialog box in Windows 8?
Hello,
Try disabling graphics hardware acceleration. Since this feature was added to Firefox, it has gradually improved, but there still are a few glitches.
You might need to restart Firefox in order for this to take effect, so save all work first (e.g., mail you are composing, online documents you're editing, etc.).
Then perform these steps:
*Click the orange Firefox button at the top left, then select the "Options" button, or, if there is no Firefox button at the top, go to Tools > Options.
*In the Firefox options window click the ''Advanced'' tab, then select "General".
*In the settings list, you should find the ''Use hardware acceleration when available'' checkbox. Uncheck this checkbox.
*Now, restart Firefox and see if the problems persist.
Additionally, please check for updates for your graphics driver by following the steps mentioned in the following Knowledge base articles:
* [[Troubleshoot extensions, themes and hardware acceleration issues to solve common Firefox problems]]
* [[Upgrade your graphics drivers to use hardware acceleration and WebGL]]
Did this fix your problems? Please report back to us!
Thank you. -
Compare PDF: How to suppress compare dialog box programmatically...
Hi,
We are using Acrobat 8.0. Using Visual Basic, we are opening two PDF files in Acrobat 8.0 professional.We are comparing those two documents using MenuitemExecute(DIGSIG:CompareDocuments ) command and generating the side by side comparison file programatically.
During this process after executing the command "MenuitemExecute(DIGSIG:CompareDocuments )" adobe is displaying "Compare Documents" dialog box where the user need to click OK on it in order to continue with the comparison.
My requirement is to suppress the dialog box and automate the process. Our application is developed in Visual basic.
Could you please let me know how to suppress the dialog box using Visual basic. Is it possible using VB or any alternatives for this. Because we need to compare many PDF documents so clicking OK every time requires user intervention.
Thanks for your help in advance.Acrobat Scripting Forum http://www.adobeforums.com/webx?13@@.3bbedaa6
Acrobat SDK Developer Forum http://www.adobeforums.com/webx/.eed56a0/ -
Im using the SDI application to build a system and now i would like to insert a dialog box which allow the user to enter the general information about themselves and then it will be saved into a text file. How to insert the dialog box and show the dialog box at the beginning of the program.
Hi Lee,
The easyest way to achieve this is to declare an object of your dialog box derived class (e.g. CUserInfo, public CDialog) into the InitInstance method of the main application class.
Depending on the behavior you want you can place the code before dispatching the commands from command line (in which case the main frame of the SDI application will not be shown), or after, in which case the UserInfo dialog box will be shown over the main application window as modal.
The code snipped bellow can be more helpfull:
BOOL CSDIApp::InitInstance()
AfxEnableControlContainer();
// Parse command line for standard shell commands, DDE, file open
CCommandLineInfo cmdInfo;
ParseCommandLine(cmdInfo);
//prompt user for data
CUserInfo dlg;
if (dlg.DoModal() == IDOK)
//do something here with the data
else
return FALSE;//i.e. quit the application if the user presses the 'Cancel' button
// Dispatch commands specified on the command line
if (!ProcessShellCommand(cmdInfo))
return FALSE;
// The one and only window has been initialized, so show and update it.
m_pMainWnd->ShowWindow(SW_SHOW);
m_pMainWnd->UpdateWindow();
return TRUE;
Hope this helps,
Silvius
Silvius Iancu -
How to use the Combo Box In MAtrix Colums
HI Experts,
Good Mornong.How to use the Combo Box In MAtrix Colums?
Regards And Thanks,
M.Thippa Reddyhi,
loading data in to the combobox on form load.but, it should be done when atleast one row is active.
the values what ever you are inserting in to combo should be less than or eqhal to 100 or 150.if it exceeds beyond that performance issue arises.it takes more time to load all the data.so, it is better to have 100 or less.
oMatrix.AddRow()
RS = Nothing
RS = ocompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)
RS.DoQuery("select ItemCode,ItemName from oitm")
oCombo = oMatrix.Columns.Item("ColumnUID").Cells.Item(oMatrix.RowCount).Specific
For i = 1 To RS.RecordCount
If RS.EoF = False Then
oCombo.ValidValues.Add(RS.Fields.Item("ItemCode").Value,RS.Fields.Item("ItemName").Value)
RS.MoveNext()
End If
Next
the above code is inserting data from database to column combobox.
you can fill combo directly also as shown below.
oCombo.ValidValues.Add("x","1")
oCombo.ValidValues.Add("y","2")
oCombo.ValidValues.Add("z","3")
oCombo.ValidValues.Add("","")
and what ever the values you are filling into combo should be unique.other wise it shows valid value exists.
regards,
varma -
Safari crashes when using the dialog box to import/save files, in facebook under windows 7
I've encountered the following errors in some PCs, running Safari 5.1.7 in MS-Windows 7 Pro:
Safari crashes when using the dialog box to import/save files. One doesn't have to actually upload or download any file, the mere invocation of the relevant dialog box brings down all open Safari windows after a couple of seconds.
Errors displayed in the Event Log are:
Όνομα ελαττωματικής εφαρμογής Safari.exe, έκδοση 5.34.57.2, χρονική σήμανση 0x4f982b5e
Όνομα ελαττωματικής λειτουργικής μονάδας CoreGraphics.dll, έκδοση 1.87.0.0, χρονική σήμανση 0x4f9739a0
Κωδικός εξαίρεσης: 0x40000015
Μετατόπιση σφάλματος: 0x0013a762
Αναγνωριστικό ελαττωματικής διεργασίας: 0x17f4
Χρόνος έναρξης ελαττωματικής εφαρμογής: 0x01cded6b09576023
Διαδρομή ελαττωματικής εφαρμογής: C:\Program Files\Safari\Safari.exe
Διαδρομή ελλατωματικής λειτουργικής μονάδας:C:\Program Files\Safari\Apple Application Support\CoreGraphics.dll
Αναγνωριστικό αναφοράς:ebe64ac9-595e-11e2-a977-0016356671d1
System
Provider
[ Name]
Application Error
EventID
1000
[ Qualifiers]
0
Level
2
Task
100
Keywords
0x80000000000000
TimeCreated
[ SystemTime]
2013-01-08T06:45:00.000000000Z
EventRecordID
95609
Channel
Application
Computer
computername
Security
EventData
Safari.exe
5.34.57.2
4f982b5e
CoreGraphics.dll
1.87.0.0
4f9739a0
40000015
0013a762
17f4
01cded6b09576023
C:\Program Files\Safari\Safari.exe
C:\Program Files\Safari\Apple Application Support\CoreGraphics.dll
ebe64ac9-595e-11e2-a977-0016356671d1
and
Ελαττωματικός κάδος (bucket) 2970527469, τύπος 1
Όνομα συμβάντος: APPCRASH
Απόκριση: Δεν υπάρχει
Αναγνωριστικό Cab: 0
Υπογραφή προβλήματος:
P1: Safari.exe
P2: 5.34.57.2
P3: 4f982b5e
P4: CoreGraphics.dll
P5: 1.87.0.0
P6: 4f9739a0
P7: 40000015
P8: 0013a762
P9:
P10:
Συνημμένα αρχεία:
C:\Users\username\AppData\Local\Temp\WER51A.tmp.WERInternalMetadata.xml
Αυτά τα αρχεία μπορεί να είναι διαθέσιμα εδώ:
C:\Users\username\AppData\Local\Microsoft\Windows\WER\ReportArchive\AppCrash_Saf ari.exe_e273f639ef3d86d52c9d8e15dd2b42dce3e78061_1f86213d
Σύμβολο ανάλυσης:
Επανέλεγχος για λύση: 0
Αναγνωριστικό αναφοράς: ebe64ac9-595e-11e2-a977-0016356671d1
Κατάσταση αναφοράς: 0
+
System
Provider
[ Name]
Windows Error Reporting
EventID
1001
[ Qualifiers]
0
Level
4
Task
0
Keywords
0x80000000000000
TimeCreated
[ SystemTime]
2013-01-08T06:45:10.000000000Z
EventRecordID
95610
Channel
Application
Computer
computername
Security
EventData
2970527469
1
APPCRASH
Δεν υπάρχει
0
Safari.exe
5.34.57.2
4f982b5e
CoreGraphics.dll
1.87.0.0
4f9739a0
40000015
0013a762
C:\Users\username\AppData\Local\Temp\WER51A.tmp.WERInternalMetadata.xml
C:\Users\username\AppData\Local\Microsoft\Windows\WER\ReportArchive\AppCrash_Saf ari.exe_e273f639ef3d86d52c9d8e15dd2b42dce3e78061_1f86213d
0
ebe64ac9-595e-11e2-a977-0016356671d1
0
I have tried in-installing safari but it seems not to help. I have tried installing it to a third, newly installed pc and come to the same result.
All PCs are fully up-to-date as it regards Microsoft and Apple patches. Any ideas as to why this might happen?Still having the same problem. Ever the optimist, I submit the following info.
Error window screenshot can be found here: https://dl.dropboxusercontent.com/u/22465174/safari/safari_fail_01.JPG
Enent log entry can be found here: https://dl.dropboxusercontent.com/u/22465174/safari/safari_fail_02.txt
Version info can be found here: https://dl.dropboxusercontent.com/u/22465174/safari/safari_fail_03.JPG -
How to use dynamic list box in survey builder?
Hello,
Could someone give me a little bit of thread? How to use dynamic list box in survey builder?Hi Liu,
Dynamic combo boxes::A combo box is dynamic if it references a document property for which a value set is defined in the configuration (System Administration ® System Configuration ® Content Management ® Global Services ® Property Metadata ® Properties ® Parameter Allowed Values).
At runtime (when you open the creation form) the system reads these values from the configuration and displays them in the dropdown list.
If you link a combo box for which list entries already exist to a document property with a value set, the system asks whether you want to delete the list entries. it is recommend that you accept this suggestion and delete the list entries from the XML Forms Builder. Otherwise inconsistencies could arise between the entries in the XML Forms Builder and the value set in the configuration. This can cause errors when saving.
Also you may Refer the Link for Further help:
http://help.sap.com/saphelp_crm50/helpdata/en/29/c40d3d2a83752de10000000a114084/frameset.htm
http://help.sap.com/saphelp_crm50/helpdata/en/00/9e7f41969e1809e10000000a155106/frameset.htm
http://help.sap.com/saphelp_crm50/helpdata/en/a7/5a874174a8050de10000000a1550b0/frameset.htm
Hope it Answers your Queries..
Thanks and Regards,
RK. -
How to add FONT DIALOG box to my notepad application
hai friends.......
i am developing a notepad application like windows notepad. for that application i want add FONT dialog box.could you please tell me how to add font dialog box to my application.
thank you.........Start by going through the Swing tutorials linked from the topic listing page of the [_Swing forum_|http://forums.sun.com/forum.jspa?forumID=57]. When you are confident of being capable of displaying a dialog with the components you need, correctly layed out, check out the API for GraphicsEnvironment#getAllFonts and Font@canDisplyUpTo.
Any Swing related questions you might have along the way should be posted in the Swing forum.
db -
How to create conditional dialog box
Hi Everyone
I am creating a database application in APEX 4.0. In that application a page requires a dialog box, which has to appear when a user clicks on Submit button.
It has to consider validations and appear after validations and submit button is clicked. Here the Submit button submits the entire page after validations by updating the database table.
Please help me out how to create a dialog box which has to appear by the click of Submit button.
Thanks in advance
Regards
SandeepHi Kiran
Thanks for responding,
Sorry for providing the complete details.
Provided link is much more helpful, but its not meeting my needs. My requirement is to just show a popup box after the user clicks on submit button.
Saying 'Thank you for answering' if he is done with all questions or if he has more questions to answer pop up with different message 'You have more questions to answer'.
In both the cases page as to get submitted when clicked on Submit button.
Thanks in advance
Regards
Sandeep -
How to launch a dialog box programmatically
I'm working on my first ADF form and my first Java program (the backing bean) and I need some help with how to launch a dialog box from the backing bean instead of a button.
Here is the background of what I am doing: I created an ADF form whereby a user chooses an Excel spreadsheet from their local drive and submits it. The backing bean reads through the spread sheet fields, does some validations, etc. then writes out a fixed length file on the weblogic server. This part works fine. But I wanted to add a dialog in after the spreadsheet is read but before the file is written that displays the number of records that were read and give them the option to hit OK to continue or Cancel which will stop execution of the form and maybe display a cancelled msg. Not sure how to do this part. How can I invoke the dialog from the code? Do I still need to have a button to get an action listener, but just not display it on the form? I'm a bit confused on this part. Any advice or examples would be appreciated. Thanks.here popup involves
http://subu-jdeveloper11gadf.blogspot.in/2012/06/checking-application-module-dirtiness.html
public void DisqualifyListener(DialogEvent dialogEvent) {
// Add event code here...
DialogEvent.Outcome outcome = dialogEvent.getOutcome();
if (outcome == DialogEvent.Outcome.ok)
RichPopup popup = this.getPp1();
RichPopup.PopupHints hints = new RichPopup.PopupHints(); //empty hints renders dialog in center of screen
popup.show(hints);
}Edited by: ADF7 on Jun 26, 2012 8:57 AM -
Help using find dialog box with JTextArea
Hi i am using JTextField and getting a file read and then displayed in JTextField. Now i have used a dialog box for finding string within that file displayed in JTextField. I want to make it such that it ignores cases while finding the string and also want to make find next available in Find dialog box.
My code is: -
* @author Administrator
* To change the template for this generated type comment go to
* Window>Preferences>Java>Code Generation>Code and Comments
import java.awt.BorderLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.BufferedReader;
import java.io.FileInputStream;
import java.io.InputStreamReader;
import javax.swing.*;
public class TextAreaEx extends JPanel implements ActionListener {
static JFrame fr;
JButton button1;
JTextArea tx;
TextAreaEx()
super(new BorderLayout());
tx=new JTextArea();
FileInputStream fis=null;
StringBuffer sb=new StringBuffer();
try{
fis=new FileInputStream("C:/customers.xml");
BufferedReader br=new BufferedReader(new InputStreamReader(fis));
String h="";
while((h = br.readLine()) != null) {
sb.append(h + "\n");
catch(Exception e)
{ e.printStackTrace();}
tx.setText(sb.toString());
button1=new JButton("Find");
button1.addActionListener(this);
add(button1,BorderLayout.PAGE_START);
button1.setFocusable(false);
JScrollPane p1=new JScrollPane(tx);
add(p1);
public static void createShow()
JFrame.setDefaultLookAndFeelDecorated(true);
fr=new JFrame("My Frame");
TextAreaEx ob=new TextAreaEx();
ob.setOpaque(true);
fr.setContentPane( ob);
fr.setSize(400,400);
// fr.pack();
fr.setVisible(true);
public static void main(String s[])
createShow();
/* (non-Javadoc)
* @see java.awt.event.ActionListener#actionPerformed(java.awt.event.ActionEvent)
public void actionPerformed(ActionEvent e) {
if(e.getSource()==button1)
String s=(String)JOptionPane.showInputDialog(fr,"FIND:\n","Find",JOptionPane.INFORMATION_MESSAGE,
null,null,null);
System.out.println(s);
String text=tx.getText();
int offset=text.indexOf(s);
System.out.println(offset);
tx.setFocusable(true );
tx.select(offset,s.length()+offset );Sorry its not JTextField its JTextArea as mentioned in first line of first post.
-
Save a frame using saveAs dialog box.
Hi,
I am implementing an application wherein I am displaying certain error messages in a frame. On the lower frame I have have the buttons to print the contents of the upper frame. But I want to include the option to save the contents of the Upper Frame as a text file in the system directory using a SaveAs Dialog box. Can anyone please suggest how this can be done?
I was using *{document.execCommand("saveAs")}* command to save the contents when the whole thing was done in a single html template but as I had to divide it in two different frames the above command is forming a .txt file but without any of the contents present. Any modification to be done to the above command such that the contents of the Upper frame get stored as .txt file would be very helpful too.??
Thanks in advance.Is this a Java question? Note that JavaScript is not Java.
db
Maybe you are looking for
-
FIles I trash are disappearing from trash after a few seconds. I sometimes catch a glimpse of a rename to string of letters just as it goes. Only been happening since 10.8.2 Anyone else have this problem, or any ideas?
-
Pie graph values displaying in the format of 00.0000
Hi, i have created a report with pie chart and it is displaying values in the format of 00.0000 but i want to display like 00.00. Please let me know if it is possible, where i have to modify code? Thanks, lax Edited by: user7498756 on Feb 7, 2012 1:3
-
How do download itunes and pictures from 4 to 5S. I go through itunes and receive some type of security violation message
-
All my local files are missing and I don't have a "sent" command on my side bar either.
What has happened to my local files on my side bar and my "sent" command as in searching sent mail?
-
ATV3 cuts out while playing radio
I have the latest Apple TV, bought about 6 weeks ago and have been using it for all this time with no issues. I believe I have all the latest firmware. However, lately it's started going dead while I'm using it. No known network issues or connecti