Tutorial on creating GUI with buttons?
Hi everyone,
I am a student in my second Java programming class and need to create a GUI that allows user input. After reading through the chapters assigned I'm still confused on how to do this. Does anyone know of a good web page/site that can give me some pointers?
Thank you very much for any pointers you can send my way.
803550 wrote:
Lol, no google isn't broken. I thought that someone on here might know of a good site to look at. ..I'll give you good keywords instead - swing+tutorial. Top link.
Similar Messages
-
Quickstart to creating Window with Buttons+Hot Spots+
I'm a newbie too Java.
Would someone be kind enough to point me to a quick start... tutoral... sample code or whatever...
- to create a window with...
- Buttons
- Hot Spots
- Hot Objects
- Data Entry Fields, etc...
This will be a demo prototype for an app that may run both as a stand-alone application and a web based application... multi-platform...
thanks for any assistance.
WillCheck out the [url http://java.sun.com/docs/books/tutorial/]Creating a GUI with JFC/Swing tutorial.
-
"Quit LV" creates exception - How can i exit created application with button-click?
Hello,
i added a small vi-popup at beginning of my program where user can select between 3 buttons. The fourth button is Exit that should exit the application.
For this i added the "Quit Labview" = True.
It works fine in developer-mode but when i run it in the application exe-file this creates the following exception:
Why is this not working in a application?
Is there a better thing to quit the program?
ThxThe problem is that this is sub-vi Nr 2 of 10 that are all connected in a row with the error in/out.
That means i would have to put the other 8 sub-vis inside a case-structure and give the "close"-vi an output to feed the case.
It is simpler to just kill the whole LV.
#Date: Di, 9. Sep 2014 19:08:43
#OSName: Windows 7 Ultimate Service Pack 1
#OSVers: 6.1
#OSBuild: 7601
#AppName: XXXXX
#Version: 13.0.1 32-bit
#AppKind: AppLib
#AppModDate: 09/09/2014 16:53 GMT
#LabVIEW Base Address: 0x30000000
starting LabVIEW Execution System 2 Thread 0 , capacity: 24 at [3493127323,39019060, (19:08:43,390190602 2014:09:09)]
starting LabVIEW Execution System 2 Thread 1 , capacity: 24 at [3493127323,39019060, (19:08:43,390190602 2014:09:09)]
starting LabVIEW Execution System 2 Thread 2 , capacity: 24 at [3493127323,39019060, (19:08:43,390190602 2014:09:09)]
starting LabVIEW Execution System 2 Thread 3 , capacity: 24 at [3493127323,39019060, (19:08:43,390190602 2014:09:09)]
<DEBUG_OUTPUT>
09.09.2014 19:08:44.496
Crash 0x00000000: Crash caught by NIER
File Unknown(0) : Crash 0x00000000: Crash caught by NIER
minidump id: 02df131c-8b0b-4227-860a-d1f27df161c8
ExceptionCode: 0xC0000005
</DEBUG_OUTPUT>
0x30761D96 - lvrt <unknown> + 0
0x3076211C - lvrt <unknown> + 0
0x7C37FDB4 - MSVCR71 <unknown> + 0
0x75A40303 - kernel32 <unknown> + 0
0x77E174FF - ntdll <unknown> + 0
0x77DD9F45 - ntdll <unknown> + 0
0x00000000 - <unknown> <unknown> + 0 -
How can I start any application with buttons
Hello, I want to start any kind of applications with Buttons. I want to make me a GUI with buttons and with one button I want to start Outlook, but I dont know how this will work!
THX for your helpRuntime class exec methods
If your Outlook executable is in different path ... import java.io.*;
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
public class Test2 extends JFrame implements ActionListener
public Test2()
super("Test");
setDefaultCloseOperation(EXIT_ON_CLOSE);
setSize(300, 200);
JButton b = new JButton("Outlook Express");
b.addActionListener(this);
getContentPane().setLayout(new FlowLayout());
getContentPane().add(b);
public void actionPerformed(ActionEvent e)
try{
Runtime runTime = Runtime.getRuntime();
Process proc = runTime.exec
("C:\\Program Files\\Outlook Express\\msimn.exe");
proc.waitFor();
}catch(IOException ioe){System.out.println("Wham");}
catch(InterruptedException ie){System.out.println("Bop");}
public static void main(String[] args)
new Test2().setVisible(true);
} -
How can I create a "Next" button with Insert database action
Hello,
I want to create a "Next" button that will redirect to another page and at the same time to do an INSERT database action. I've searched on google but I didn't find nothing specific that could help me.
Below are some screenshots:
http://imagizer.imageshack.us/v2/800x600q90/22/2yqj.jpg
http://imagizer.imageshack.us/v2/800x600q90/585/wbn6.jpg
Thanks.DO NOT USE THIS CODE !!!!
Declare
-- Added by ramani 20-feb-2013
Seq_Val_ Number;
begin
if :P17_NWM_DOC_NO is null then
Select Nvl(count(NWM_DOC_NO),0) + 1 -- THIS IS VERY VERY WRONG !!! REPLACE WITH A SEQUENCE !!!!!!!!!!!!!!
into Seq_Val_
from DMS_NEW_MASTER;
-- ref number
return Seq_Val_ ;
--summa oru elsif irukku
end if;
end; -
How to create Labview User Interface with buttons?
Hello,
I try to create a user interface, where the TestStand sequencies can be selected one by one not only Test UUT, Single run and run Mainsequence (about 20 buttons needed).
I'm playing with the simple UI shipped with TS and can load the sequence file and run automatically a sequence (Main or another).
How can I create and assign buttons to all sequence files in my TS project?
Any help would be appreciated.
Thanks. (TS 4.0, LV 8.0)I've modified my main VI with the below steps.
I still don't know how to create and assign front panel buttons to the user interface.
Anybody could explain to me how do I need to modify the attached part of my main vi and how to assign buttons.
Thanks.
Attachments:
InteractiveArgs_2.png 12 KB -
Im trying to create a fading button with a fading action.
I can't figure out how to create a fading button with an additional action to it. I'll do my best to lay out how the actions should work: [red = not working]
Button > roll over> fade> (that part I have down perfectly) click button> button temporarily replaced with text> roll out of text > process repeated in reverse for smooth fading.
Every time I set up all these actions and get it the way I want, I run into a bunch of problems:
Text box holder and text can not be over the button. (Where I need them to sit) When they sit over the button it blocks it from doing any of its specified actions. So I'll make the text box and text a hidden item, then they lose their transition and start flickering when they are interacted with.
This is basically the last piece of my clients new site and I just need to figure this one little thing out. Please help if possible!Try to group the elements so they work together.
-
Creating a little GUI with adding DNS record functionality
Hi all,
Creating a DNS record (A record) is pretty straight forward in Powershell. I wonder if somebody knows how to create a little GUI with the powershell commands in the background to create DNS records.
For example something like a HTML form in where u can enter the DNS name, the Zone and the IPv4 address. Click Add and Powershell will add it on the background. I cannot find any good information on this when i google on it.
Thanks!Hi Bennekommer,
I‘m writing to check if the suggestions were helpful, if you have any questions, please feel free to let me know.
If you have any feedback on our support, please click here.
Best Regards,
Anna
TechNet Community Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected] -
How to create a toggle button which has some id associated with it
Hi all,
This is my problem
<formid><some value in a text box><toggle button>
here formid is a hidden parameter.
There can be multiple records of this type...the user can change the text box as well as toggle any record.
Now im unable to create a toggle button such that it is related to the formid as in when a user toggles between two values i want to be able to link that button with the form id.Assign an ID to the button? I don't fully understand the problem either.
-
In Search for Automatic Sliding Content with Buttons tutorial
I would like to implement a cross screen sliding content. I would like this content to have buttons which allow to move from one section to another. I would like this buttons to be in the ON position when the corresponding section is on the screen.
I would like it to start and sycle once automatically, yet to have user a control over it with buttons.
Does any one know a good tutorial site where I can find something like that?check http://www.greensock.com/tag/tutorials/
-
Create Window with Textbox and Button For getting Input Value
Hi All,
I have create plugin application but i want to take input from user. Therefore i want to create window with textbox and button.
please may i get solution...Or if that's all you need to do, just use JavaScript or a form.
-
Create a Next-button with a goto-command?
Hello,
was wondering if it is possible to create a Next button with a goto-command, similar to this "back"-button: goto://FolioNavigation/lastview ?
TimHi Bob,
thank you for the answer Yes, you understood it right. I am making an app similar to a website experience (DPS is probably not really the best thing for it, just very practical to use since it's in Indesign). I guess I will have to work around it Thanks again! -
How to create a rollover button effect in Captivate 7?
Hi,
I recently upgraded from Captivate 6 to Captivate 7 and am curious to know how I can create a rollover state for a SmartShape button. Basically, let's say I have a SmartShape being used as a button. What I want is to have the button have a glow effect and a shadow effect each time the mouse is hovered over it. Is there an easier way than having two objects on the slide -- one as the normal state and one the mouse hoever image. What I'm thinking is that the mouse hovered state image will have it's 'Visible in Output' set as unchecked and I can use an Advanced Action to show the object on mouse hover. Perhaps I can have the mouse hovered state image as a rollover SmartShape too?
Nonetheless, this looks like too much work. If I have 10 clickables on the page for which I want rollover effects, I would need to have 10 additional objects with their rollover states -- just seems like too much, but perhaps that's the Captivate way. Or I am I missing the obvious?
Any help would be appreciated.
Thanks,
SeanMost people would say the easiest way to achieve what you are talking about would be to just create your own custom image button in a graphics editor and give the Over state image having the glow effect that you want.
If you decide to go that route, this tutorial describes the process of creating an image button:
http://www.infosemantics.com.au/adobe-captivate/create-custom-image-buttons
Another possibility is that you can use the Infosemantics Event Handler widget to trigger an Apply Effect action and use the Glow filter as the effect.
However, this may require some tweaking since it's not that easy to time effects that are applied via an advanced action. -
How can i create a filechooser button inside the plugin window?
Hi
i'd like to create a filechooser button to load/save but inside the plugin window. Is it possible ? if yes how can i do that ?
and i need the algorithm to be Mac/Windows compatible if possible
thanks a lot
*best regards*
JeffIf by the "plugin window" you mean the dialog an automation or a filter plugin from the SDK sample code opens for you, you have to write platform-specific code using either Cocoa on Mac or regular WinAPI on Windows (e.g. by hooking GetOpenFileName()/GetSaveFileName() functions to a button you will add to the resource file or create dynamically). Take a look at any plugin that has a GUI (e.g. the Dissolve plugin) and you'll see that the GUI code is entirely platform-specific as there is no platform-independed GUI framework bundled with Photoshop anymore.
Another option is to use some third-party cross-platform library such as Qt, but if you just need a couple of buttons and file selection dialogs it's probably not worth the trouble,. -
How to make a scroll Bar with buttons
Hi all,
I am using Flash cs6 on an iMAC running 10.7.2
I would like to know if anyone could please point me to a tutorial, showing "how to create a scroll bar with buttons". I am having a heck of a time finding a tutorial.
Many thanks in advance.
regards,
DHhttp://learnola.com/2008/10/27/flash-tutorial-create-a-custom-scrollbar-with-actionscript/
Maybe you are looking for
-
I did ask this question before, about a week - week and a half ago. However, it had not received any answers after about 4 days. My browser crashed and I lost the page! Anyway, I keep getting notifications indicating that I need to download update 3.
-
Problem instaling Subscriber in netware cluster
Hello. I am using ZSM 7.0.1 installation program and trying to install only subscriber functinality on a cluster OES Netware with Sp5. The installation says it goes successful in the 2 logfiles that comes up after the installation but when I try to o
-
Hi all, Does anybody have any idea for table, for CODE and catalog of activity reason? Regards PR
-
New MBP with Lion at 97% battery only showing 4:57 mins...
After fully charging laptop to reach to 100%, I intentionally unplugged so I can see if it will start counting from 7:00 hrs. But to my disappointment, it only starts at 5:00 hrs downwards....right now I am only downloading updates from App Store. I
-
How do I match the HP Photosmart 6510 printout to my screen in Photoshop on my HP Folio13?
HP Photosmart 6510 B211a HP Folio13 64 Bit i5 Windows 7 Home Premium