Small Help Needed in JFileChooser
I've a small problem in using JFileChooser.
I want to disable the doubleclick option if chosen is a file and enable if it is a folder
or
i want both the properties of singleclick and doubleclick to be same.
i.e, if it is a folder as it gets inside the folder. incase of file it shudn't do anything (filechooser shudn't get closed). But as of now the file chooser is getting closed on double click on a file and it returns the selected file's name when i printed using chooser.getSelectedFile(). what i want now is, the filechooser shudn't return anything until i click the open button on the filechooser window.
Can someone help me out in terlling me how to do this
TIA
um.... how about get the JDK?
Also, please don't try to use a non-applet program as if it were an applet. It won't work.
Also, please go through the Sun Java tutorials, especially the first ones about getting started.
Edited by: Encephalopathic on Feb 26, 2008 9:56 PM
Similar Messages
-
I have written a small hellow world code in swing....
*import javax.swing.JFrame;*
*import javax.swing.JLabel;*
*public class HelloWorldSwing {*
*public static void main(String[] args) {*
*JFrame frame = new JFrame("HelloWorldSwing");*
*final JLabel label = new JLabel("Hello World");*
*frame.getContentPane().add(label);*
*frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);*
*frame.pack();*
*frame.setVisible(true);*
I've compiled this in a remote server, with the help of this site....
http://www.innovation.ch/java/java_compile.html
I have only JRE1.6.0_03 installed in my machine.....
when I am trying to execute the program by.....
F:>java HelloWorldSwing
it is saying....
Exception in thread "main" java.lang.NoClassDefFoundError: HelloWorldSwing
Then I tried to run it othe way by html file....
*<html>*
*<applet class="HelloWorldSwing.class" height=200 width=200>*
*</html>*
can any one suggest....what to do to get it running?um.... how about get the JDK?
Also, please don't try to use a non-applet program as if it were an applet. It won't work.
Also, please go through the Sun Java tutorials, especially the first ones about getting started.
Edited by: Encephalopathic on Feb 26, 2008 9:56 PM -
hello
does anyone know why i get this error when im trying to publish?i did a frensh windows instal ,seted up flash cs5,5 with 2.7 sdk,and now when i try to publish i get this error.Its a small app that plays some videos,before i could publish it without problems.Hi,
In order to compile properly in Flash CS5.5, it's more than just overlaying the SDK. There are other template files that need to be updated in order for it to work.
I've posted a video on how to overlay the SDK on Windows here: http://youtu.be/ODXp3-K9VJU I've also got a video on how to do it on Mac (look for it on my channel).
iBrent -
Help needed regarding JFileChooser
hi, this is ravikiran,
I am having a situation where when a save dialog appears, I must provide a default name for the file to be saved in the "File Name" field of save dialog.
Which property of the JFileCooser must be set in order to do this.
help me.
thanx in advance.The is a method to set the directory and a method to set the file name.
If you need further help then you need to create a [url http://homepage1.nifty.com/algafield/sscce.html]Short, Self Contained, Compilable and Executable, Example Program (SSCCE) that demonstrates the incorrect behaviour, because I can't guess exactly what you are doing based on the information provided.
And don't forget to use the [url http://forum.java.sun.com/help.jspa?sec=formatting]Code Formatting Tags so the code retains its original formatting. -
Small help needed with swf in flash CS6!
Hey everyone! I have a question I’d like to ask, and just wanted to point out a few things. I’m not very advanced with flash software, so I don’t know too much about it. My question was, if it would be possible to take an swf animation- (One that’s already been uploaded on the internet) Put it into Flash CS6, and possibly just change the music that is playing in that flash animation. So that when it’s all done, the animation plays just as it did originally, but with the new track of music that has been put into it.
Any support would be amazing! Thank you!It depends how the sound is used in the swf file. If the sound is streamed from a file on a server, you will most likely get errors when trying to import it in your own library. It also depends on which ActionScript it uses (1,2 & 3). If you drag the swf on the stage of your fla any tweens in it will be converted to keyframes and you will lose traditional (timeline-embedded sound) anyway.
-
Hi,
I need small help in sql*loader.I get data-files which has a particular identified on the 1st record( header ), based on which I've to load a constant for the 1st column of every row. How do I set in the control file.
Appreciate if someone can give me directions on this.
Thanks in advance,Hi again!
I hope that a little shell script will do the thing for you.
1.) Create the following BASH-Script
#!/bin/bash
export CUSTNO=""
export CUSTNO=$(awk -F"," '{print NR " " $3}' datafile.csv | grep 1 | cut -d" " -f2)
sed -i 's/#x#/'$CUSTNO'/g' controlfile.datI've use datafile.csv as the name of the datafile to load and controlfile.dat as the name of your controlfile. Please change this to fit your needs.
This script looks for the occurrence of your constant value and stores this value in the variable CUSTNO. Then it look for a string #x# in your controlfile and changes #x# to the value of CUSTNO.
So in your controlfile there should be a line for custno like that:
custno CONSTANT '#x#'This line will be replace in your example to:
custno CONSTANT '35642'To get this to work I assume that:
1.) Your constant value is always at the third position in the header of your datafile.
2.) You've made the change with #x# in your controlfile.
I hope that this is really usefull to you.
Best Regards
Florian W. -
I cannot configure yahoo small business after upgrading to Mavericks Help needed
Hi Guys,
it is as simple as that:
I cannot configure yahoo small business after upgrading to Mavericks Help needed
ThanksPlease read this whole message before doing anything.
This procedure is a diagnostic test. It’s unlikely to solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.
The purpose of the test is to determine whether the problem is caused by third-party software that loads automatically at startup or login, by a peripheral device, or by corruption of certain system caches.
Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards. Boot in safe mode and log in to the account with the problem. Note: If FileVault is enabled on some models, or if a firmware password is set, or if the boot volume is a software RAID, you can’t do this. Ask for further instructions.
Safe mode is much slower to boot and run than normal, and some things won’t work at all, including sound output and Wi-Fi on certain models. The next normal boot may also be somewhat slow.
The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin. Test while in safe mode. Same problem? After testing, reboot as usual (i.e., not in safe mode) and verify that you still have the problem. Post the results of the test. -
ferst this is my pc
4.09.00.0904 (DirectX 9.0c) ante-HA0X2NT8F0 : CPU الـ Intel Pentium 4 530, 3033 MHz (15 x 202) MSI 848P Neo-V (MS-6788) (5 PCI, 1 AGP, 2 DDR DIMM, Audio) Intel Breeds Hill i848P ram512 mb(DDR SDRAM) BIOS نوع الـ AMI (11/29/04) Communications Port (COM1) ECP Printer Port (LPT1) RADEON 9250 - Secondary (128 mb) RADEON 9250 (128 mb) ATI Radeon 9250 (RV280) Plug and Play Monitor [NoDB] (105169121) : sound cart Intel 82801EB ICH5 - AC'97 Audio Controller
: IDE Standard Dual Channel PCI IDE Controller Floppy disk drive HDS728080PLAT20 (قب 80, 7200 RPM, Ultra-ATA/133) CD-ROM Drive SMART
now
1-my pc restart it self after 4 or 5 h....
no cbu hot
no fan error cut i test all
2-i wanna get update all driver
i try with the msi brogram and that brogram give me an old v. :((
3-is my pc (top)(good)(strong) if not i will buy new msi one only tell me
waitingwhen take look thare i see 12v_____
euer-power tx 12v
pl-350 8a 5a max 200w (isthat good )?
hi Din
let me ask how i can do this ?(memtest )????
pls i wanna small help and i wanna know >is my pc good or bad cuz it cust me mush
and all my pc from MSI !.
HI Ralphdb
(((Do you know what temp your Cpu is running)))) no i dont know that i am not professional in pc hard..so pls be soft with me and explain ... -
Help need to switch Muse site to BC on a allready hosted plan
Hi, i also posted on BC forum...
I have a client that was in a hurry to have his emails accounts before the entire website.
So i went on and bought the email marketing plan (cos he will also need to do email campains) an pointed his domain everything is working fine, at this moment he has his accounts the domain is live.
The site would be just a small 7-10 pages not to complicated.
Has a graphic designer (who has venture into Business catalyst cos it had all the solutions i needed, well that's what the promotional videos said anyway) I made a site in Muse.
First i did a temporary page thats says "comming soon", and then i made the entire site, all the design and menu but with blank pages cos the client didnt have all the content yet (and still dont have). I uploaded that site to a sub directory so he could see the evolution.
He approved the design, yay!
At the end of the process, he told me he needed to have full control with the editor. (style, images, bulleted list, need to put downloadable document like pdf etc.) i told him that he could only modify what was allready there with the Muse in Browser editing (that he saw when i made the pitch using another site) he was impress with the way it worked.
so i told him i would have to remake "template".
I thought of using a BC template, and modify the looks to adapt to my client image, Of course, use a responsive theme so he could make the change at one place only. (cos in Muse you need to make the changes on the 3 layouts).
Now, i created a new temporary site using one of the new responsive template available.
How can i import that new site onto his live domain? In other words, how can a switch from a theme made in Muse, to a BC template?
cant i just delete everything in the root folder, and upload the entire new site via ftp?
please help me find the solution. i am a bit in a panic here
hope you could understand my lousy English.
Sincerely,
i.d.This would need to be transparent for m'y client...
Y
Envoyé de mon iPhone
Le 2014-04-20 à 15:29, Sanjit_Das <[email protected]> a écrit :
Re: help need to switch Muse site to BC on a allready hosted plan
created by Sanjit_Das in Help with using Adobe Muse CC - View the full discussion
Thanks for additional details.
Unfortunately we cannot change site template of a live site in BC , but as a workaround Create a site from BC using the template you wish to use then publish the site from Muse to the site created from BC and transfer the contents stored from live site to trial site. Ater final transition is done , you can delete the already paid site and make live the new trial site which includes new site template.
Thanks,
Sanjit
Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/6314730#6314730
Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/6314730#6314730
To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/6314730#6314730. In the Actions box on the right, click the Stop Email Notifications link.
Start a new discussion in Help with using Adobe Muse CC at Adobe Community
For more information about maintaining your forum email notifications please go to http://forums.adobe.com/thread/416458?tstart=0. -
Help needed "tabEnabling" not working in simple login page - Flex
Hello Friends,
I need a small help in Flex. I am doing a simple login page application in FlashBuilder 4.0 & i have kept 2 input boxes like Login,Password and a submit buttion. On clicking the button i am calling a method, so far everything is working fine.... But some how tabenabling is not working. suppose if you are in login inputbox and i press "tab key" it has to go to password input box.. but its not working. can any one help me on this, why it is not working. i have tried all the attempts using tabEnabled = "true". but stil i am failing to do this.
your help would be appreciated.
Rajesh
Message was edited by: Rajeshb_Flash<?xml version="1.0" encoding="utf-8"?>
<mx:VBox xmlns:mx="http://www.adobe.com/2006/mxml"
width="100%"
height="100%"
verticalAlign="middle"
horizontalAlign="center">
<mx:Script>
<![CDATA[
import com.tel.model.EventConstants;
import mx.controls.Alert;
import mx.managers.CursorManager;
import mx.rpc.events.FaultEvent;
import mx.rpc.events.ResultEvent;
import mx.rpc.http.mxml.HTTPService;
private var httpService:HTTPService;
public var userID:String = "";
public function init():void{
private function mouseClickSubmit():void{
if(userName.text != "" && password.text != ""){
userID = userName.text;
initService();
}else{
if(userName.text == ""){
Alert.show("Please enter 'User Name'.","Alert!")
}else if(password.text == ""){
Alert.show("Please enter 'Password'.","Alert!")
private function initService():void{
var params:Object = new Object();
params["userName"] = userName.text;
params["password"] = password.text;
httpService = new HTTPService();
httpService.showBusyCursor = true;
httpService.resultFormat = "xml";
httpService.method=URLRequestMethod.POST;
httpService.addEventListener(ResultEvent.RESULT, httpServiceResultHandler);
httpService.addEventListener(FaultEvent.FAULT, httpServiceFaultHandler);
httpService.url = "Login.action";
httpService.send(params);
private var boolFirstRun = true;
private function httpServiceResultHandler(event:ResultEvent):void{
httpService.removeEventListener(ResultEvent.RESULT, httpServiceResultHandler);
httpService.removeEventListener(FaultEvent.FAULT, httpServiceFaultHandler);
httpService = null;
var resultXML:XML = new XML(event.result.toString());
if(resultXML.children().toString() == "true"){
boolFirstRun = false;
dispatchEvent(new Event(EventConstants.LOGIN_SUCCESS))
}else{
userName.text = "";
password.text = "";
Alert.show("Login Failed! Invalid 'User Name' or 'Password'.","Alert")
private function httpServiceFaultHandler(event:FaultEvent):void{
httpService.removeEventListener(ResultEvent.RESULT, httpServiceResultHandler);
httpService.removeEventListener(FaultEvent.FAULT, httpServiceFaultHandler);
httpService = null;
]]>
</mx:Script>
<mx:Panel title="Login Page" width="400" height="300" styleName="loginPanel" verticalAlign="middle" horizontalAlign="center" backgroundImage="assets/images/hello.jpg" backgroundAlpha=".1">
<mx:VBox width="260" height="95" styleName="loginBox" backgroundAlpha=".2">
<mx:HBox width="100%">
<mx:Label width="85" text="User Name" styleName="loginTextStyle"/>
<mx:TextInput width="150" id="userName"/>
</mx:HBox>
<mx:HBox width="100%">
<mx:Label width="85" text="Password" styleName="loginTextStyle"/>
<mx:TextInput width="150" id="password" displayAsPassword="true"/>
</mx:HBox>
<mx:HBox width="100%">
<mx:Spacer width="80%"/>
<mx:Button label="Enter" id="submit" click="mouseClickSubmit()"/>
</mx:HBox>
</mx:VBox>
</mx:Panel>
</mx:VBox> -
Help needed for WA01 enhancemnet
I need a small help reg t-code WA01- Create allocation table. while for a Pur Org and Pur Grp and article, we calculate Planned qty after we choose Adopt DC stock in menu bar dropdown,it is required that planned qty field should be populated with some custom value calculated based on certain rules rather than standard SAP calculation.
To this effect, I need an enhancement spot /BAdI/User exit etc to incorporate my custom solution but couldn't find one which triggers at this level(ie when we choose Adopt DC Stock).
Please let me know how this can be faciliated if anyone has idea on this. Tahnks in adv.hi ranjan,
I am listin all the Badis and the userexits for the WA01 transaction.
Enhancement/ Business Add-in Description
Enhancement
WAUFT007 User Exit Article Selection
WAUFT006 Allocation Table Number Determination
WAUFT005 Del. Phase Per Article and Ship-To Party or DC Determination
WAUFT004 User exit for recipient determination for DCs
WAUFT003 Determination of DC order quantity (reduced order quantity)
WAUFT002 Check: Automatically adopt requested qty as confirmed qty
WAUFT001 User Exit Allocations
Business Add-in
WRF_X_AT_SYNC_I AT - APC Confirmation
WRF_X_AT_POHF_OTB_I Use Fashion Purchasing FM to Generate VO with OTB Check
WRF_X_AT_LIST_LOC_E Change End Date of Listing in Allocation Table
WRF_X_AT_DET_EADAT_I Access to Add-On Data for Allocation Table
WRF_X_AT_CREATE_I Create Allocation Table
WRF_X_AT_CHECK_E (Incompleteness) Checks in Allocation Table
WRF_X_AT_ARTH_I Determine the Article Hierarchy for an Allocation Table Item
WRF_X_AT_AH_SCREEN_I Subscreen for Article Hierarchy/Purchasing List Number
WAUF_X_STORE_CONSTRA Alloc. Table - Restriction of Recipients with Fast Changes
WAUF_X_AT_FCODES_I FCodes Allocation Table
WALL_DETERMINE_DC Supply Source Determination for Customers (W/O Plant Ref.)
RAT_PROCUREMENT_TYPE Procurement Document Determination (PO/Sales Order)
AT_CONS_PROCESSING Consignment Processing in Allocation Table
keep teh Break point in each abdi and user exit and run and chesk which badi executes for your particular transaction and you can modify the code in that particular user exit or badi.
Reward if usefull,
Thanks & regards,
Kalyan. -
Hi friends,
I need a small help.I am implementing a custom enhancement for Sales Orders.
For this,I am using the User Exit SAVE_DOCUMENT_PREPARE in the standard program MV45FZZ(Include in SAPMV45A).I wrote a small logic,that gets triggered each time a Sales Order is created or Changed through VA01 or VA02 respectively.
For <b>VA02</b> i.e., <b>change</b> my logic works pretty well.I am capturing the current Sales Order Number using <b>XVBAP-VBELN</b> and implementing my logic.
But while <b>creation</b> i.e., <b>VA01</b>,I am using the same logic and trying to capture current Sales Order through <b>XVBAP-VBELN</b>(not yet saved).
But,<b>XVBAP-VBELN</b> is blank when I am debugging.
Where does the Sales Order Number get saved,while it is being created i.e., before being saved.
Regards,
Imran.check the value of <b>vbak-vbeln</b> in the subroutine <b>userexit_save_document</b>
Also make a note of the following
<b>USEREXIT_SAVE_DOCUMENT</b>
Use this user exit to fill user-specific statistics update tables.
The user exit is called up by the FORM routine BELEG-SICHERN before
the COMMIT command.
Note
If a standard field is changed, the field r185d-dataloss is set to
X. The system queries this indicator at the beginning of the safety
routine. This is why this indicator must also be set during the
maintenance of user-specific tables that are also to be saved.
<b>USEREXIT_SAVE_DOCUMENT_PREPARE</b>
Use this user exit to make certain changes or checks immediately
before saving a document. It is the last possibility for changing or
checking a document before posting.
The user exit is carried out at the beginning of the FORM routine
BELEG_SICHERN. -
Troubleshooting help needed: My iMac keeps crashing and restarting with a notice: "Spinlock application timed out" What can I do?
Launch the Console application in any of the following ways:
☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
☞ Open LaunchPad. Click Utilities, then Console in the page that opens.
Select the most recent panic log under System Diagnostic Reports. Post the contents — the text, please, not a screenshot. In the interest of privacy, I suggest you edit out the “Anonymous UUID,” a long string of letters, numbers, and dashes in the header and body of the report, if it’s present (it may not be.) Please don't post shutdownStall, spin, or hang reports. -
help needed for writing query
i have the following tables(with data) as mentioned below
FK*-foregin key (SUBJECTS)
FK**-foregin key (COMBINATION)
1)SUBJECTS(table name)
SUB_ID(NUMBER) SUB_CODE(VARCHAR2) SUB_NAME (VARCHAR2)
2 02 Computer Science
3 03 Physics
4 04 Chemistry
5 05 Mathematics
7 07 Commerce
8 08 Computer Applications
9 09 Biology
2)COMBINATION
COMB_ID(NUMBER) COMB_NAME(VARCHAR2) SUB_ID1(NUMBER(FK*)) SUB_ID2(NUMBER(FK*)) SUB_ID3(NUMBER(FK*)) SUBJ_ID4(NUMBER(FK*))
383 S1 9 4 2 3
384 S2 4 2 5 3
---------I actually designed the ABOVE table also like this
3) a)COMBINATION
COMB_ID(NUMBER) COMB_NAME(VARCHAR2)
383 S1
384 S2
b)COMBINATION_DET
COMBDET_ID(NUMBER) COMB_ID(FK**) SUB_ID(FK*)
1 383 9
2 383 4
3 383 2
4 383 3
5 384 4
6 384 2
7 384 5
8 384 3
Business rule: a combination consists of a maximum of 4 subjects (must contain)
and the user is less relevant to a COMB_NAME(name of combinations) but user need
the subjects contained in combinations
i need the following output
COMB_ID COMB_NAME SUBJECT1 SUBJECT2 SUBJECT3 SUBJECT4
383 S1 Biology Chemistry Computer Science Physics
384 S2 Chemistry Computer Science Mathematics Physics
or even this is enough(what i actually needed)
COMB_ID subjects
383 Biology,Chemistry,Computer Science,Physics
384 Chemistry,Computer Science,Mathematics,Physics
you can use any of the COMBINATION table(either (2) or (3))
and i want to know
1)which design is good in this case
(i think SUB_ID1,SUB_ID2,SUB_ID3,SUB_ID4 is not a
good method to link with same table but if 4 subjects only(and must) comes
detail table is not neccessary )
now i am achieving the result by program-coding in C# after getting the rows from oracle
i am using oracle 9i (also ODP.NET)
i want to know how can i get the result in the stored procedure itsef.
2)how it could be designed in any other way.
any help/suggestion is welcome
thanks for your time --PradeeshWell I forgot the table-alias, here now with:
SELECT C.COMB_ID
, C.COMB_NAME
, (SELECT SUB_NAME
FROM SUBJECTS
WHERE SUB_ID = C.SUB_ID1) AS SUBJECT_NAME1
, (SELECT SUB_NAME
FROM SUBJECTS
WHERE SUB_ID = C.SUB_ID2) AS SUBJECT_NAME2
, (SELECT SUB_NAME
FROM SUBJECTS
WHERE SUB_ID = C.SUB_ID3) AS SUBJECT_NAME3
, (SELECT SUB_NAME
FROM SUBJECTS
WHERE SUB_ID = C.SUB_ID4) AS SUBJECT_NAME4
FROM COMBINATION C;
As you need exactly 4 subjects, the columns-solution is just fine I would say. -
Hi all help needed I have a canon 40D. I am thinking of buying a canon 6D.
But not sure that my lenses will work.
I have a 170mm/ 500mm APO Sigma.
A 10/20 ex Sigma HSM IF.
And a 180 APO Sigma Macro or do I have to scrap them and buy others.
ALL Help will be greatly received. Yours BRODIEIn short, I love it. I was going to buy the 5DMark III. After playing with it for a while at my local Fry's store where they put 5DMII, 5DMIII and 6D next to each other, using the same 24-105L lens, I decided to get the 6D and pocket the different for lens later.
I'm upgrading from the 30D. So I think you'll love it. It's a great camera. I have used 5DMII extensively before (borrowing from a close friend).
Funny thing is at first I don't really care about the GPS and Wifi much. I thought they're just marketing-gimmick. But once you have it, it is actually really fun and helpful. For example, I can place the 6D on a long "monopod", then use the app on the phone to control the camera to get some unique perspective on some scenes. It's fun and great. GPS is also nice for travel guy like me.
Weekend Travelers Blog | Eastern Sierra Fall Color Guide
Maybe you are looking for
-
How do I remove an old appleid from iPhone. A new one has been updated in destined but when I go to update apps that were installed using old userid still appears. The old I'd is not active and doesn't exist any more so I need to change the id that t
-
Adobe acrobat 8 won't install with Indesign and Dreamweaver CS4
I have a client who I had to build a new computer for which is Windows XP Pro. On her original machine I had AA8, InDesign CS4, DreamWeaver CS4, Contribute CS5, Adobe Reader 9.3 and Adobe Photoshop 6. I have tried puting AA8 on the new machine that h
-
Serious audio glitch problem in 9.1.1 - please help!
Got a problem with audio glitching that is driving me insane - hopefully someone can help (please! :_)) I'm on Logic 9.1.1 on a recent MacPro using 10.5.8, 12Gb memory. I've created an arrangement in Logic with two multi timbral / multi-output instru
-
Copying back home a big Keynote presentation from iCloud
copying back home a big Keynote presentation from iCloud
-
In my library I have only one song checked to go onto my iPod nano by a certain artist, but when I go to the 'Artist' option in my iPod, that artist doesn't show up. Why doesn't it show up if I have only one song from her? Is there any way to change