What are the requirements to run a Swing application?
I'm trying to send a simple swing application to a friend that has Mac OSX, but the buttons don't show up.
Do people actually need the Java SDK in order for swing apps to work? Or is plain java enough? (He has normal java, because we play minecraft sometimes)
Anyway, my buttons are not showing up on his computer, not even when I use the cross platform look at feel
Here is the code I'm using, it's an application that makes the user select a folder and stuff will happen to it.
import java.awt.Font;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.JButton;
import javax.swing.JFileChooser;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.UIManager;
import javax.swing.UnsupportedLookAndFeelException;
public class SomeGUI extends JFrame implements ActionListener, Runnable
public JButton exit;
public JButton run;
JPanel panel;
JFileChooser chooser;
String returnpath;
JLabel progress;
public SomeGUI()
try
UIManager.setLookAndFeel(UIManager.getCrossPlatformLookAndFeelClassName());
catch (ClassNotFoundException ex)
Logger.getLogger(SomeGUI.class.getName()).log(Level.SEVERE, null, ex);
catch (InstantiationException ex)
Logger.getLogger(SomeGUI.class.getName()).log(Level.SEVERE, null, ex);
catch (IllegalAccessException ex)
Logger.getLogger(SomeGUI.class.getName()).log(Level.SEVERE, null, ex);
catch (UnsupportedLookAndFeelException ex)
Logger.getLogger(SomeGUI.class.getName()).log(Level.SEVERE, null, ex);
setTitle("BenkyoAdd");
setSize(206,100);
setResizable(false);
setDefaultCloseOperation(EXIT_ON_CLOSE);
setLocationRelativeTo(null);
setVisible(true);
panel = new JPanel();
getContentPane().add(panel);
panel.setLayout(null);
run = new JButton("Run");
run.setFocusable(false);
run.setBounds(0,0,100,30);
panel.add(run);
run.addActionListener(this);
progress = new JLabel("Please click run");
progress.setFont(new Font("lol",Font.PLAIN,14));
progress.setBounds(10, 30, 200, 50);
panel.add(progress);
exit = new JButton("Exit");
exit.setFocusable(true);
exit.setBounds(100, 0, 100, 30);
panel.add(exit);
exit.addActionListener(this);
chooser = new JFileChooser();
chooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
public void actionPerformed(ActionEvent e)
if(e.getSource().equals(exit))
System.exit(0);
if(e.getSource().equals(run))
progress.setText("Select a folder...");
chooser.showOpenDialog(panel);
this.returnpath = chooser.getSelectedFile().getAbsolutePath();
exit.setEnabled(false);
run.setEnabled(false);
progress.setText("Copying to output folder...");
new Thread(this).start();
public static void main(String args[])
new SomeGUI();
public void run()
new Changer(this, this.returnpath);
exit.setEnabled(true);
exit.requestFocusInWindow();
progress.setText("Done! You can now exit!");
}
Similar Messages
-
What are the required settings for Quality Certificate
Hi Team
What are the required settings for Quality Certificate for Raw material from vendor. This is my RR - Result Recording for inspection lot.
Please sugget me T-Code to view this.
Can I see say for 6-9 months RR done insp. lot.
ThanksSettings for Quality Certificate for Raw material from vendor,
Activate QM Procurement key, enter qm control key with certificate and Enter certificate type in certificate field.
There are 2 cases,
u want details of certificate send by vendor
u want to record results and see inspection lot wise results.
case1
depending upon the certificate selected by u, system will give u warning or error msg for certificate confirmation at the time of gr. for confirmation QC51 t_code is used. here status has to be changed to 'filed and inspected' then gr will be allowed.
all these certificates can be dispalyed in QC55 T_CODE.
CASE2
U can record results and see in inspection report tab in QA33
Edited by: YOGINI B THORAT on Aug 4, 2009 -
What are the required things to do the debug?
hi Experts,
What are the required things to do the debug?
thanks in advance
sekharHi,
There are different ways to go in debugging mode.
One way is to go to the transaction and put /h + enter in the top blank space.
The other way is to but a breakpoint in your program.After you execute the program,it will stop at the breakpoint and go into debugging mode.
The thirdway is to write break-point in the code at a specific point.On execution it will stop at that point.
A fourth way is to write break (your user id).It will stop only for you and then you can debug it.
Hope it was useful.
Thanks,
Sandeep. -
What are the required depreciation areas to post IFRS
Hi,
what are the required depreciation areas to post IFRS
Thanks And Regards.
Ramakrishna.KHi,
You should use the local rules for depreciation area 01 = local book and
set up your group rules in another depreciation area such as 30 where you can use different GAAP.
Regards
Sunil
Assign Points, if Useful -
What are the requirements for Dreamweaver?
What are the requirements for Dreamweaver? The link is broken
http://www.adobe.com/products/dreamweaver/tech-specs.html
Works for me...
Mylenium -
what are the requirements for adobe photoshop cs6? I am a beginner doing self study... please help
HI balaram reddy
You can use the administration guide under the below link.....
service.sap.com/instguidesu2192 mySAP Business Suite Solutions u2192 mySAP SRM u2192 Using SAP SRM Server 5.5 u2192Solution Operations Guide: mySAP Supplier Relationship Management
Please find the links as requested. You will find lot of documents and so on here.
http://service.sap.com/srm
http://help.sap.com/saphelp_srm50/helpdata/en/0e/cede3b6bc8682be10000000a11402f/frameset.htm
Regards
Bandla -
What are the requirements for publishing an App for private distribution, not sale.
I need to create an App in English and 4 other languages for private distribution to individuals. What are the requirements for doing this please? I currently have a just a Single Edition license. Am I right in understanding I need a Cloud subscription and an Apple Developer subscription also?
My client desire is to only make their accessible to paying members requiring a sign–in before download. Does this fall into a private distribution deployment.
-
What are the requirement need for installing of PI7.1
Hello All,
What are the Hardware and Software requirements required for Installing PI 7.1. Installation of PI 7.1. need 64 bit operating system or can I install 32 bit operating system.
Can anybody send me the installation document on PI 7.1.
Thanks & Regards,
Venkat KHi,
yes only 64 bit is supported read page no 15 of below link.
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/40328fc8-4844-2b10-b7a2-8930c16df2ba
Installation guide.
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/00004f25-6190-2b10-2c8b-fa419234c28b
Re: SAP PI 7.1 minimal hardware
chirag -
What are the required configuration tasks to enable flashback feature?
Hi,
I want to use the flashback feature on a table. Can anyone tell me what are the configuration changes that needs to be done in order to use this feature?
Thanks in advance,
Anniehttp://www.oracle.com/technology/deploy/availability/htdocs/Flashback_Overview.htm
if you mean ...
Flashback Table
When a human or application error occurs, you want to be able to restore the state of one or more tables to a point in time before the problem occurred.
You have to set UNDO_RETENTION initialization parameter.
http://download-west.oracle.com/docs/cd/B19306_01/server.102/b14220/backrec.htm#i1015145
if you mean..
Flashback Drop
In Oracle Database 10g. When a user drops a table, Oracle automatically places it into the Recycle Bin.
By the way it can not use with table on SYSTEM tablespace. -
What are the required/recommended Antivirus exceptions for BPC ????
I need to provide and implement a definitive list of required Antivirus exceptions for BPC (both Web and SQL servers). We currently run v5.1 but I would also like to know if anything is different for v7, although I don't see why it would be.
However, I only seem to have vague references to exception lists (e.g. BPC Log Files or SQL database files)
So I find myself wondering what the rest of the BPC community do in this resepct ???
If you could let me know what exceptions are generally made (or even better, if you have an actual list of recommended exceptions), I would be extremely grateful.
Thanks
CraigDo not real-time scan SAP BPC server program directories.
Do not real-time scan SQL Server and Analysis Services server
program directories.
Do not real-time scan the SQL Server and Analysis Services data
directories.
Do not real-time scan log files, temp folders and backup
directories.
Monitoring of network traffic should be specific to file type where
possible
Ensure the SAP BPC XLA and DLL files are not scanned real-time
(these files are located in the BPC program files directory)
The OutlookSoft folder within the My Documents folder that stores
application and personal files can be scanned but is likely to
impact the performance of dimension downloads and the retrieval
of documents from these directories (wizards, process selector
menus, etc).
Regards
Sorin Radulescu -
What are the required settings to enable HTTP Compression?
I am running into download speed issues with some of my clients. I am looking for ways to improve download response without having to rewrite my system(s).
On the server side, I am using CF 8.01 on a W2003 system. I have enable HTTP Compression for the web site in IIS 6.0 for both static and dynamic files.
On the client side where I am doing my testing, I am using IE 8.0 on a W7 professional system. In I.E., I have enabled HTTP 1.1 under advanced options and am using Automatic mode as the download methodology for Temporary Files.
It is my understanding that there is nothing that I have to do to CF to enable HTTP Compression.
It does not appear to work because the downloaded cfm files (5717 and 694389) are the same size regardless of these setting. In addition, I am using HttpWatch to determine all of the time and size parameters for each request. HttpWatch tells me in the summary that there are no HTTP Compression savings; i.e., HTTP Compression saving: 0 bytes. Based upon some of the info I've read on the web, I would have expected 50% to 75% savings since the two files being downloaded are both dynamic text files. All of the graphics, javascript, css files are cached so they do not figure into the equation.
Is there something else beyond the IIS and IE settings that needs to be done to implement HTTP Compresssion???
Thanks in advance for your suggestions/help.
LenAdam,
I have read the references and may now be confused, but it seems to me that just doing the standard IIS Manager setup, which is what I've done, will not compress CFM files since the only things that are compressed under dynamic files are exe, dll and asp.
One would think that CF should have added CFM to the list of compressed dynamic files when it was installed as it does with default.cfm, but maybe I'm expecting too much.
If I am correct about this, then it would seem that I'm going to have to customize the compression setup as described in this quote from the reference,
"Specify additional file types to compress. Edit the ... HcScriptFileExtensions metabase property (for dynamic files) to apply compression to additional file types."
Am I misunderstanding this document???
Len -
What are the ways to Run an LAb veiw application remotely in windows Xp /2000 System.
I need to run LV Appliccation remotely what is the best possible way to do.
Suresh ThangappanHello Suresh T,
Remote front panels may be the easiest way for you to run your VIs remotely. They work by allowing you to embed your VIs into a web page. Please see the links below for more information.
Remote Panels in LabVIEW -- Distributed Application Development
Developing Remote Front Panel LabVIEW Applications
Regards,
Matt F
Keep up to date on the latest PXI news at twitter.com/pxi -
What are the differences between Applet and Swings
Please let me know the differences between Applet and Swings.
Quit cross-posting.
http://forum.java.sun.com/thread.jspa?threadID=755100
http://forum.java.sun.com/thread.jspa?threadID=755099
http://forum.java.sun.com/thread.jspa?threadID=755006 -
When running the ISG CreateAndMaintainSalesOrders what are the required fields?
I keep getting the error:
Please provide correct Organization Id
When trying the web service call:
CreateandMaintainSalesOrders
Internal Name
oracle.apps.ont.services.oexoeord.OEXOEORDServices_DocStyle
Type
Java
Product
Order Management
I've entered on the html test form:
OEXOEORDServices_DocStyle_Service endpoint
For a formal definition, please review the Service Description.
Download the JavaScript Stub (BETA) for OEXOEORDServices_DocStyle and see its documentation .
OEXOEORDServices_DocStyle
Operation : updateSalesOrder
deleteSalesOrder
querySalesOrder
createSalesOrder HTML Form XML Source
Reliable MessagingInclude In Header
WS-SecurityInclude In Header
User Name
xsd:string
Password
xsd:string
header
Responsibility
ORDER_MANAGEMENT_USER
xsd:string
Include In Message
RespApplication
ONT
xsd:string
Include In Message
SecurityGroup
STANDARD
xsd:string
Include In Message
NLSLanguage
AMERICAN
xsd:string
Include In Message
Org_Id
103
xsd:string
Include In Message
ViewAndUpdateSalesOrderHeaderDetails
ViewAndUpdateSalesOrderLineDetailsInclude In Message
SoldToPhoneAreaCode
xsd:string
Include In Message
SoldToPhoneNumber
xsd:string
Include In Message
SoldToPhoneCountryCode
xsd:string
Include In Message
SoldTo
xsd:string
Include In Message
DefaultFulfillmentSet
xsd:string
Include In Message
SoldToPhoneExtension
xsd:string
Include In Message
QuoteNumber
xsd:decimal
Include In Message
OrderNumber
46832
xsd:decimal
Include In Message
VersionNumber
xsd:decimal
Include In Message
CustomerNumber
xsd:string
Include In Message
BlanketNumber
xsd:string
Include In Message
ContractTemplate
xsd:string
Include In Message
ContractSource
xsd:string
Include In Message
AuthoringParty
xsd:string
Include In Message
BlanketAgreementName
xsd:string
Include In Message
OrderedDate
xsd:date
Include In Message
QuoteDate
xsd:date
Include In Message
SoldToContact
xsd:string
Include In Message
OrderType
Standard Sales Order
xsd:stringI filled in the following values:
WS-Security Section
User Name = SYSTEMINTEGRATION
Password = **********
Header Section
Responsibility = ORDER_MANAGEMENT_USER
RespApplication = ONT
SecurityGroup = STANDARD
NLSLanguage = AMERICAN
Org_ID = 103
Body Section
P_API_VERSION_NUMBER = 1.0
P_INIT_MSG_LIST = T
P_RETURN_VALUES = T
P_ACTION_COMMIT = T
P_HEADER_REC
TRANSACTIONAL_CURR_CODE = USD
OPERATION = CREATE
P_HEADER_VAL_REC
ORDER_TYPE = Standard Sales Order
*** the key was the OPERATION code being set to "CREATE". Other valid values are DELETE and UPDATE -
What are the requirements in terms of system drive for visual studio 2013
According to this thread "visualstudio.uservoice.com/forums/121579-visual-studio/suggestions/2120283-allow-users-to-install-entirely-to-another-hard-dr" it is not possible to install visual studio fully on another drive rather that
the system drive. This link "visualstudio.com/products/visual-studio-professional-with-msdn-vs#Fragment_SystemRequirements" states the system requirement for visual studio pro 2013. However can somebody clarify what is needed in terms of system drive
requirement e.g. out of the 20 gb, how much is needed on the system drive.
ThanksHi,
Exact space required will vary widely based on installation components chosen and what you may have already installed on your system.
And When you install your VS in another Drive and run the VS installer, you can see system requirement in installation screen.
Because my work computer only have C Drive, I test the VS2012 professional installation in my home computer E drive. The Screen below:
I think the system requirement can also display when you install VS 2013.
Best Wishes!
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place. <br/> Click <a
href="http://support.microsoft.com/common/survey.aspx?showpage=1&scid=sw%3Ben%3B3559&theme=tech"> HERE</a> to participate the survey.
Maybe you are looking for
-
Can no longer get photos sent from my daughters iPhone to my IPAd
Can no longer get photos sent from my daughters iPhone to my IPAd
-
Hyperlink text will not work with _self, only as self and then creates window
I understand that the code below should work but it doesn't, I have to take the underline before self out, for the hyperlink to work at all, and then it creates another window for the file. There may some sort of glitch that I am not aware of. But th
-
Dynamic command execution fails in Crystal report viewer
We are using the Crystal Report Viewer for the .Net Application on the client side.The reports are designed using Crystal Report XI R2. The issues that i am currently encountering is that, we are unable to load the combo-boxes in the pop-up for the p
-
Start up disk full how do i free up space
How do I delete files to free up space?
-
We have been using iWeb for our family business for site development and maintenance. Lately, we bought new iMacs for our offices and we suddenly realized we cannot buy iWeb from apple anymore. It is nowhere to be found!!! Our site is useless now!!!