awt 2 « GUI « Java Swing Q&A





1. Peers in AWT    coderanch.com

Dear Sir, I want to know how does a button is displayed on the container? Does the peer classes have any thing to do with it? Because someone told me that when we create a button, Button button = new Button("Click"); an object of ButtonPeer class is created. and that peer class deals with the native API to get that button ...

2. awt vs swings    coderanch.com

3. awt.Deskiop.openfile fails    coderanch.com

4. different between swing and AWT    coderanch.com

5. java.awt.geom Help    coderanch.com

We just finished a chapter in our book (http://www.amazon.com/Introduction-Computing-Programming-Java-Multimedia/dp/0131496980) and it dealt with drawing with the graphics class.And if you know, I'm still a beginner at this, and my brain doesn't exactly function like a 'programmers' should. At the end of the chapter there are questions we have to answer for a grade (blah blah blah) and I'm looking for the ...

6. Abstract in AWT?    coderanch.com

I had an exam today and one the questions asked what did "abstract" in AWT stand for. I could only guess because I really hadn't read this anywhere. I think that its because AWT's implementation (being heavyweight) is not known to us ie.. we don't know how the AWT components are mapped to the Platform. Is this correct? any help would ...

7. Swing or awt?    coderanch.com

Mr. Todd, I accept your admonition and offer the following as amplification: AWT versus Swing From that (and other discussions easily found by Googling), I encourage one to draw their own conclusions. I based my own opinion on 1) personal experience, and 2) my conclusion that Swing is an extension of AWT that improves on it and gives the programmer more ...

8. basic things with awt    coderanch.com

I want to make something similar to a phone: i want to have a display, and 10 buttons: 0-9 and enter button. each time a press a button i want to display it on the screen(a TextField). I`m thinking doing something like: Button b0 = new Button("0"); b0.addActionListener(new ButtonListener()); ... Button b9 = new Button("9"); b9.addActionListener(new ButtonListener()); Button enter = new ...

9. ImageJ, converting AWT to SWING    coderanch.com

For our Senior Design Project we are converting ImageJ's interface from AWT to SWING. The main problem is that we are not sure how to change MenuShortcut, or what the equivalent is in SWING. Any help would be greatly appreciated. Thanks! static void addItem(Menu menu, String label, int shortcut, boolean shift) { if (menu==null) return; MenuItem item; if (shortcut==0) item = ...





10. java.awt.Dimension    coderanch.com

11. Fundamentals: AWT vs Swing    coderanch.com

I've got one of those big questions that you never think about except at the outset of a project. I realized that, for my current project, I really don't want any kind of resizing or moving around of components in the JFrame. For complicated reasons, I just need to have everything in a set place, without any changes in position because ...

12. Fill java.awt.Choice from a List generated by a resultSet    coderanch.com

Hello, I'm trying to drill into a selection on a swing application. I'm calling the database running a select statement and putting the resultset into a List. From there, I want to get the value in index(3) for each iteration of the List. The problem is, I get only the first value correctly, but not the next iterations... Can someone please ...

13. AWT    coderanch.com

Sir When I run this code I get a NullPointerException.Please help me in finding the reason for this error in my code. class Sys_adm extends Frame implements ActionListener,ItemListener { Choice abc; Panel p1,p2,p3; Button btn1,btn2,bt1; Button bt2; TextField txt1,txt2,txt3,txt4,txt5,txt6; Label lb1,lb2,lb3,lb4,lb5,lb6; Label lb15,lb16; MenuBar mbar; Menu m1; Menu item1; MenuItem item2; MenuItem item3,item4,item5; MenuItem item6,item7,item8,item9,item10,item11,item12; MenuItem item13,item14,item15,item16,item17,item18,item19; String st1,st2; Statement st; ...

14. GUI First Assignment-DUE 8/1/08    java-forums.org

GUI First Assignment-DUE 8/1/08 This is my first GUI assignement which I have included the instructions below. I am having trouble starting this assignment. I am an online student and I usually have to wait 24 hours or longer for the teacher to respond to my questions. Therefore, I am hoping someong can point me in the right direction. ...

15. Help with GUI Java    java-forums.org

Hello, I have created a quick example that demonstrates how you could create more than one JFrame in the same class. Depending on your particular requirements...it might be better to create a class for each frame though...as that would make it easier when performing maintenance etc. Java Code: import java.awt.*; import java.awt.event.*; import javax.swing.*; public class MyApp { private JFrame first, ...

16. [SOLVED] Gui becomes unresponsive!    java-forums.org

note: I have two classes that extend the JFrame class. my Main calls DisplayQueryResults, which offers a GUI interface for the user to interact with my Database. Display Query results give the user the option to insert, delete and update rows. So far I have only implemented Insertion. When the user chooses to insert a row, a RowEntryFormat object is created ...





17. I need some help with converter GUI    java-forums.org

Hi, i am working on a converter that converts celsius into fahrenheit, and the other way around. here's the code i got so far it works, but all it does is displays the GUI. now i am trying to get it to actualy work, but i am having some trouble understanding how itemlistener works... I wrote a private class TempListener, but ...

18. need help to create a GUI for this program    java-forums.org

Develop an application that allows a student to open an account. the account may be savings account or current account. The student has to submit his or her names,faculty,course,year of study,university,telephone contact and email address. the student can withdraw, deposit and perform balance enquiries with the account. if the student has opened a savings account, he/she is required to submit a ...

19. GUI help please    java-forums.org

You might want to swap JPanels by using a CardLayout rather than all this swapping of JFrames. Some other suggestions: 1) Your code is somewhat convoluted and some of it appears to have been written using a stream of consciousness technique. This makes it very hard for us to understand and debug. Some techniques that can help you simplify the code ...

20. Ghost reflection in GUI    java-forums.org

I'm trying to make a simple GUI with three JPanels. In the top one, there are some labels and buttons. In the middle one, a image is drawn, and in the button one, the are some labels and JCheckBoxes. For some reason, there's a reflection in the middle JPanel, of the last button I've touched, and of some of the labels ...

21. can any one help me about this GUI ?    java-forums.org

can any one help me about this GUI ? i want create widow that have two part one left one at right on the left panel i have some shape like fill circle and i have button and ... i want when user click on fill circle at left panle then click on right panel , exactly at just point fill ...

22. Very Strange Problem related To GUI    java-forums.org

Well i made a GUI application (Examination Simulator) it works fine on my laptop and other laptops too. But when i executed it on my college PCs if i click the buttons fast or after a particular time the GUI components that is label button these all components suddenly disappear . Strange Problem Please Help Thanks in advance :)

23. GUI with java.lang.IllegalStateException    java-forums.org

GUI with java.lang.IllegalStateException Hello everybody, I'm having some problems with a GUI application. I wanted to do a really nice layout so I created it in the Netbeans editor, copied it into eclipse and started working on it. Now I get an Illegal State Exception and I have no idea where the problem is! I've inserted the sourcecode and ...

24. GUI help. Don t understand    java-forums.org

I'm trying to make a GUI. I want it to solve dimensional analysis. I have made a program that does this, but with no GUI: Java Code: /* * @(#)DifAnalysis.java * * @https://sites.google.com/site/s0m3b0dysstuff/ * @Ryan Fabela * @version 1.00 2010/9/24 */ import java.util.*; import java.io.*; import java.lang.Math; import java.lang.Long; public class DifAnalysis { public static void main(String[] Arguments){ Scanner oScan = ...

25. Java GUI problem    java-forums.org

Java GUI problem Hey there, I have to create a program that implements a voting maching using GUI. I have the window set up good enough for my liking. I am just having trouble enabling certain buttons at a certain time. Here are my classes and text files I am using. I have posted where I need help in ...

26. Problems running my first GUI    java-forums.org

Hello. This is my first time dealing with GUI in Java. I'm using Eclipse (Galileo) with the Visual Editor. I tried Running my application (not really an application, just a Frame with a Button) both with and without the mains class (as Java Application and java Beans, respectively), but I can preview my frame and button. The application does run, because ...

27. GUI[help]    java-forums.org

I have a java project to make a tic-tac-toe game with variable dimensions and variable number of players. For example, if the grid is 9x9. Players will play normally trying to make 3 consecutive X or 0. Each player will have a score which will be incremented if he manages to make 3 consecutive X or 0. So far I made ...

28. gui problem    java-forums.org

hi, hi, i have two problems with out exceptions : 1. when i run the code the shape that i create coen on my menu bar if i draw them near by... 2. when i draw shape near the menu and open the menu he erase from the screen some of the shape and after i do something else the shape ...

29. need help with GUI    java-forums.org

i got some questions about swing and i need help in it: when am working with netbeans can i set the x location and y location of a JArea?. Q2: can i divide a textarea or textboxto have cells (to be like a ghant chart)? Q3: can i add swing objects at run time?

31. desing GUI for sql/access    java-forums.org

32. GUI Help.    java-forums.org

33. problem making a gui    java-forums.org

34. I need help with GUI using java?    java-forums.org

hey I have a project called ImageViewer and within this project I have these classes: DarkerFilter, EdgeFilter, Filter, FishEyeFilter, GrayScaleFilter, ImageDriver, ImageFileManager, ImagePanel, ImageViewer, InvertFilter, LighterFilter, MirrorFilter, OFImage, PixelizeFilter,SmoothFilter, SolarizeFilter and ThresholdFilter. Task: is to add my own features to the ImageViewer, which is a scrollbar (V and H) and a next Image button. Problem: i don't know how to write ...

35. java GUI    java-forums.org

36. Linking Multiple GUIs    java-forums.org

I'm working on a simple educational game based on genetics. Its a group project and my partner designed the main GUIs. The game has multiple GUIs which link to one another but because he didn't know how to pass control from one GUI class to another he essentially made a single GUI class and just manipulated the visibility of the different ...

37. Okay forum, help me out with this GUI please?    java-forums.org

I am making an auto-typing script. I am having trouble and I don't know where. Thanks in advanced! PS: I have a class that creates an Action variable and calls the setdefaultcloseoperation, setsize, and setvisible Code: import javax.swing.*; import java.awt.*; import java.awt.event.*; import java.util.Random; public class Action extends JFrame{ private JTextField text; private JTextField time; private JButton b; private int itime; ...

38. GUI Creator (Recruitment)    java-forums.org

Hi all, I am currently working on a program that will calculate the customer lifetime value of an organisation. Here is an article to explain what it is I am doing: http://mapo.vub.ac.be/Thesisonderwerpen2004_link04.pdf I am a math major so I can do the mathematics programming. However, I truly lack GUI programming skills and I was wondering if someone wanted to embark on ...

39. math and GUI    java-forums.org

Hello, can anyone suggest on a simple as possible GUI tool \ method that i can work with mathematical symbols \ equations with? my goal is to be able to create equations on screen such as ____________ (x+5)*(x-311) in other words i would like to be able to put root sign over a given equation. more over i would like to ...

40. netbean GUI and agent    java-forums.org

41. beautifying the GUI    java-forums.org

Well it shouldn't be to hard... create a JWindow, set to always on top, maximize to full screen, disable monitors that is not the main screen and start learning allot of Photoshop skills and how to create gif images... after that you need to get a rather good guide to start learning the graphics, paint, paintComponent, draw, and some 2d classes ...

42. GUI for Abstract...    java-forums.org

Hey, I have a Java Abstract class that does the job of an IRC bot Client. The thing is that I always have to run it in the command prompt... Is there any way to create a AWT / Swing GUI to display and run the Bot with all its outputs?:confused: ---Any Help is always accepted--- *****Thanks in Advance!******

43. GUI help please!!    java-forums.org

GUI help please!! I need help with my GUI, we have to make it so that he can't blow it up. I've put in try and catch statements and set it up but I couldn't get my textArea to work and the only way I could make it work was by removing my Layout. When I type in certain ...