Give your answers please!!
i have made a GUI with 5 options.
now i want this 5 icons aligned to the center of the window.
what i have done to do this is i have used gridlayout to arrange them in a single column.the problem is that whenever i click on any area along that icon(horizontal area) that option gets selected automatically.Is this due to Grid layout?what can i do in order to allign the buttons the way i want and they can be selected when i click on them specifically and not by clicking anywhere.
i haven't used BoxLayout yet can u explain me a bit how to use it..i will try on my level as well..let me give you the code
import java.io.*;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.filechooser.*;
public class front3 extends JFrame
JRadioButton split,zip,rename,unzip;
ButtonGroup radioGroup;
public front3()
Container c = getContentPane();
c.setLayout(new gridLayout0,1));
c.setBackground(Color. white);
setSize(530,120);
setResizable(false); // to disable the maximize button
ImageIcon ip= new ImageIcon("title.jpg");
JLabel j1=new JLabel("Choose the operation to be done :",ip,JLabel.CENTER);
j1.setBackground(Color.red);
c.add(j1);
ImageIcon ii= new ImageIcon("split.jpg");
split=new JRadioButton("Splitter",ii,false);
split.setBackground(Color.white);
ImageIcon ij= new ImageIcon("zip.jpg");
zip=new JRadioButton("Zipper",ij,false);
zip.setBackground(Color.white);
ImageIcon ik= new ImageIcon("rename.jpg");
rename=new JRadioButton("Rename all",ik,false);
rename.setBackground(Color.white);
ImageIcon il= new ImageIcon("unzip.jpg");
unzip=new JRadioButton("unzip",il,false);
unzip.setBackground(Color.white);
c.add (split);
c.add(zip);
c.add(unzip);
c.add(rename);
// create logical relationship between JRadioButtons
radioGroup = new ButtonGroup();
radioGroup.add(split );
radioGroup.add( zip);
radioGroup.add(rename );
radioGroup.add( unzip);
// setPosition(250,250);
setTitle("FILE UTILITY SOFTWARE");
setSize(300,500);
setVisible(true);
public static void main(String args[])
front3 f=new front3();
f.addWindowListener(
new WindowAdapter() {
public void windowClosing(WindowEvent e)
System.exit(0);
}
Similar Messages
-
What is the error code mean? And how to solve it ?Please give your answer. Thanks
What is the error code mean? And how to solve it ?Please give your answer. Thanks
Attachments:
QQ截图20140403134626.png 59 KBduplicate post
LabVIEW Champion . Do more with less code and in less time . -
What is the error code mean? Why is there an error?And how to solve it ?Please give your answer. Thanks!
——1110340026
Attachments:
QQ图片20140403140655.jpg 108 KBSannieboyyyy wrote:
Could be me, but your VI is not working properly on the english version of LV. Can I suggest you to try programming in English in the future?
Yes, it's you. The VI is working just fine, except for some cosmetic issues with the labeling. I don't think is is a valid suggestion to force somebody to program in a specific language, especially since LabVIEW supports all these languages.
Here are the problems with the VI:
If you don't want an amplitude of zero, you need to set the amplitude control to a nonzero value before running. Simple as that!. (You could also set the input range for the amplitude control to exclude zero or use a case structure to skip certain code if the amplitude is zero).
You could also wire the error output to an indicator so it simply displays the errors, but keeps running.
Your while loop is currently useless. You can delete it and the program function will not change. Use a stop button at the loop condition.
Your while loop needs some timing so it runs at a reasonable rate. Either add a small wait or configure the signal generation to "simulate acquisition timing" instead of "run as fast as possible".
LabVIEW Champion . Do more with less code and in less time . -
How to restore my ipad?My ipad say on screen CONNECT TO ITUNE.How can i do when i connect with computer.It is need itune new version.Can you sent me.I will be waiting your answer.Please help me sir.
Check for Updates.
http://i1224.photobucket.com/albums/ee374/Diavonex/Album%208/78d42b19fa42e8d83b5 5a65e1333373f_zpsf58bbe10.jpg -
so how can i use it if i don't have created card beside i'am not the only one that have this problem too much can't use ipad because no created card so what should i do........ Do I return it to the vendor !!! :
Many thanks diesel. I cannot remember ever having an administrator password. Looks like I shall have to do a restore on my PC and not bother with the updates. Or maybe I could find my password from somewhere ? When I went into control panel I found a box with administrator and my name and it said password protected so I must have had one at some time. Any ideas on how I could find it ? Many thanks anyway. I always use a password to sign on but obviously that is not it. Eileen
-
i have brought a iphone 4 and the person i brought it from has not deleted her icloud account i need her pasword to delete it but hse wont give it to me what can i do how can i add my icloud account can you give me a reasonable answer please. thank you.
The seller needs to follow this procedure:
http://support.apple.com/kb/TS4515
If she refuses, then as Tim suggested the iPhone is probably stolen. You'll need to contact your local police department and ask how to proceed.
Regards. -
When authorize my computer, gives me message "please review your account information"
when authorize my computer, gives me message "please review your account information"
And have you reviewed your account information?
-
How do I cancel my iCloud account? Please be direct and detailed with your answer as I'm too stupid to figure this out on my own. Thank you.
You can cancel an iCloud storage upgrade within 15 days of buying: however Apple have made this as difficult as possible. If you use Express Lane you cannot proceed without entering a hardware serial number which is still eligible for AppleCare. Poster julia22 managed to find a way round it - please see this post:
https://discussions.apple.com/message/16968425#16968425
it gives the USA number - if you don't live there you will have to find an equivalent number from the 'Contact Us' link at bottom right of this page. -
Hi,
How to trigger email notification when users fail to give correct answers to reset your password in fim 2010 r2
Senario:I want put wrong answering to the Questions that i was during registration if i give wrong answers to the questions then a Email Notification should be trigger to Users.
Regards
Anil KumarHi Sylvain,
I did all thing as you told me.First i created Criteria based Set after this we created a Workflow type Action and Actvities Type Notifcation Email template and finally i called this Workflow in MPR as Set Transition and call Set that i was created below.and
check Advance View of Set this gives
<Filter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Dialect="http://schemas.microsoft.com/2006/11/XPathFilterDialect"
xmlns="/Request[(Creator">http://schemas.xmlsoap.org/ws/2004/09/enumeration">/Request[(Creator = 'b0b36673-d43b-4cfa-a7a2-aff14fd90522') and (RequestStatus = 'Denied or PostProcessingError')]</Filter>
But this is not working for me so please tell me where i am wrong.
Regards
Anil Kumar -
Why can't I change my font style, and please don't give me a apple approved generic answer, please give me a reasonable answer as to why, not just because we designed it that way.i see that we have a choice here but why not in Email
This is a forum for users to help other users, and there is no Apple presence
here. Leave your comments at http://www.apple.com/feedback, but do not
expect a response. Apple does not comment on its internal decisions.
Check the AppStore to see if there is an alternative mail app that allows what
you want. -
Hi everyone!
I'm wanting to use iMessage to talk to a friend in Russia. She has iPhone 4s and I have ipad2 wifi only. For some reason I can't send messages to her but I can to UK iPhones.
Please could you make your answers easy to understand and in plain English I I'm not good with technology and I'm not up to date on the jargon :)
Thanks in advance to anyone who can help!Hi everyone!
I'm wanting to use iMessage to talk to a friend in Russia. She has iPhone 4s and I have ipad2 wifi only. For some reason I can't send messages to her but I can to UK iPhones.
Please could you make your answers easy to understand and in plain English I I'm not good with technology and I'm not up to date on the jargon :)
Thanks in advance to anyone who can help! -
I forgot my icloud password. I attemptted to reset it by going to my security questions and answering them but when I go to verify my birthday, it says
Please verify your birth date to continue.
Month January February March April May June July August September October November December Day 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31 Year 2014
2013
2012
2011
2010
2009
2008
2007
2006
2005
2004
2003
2002
2001
2000
1999
1998
1997
1996
1995
1994
1993
1992
1991
1990
1989
1988
1987
1986
1985
1984
1983
1982
1981
1980
1979
1978
1977
1976
1975
1974
1973
1972
1971
1970
1969
1968
1967
1966
1965
1964
1963
1962
1961
1960
1959
1958
1957
1956
1955
1954
1953
1952
1951
1950
1949
1948
1947
1946
1945
1944
1943
1942
1941
1940
1939
1938
1937
1936
1935
1934
1933
1932
1931
1930
1929
1928
1927
1926
1925
1924
1923
1922
1921
1920
1919
1918
1917
1916
1915
1914
1913
1912
1911
1910
1909
1908
1907
1906
1905
1904
1903
1902
1901
1900
1899
1898
1897
1896
1895
1894
1893
1892
1891
1890
1889
1888
1887
1886
1885
1884
1883
1882
1881
1880
1879
1878
1877
1876
1875
1874
1873
1872
1871
1870
1869
1868
1867
1866
1865
1864 For your security, please provide a longer answer.
Seriously how am I suppose to provide a longer answer?If you are having problems using the website to reset your password, you can call AppleCare support. They can assist you with AppleID issues, and I believe there will be no charge for that.
AppleCare phone number: (800)-694-7466 -
When setting up Firefox Sync, I get all the way to the "Please Confirm You're Not a Robot" screen in the wizard, and enter the captcha values. I then receive in a small scrollable text area the message "Your answer was correct. Please copy and paste the text in this text box into the box below."
I copy and paste the code, in this case "03AHJ_Vuv1gStVScBWSYWw6M4_KKQ4wzhCDSzKqiCfv57XXGyvHtOk4ixehysQhOTIf-lsL41lc5n-piztjYJSKu6urCeRvETVfpzRDh7OmHCDZiIBZv9Qg4oyrmWDMu6JA7Eh-4C8aZn4" into the only other visible text box, and click the next button, only to receive the message "Incorrect words, try again."
My only option is to cancel at that point. I have tried this three times, once even starting the entire process over from the start, and it ends up with the same outcome each time.When setting up Firefox Sync, I get all the way to the "Please Confirm You're Not a Robot" screen in the wizard, and enter the captcha values. I then receive in a small scrollable text area the message "Your answer was correct. Please copy and paste the text in this text box into the box below."
I copy and paste the code, in this case "03AHJ_Vuv1gStVScBWSYWw6M4_KKQ4wzhCDSzKqiCfv57XXGyvHtOk4ixehysQhOTIf-lsL41lc5n-piztjYJSKu6urCeRvETVfpzRDh7OmHCDZiIBZv9Qg4oyrmWDMu6JA7Eh-4C8aZn4" into the only other visible text box, and click the next button, only to receive the message "Incorrect words, try again."
My only option is to cancel at that point. I have tried this three times, once even starting the entire process over from the start, and it ends up with the same outcome each time. -
the iphone 3GS dosen't accept the SIM card and the WIFI and Bluetooth is hidden..Please give me answer ..
is the iphone sim locked to another network?
-
I forgot my security questions and it says Forgot your answers? : Send reset security info email to n•••••@live.fr, but it is not one of my email adress and I don't know how to changes this, can anyone help please ?
I want to buy an app but I can't without these answersYou need to contact Apple. Click here, phone them, and ask for the Account Security team.
(87765)
Maybe you are looking for
-
Anybody got a "Paste in Place" Script?
Hi there, I have no experience with InDesign Scripts yet, but a couple of tasks on hand that would be faster with Scripts. I only know Actions in Photoshop, so I describing what I need as it would be a Photoshop Action: - Open all files in folder A (
-
"private" folder is now visible on HD
I recently restored my entire system from a Time Machine Backup. It all worked great, I got my system and files back exactly as expected, (you gotta love TM). One small problem: The "private" folder on the main level of my HD, which is supposed to be
-
How to drawing on image.
Hi, I am developing one paint program. I am drawing over an image but the image is wash out when i am dragging mouse on canvas. But when i am clicking first on canvas before selecting any button. then selecting button after that it is working fine. P
-
What camera would you recommend
What a great source of information this group is. In my quest for knowledge on iMovie HD 6, I have been lurking and reading just about everything posted. I can't help but notice the variety of cameras, and formats that are being used. Since I'm at a
-
Business Place by default in MIRO based on PO
Hi, I have a requirement where I need to default a value in the business place (BUPLA) field in MIRO based on the site(plant) in the PO. please help me how to achieve this. thanks in advance, kumar