Design « Development « Java Swing Q&A





1. Defining templates for common look and feel pragmatically    stackoverflow.com

I have a new project which simply put, is an attempt to formalize the look and feel of all of our departmental pages. I Googled around and found many tutorials which ...

2. Top tips for designing GUIs?    stackoverflow.com

A while back I read (before I lost it) a great book called GUI Bloopers which was full of examples of bad GUI design but also full of ...

3. Designing interface between application and GUI    stackoverflow.com

For homework, I need to build a small java application.The main goal is to learn how to interact with XML. But a second goal is to learn how to build such ...

4. Design a GUI for a J2ME app    stackoverflow.com

How do I create a J2ME app for cellphones with a GUI similar to the menus you see in Java games? I've tried MIDlets with Netbeans but they only show you ...

5. Swing & NetBeans 6.7.2 design view    stackoverflow.com

I could not open the swing java file in design view because *.java and *.form are in different folder. How can I link those files in Netbeans ?

6. Java GUI Design Advice    stackoverflow.com

I'm programming my very first GUI app in Java using the Swing framework. I've coded a basic login system using the JTextField, JPasswordField, and JButton classes. Now, I'm writing the actionPerformed ...

7. Java Code Design Question and Example    stackoverflow.com

Hey everyone, I've been writing code in Java for awhile now, however I feel as though I lack in code "design" - that is, creating packages and separating classes and such. ...

8. Matisse or Jigloo?    stackoverflow.com

We have a dilema; developing desktop application using matisse or jigloo.. Matisse has this XML form files which we are affraid of maintaining later, we don't even know should MyEclipse further support ...

9. Java Swing design    stackoverflow.com

I have a question regarding coding a Swing UI. If I want to make a software with some option e.g. on the first Frame I have three buttons (New, Option, Exit). Now ...





10. How to make good gui design in Swing    stackoverflow.com

I've develop a Java Swing application but I want to improve the design of my Swing frames. I search for this issue in google, but i cant ...

11. Where do i implement the main() function in a Swing program?    stackoverflow.com

I was just curious where i should place the main function in a Java Swing program. It seems as If it's just way too short too create a brand new class ...

12. Java GUI building tips?    stackoverflow.com

I'm building a Java GUI for some code, and I'm not quite sure about some design aspects. As some background - The GUI will be used only for one stream of ...

13. Turn photoshop design into Java GUI    stackoverflow.com

I can't seem to find anybody who has done or posted something like this; Essentially I want to design my own UI in photoshop and then slice down the images to ...

14. MVP Passive View - Composite Views & Composite Presenters    stackoverflow.com

I found M. Fowler article on Passive View pattern. I would like to apply it in my application. I use Swing for UI. I spent several hours searching tutorials ...

15. Java GUI element design    stackoverflow.com

I want to have custom design for buttons, lists and every element of GUI. I can see Swing, AWT and other are providing some default design. How can I customize it? Can ...

16. design question for java SWING app    stackoverflow.com

Note: This is for a SWING course I am taking. I have an assignment to make a simple graphics package (draw circles, squares, etc). I was thinking of having multiple dialog boxes for ...





17. Design: Use class or instance references?    stackoverflow.com

Recently in a project I saw another developer call custom nodes from a JTree using the class name as a reference to then trigger the display of a Panel in the ...

18. Which of these two examples is a better code design?    stackoverflow.com

Example #1

public void mouseClicked(MouseEvent e) {
    if (isShowParameters)
       isShowParameters = false;
    else
       isShowParameters ...

19. Help me figure out how to design a gui in java    stackoverflow.com

I have an app all coded up - it's my first one, a simple inventory application. It has been written in Java and now it's time for the last step. I ...

20. How to allow user to design Java GUI    stackoverflow.com

I have a java application that currently reads from and writes to an MS Access database. I'd like to be able to allow the user to add a new table ...

21. Netbeans 7.0.1 acts weird, couldn't even edit the GUI in design mode    stackoverflow.com

I'm experiencing a very weird problem in Netbeans 7.0.1 while designing a GUI. At first it was all good, I could design and adjust all the swing components easily and normally. ...

22. Designing A Website With A Very Close Look And Feel To A Famoous One    stackoverflow.com

First of all I'm not sure if this is the right place to ask this question. But if it's not please note me to delete the question. Taking a short look on ...

23. Swing Component (widget) Placement : Design view    forums.netbeans.org

Hello all, While using the Design View to place/arrange/organize the layout of the widgets (Swing components), I'm having some issues with the IDE's idea of where it wants things to be ...

24. GUI is different from the design prevew    forums.netbeans.org

Please help me and excuse me for my bad english, but I'm italian... I have a very big problem... In prevew design my GUI is all ok: But when I run ...

25. GUI design problem    forums.netbeans.org

Hello All, I am new to Java and I have been using NetBeans 6.8 for a while now for GUI designs. I like the designer with auto alignment features, it helps ...

26. The design view and the actual GUI program when run are different!    forums.netbeans.org

I have made this certain program using the click-and-drag functionality of Netbeans 6.8. At first, the design view look fine. But when I ran the program, the GUI looks destroyed. The ...

27. Differences in Design Preview and Actual Program running - Objects in GUI are not present    forums.netbeans.org

Hello, I searched topics but did not see others having this trouble. I am using NetBeans 6.7.1 and building a GUI using the click and drag feature. When I look at ...

28. Help Swing Design View gone    forums.netbeans.org

Hi, I'm new to swing but I've been working on little projects here and there with swing. To try and make things faster I've been using the designer that comes with NetBeans. Well I spend about 5 hours changing my UI around last night. This morning when I opened up NetBeans the design view starts to load then comes up with ...

29. How Do I Think & Design in OOP?    coderanch.com

I am relatively new to object oriented programming. I'm not accustomed to thinking in terms of packages, classes, objects, etc. before writing code. How do I begin to think in terms of OOP while designing a program or system before coding it? Is there any book or technique that could help me?

30. Swing Design Question    coderanch.com

Thanks Paul. My Menu Bar will be the same throughout the Aplication. The Tool Bar on the other hand will be a little more dynamic. I would like to set it up so that the user can modify the tool bar, so I will probably put that in a class by itself. Thanks Again!! ------------------ Happy Coding, Gregg Bolinger

31. GUI design by SUN    coderanch.com

I was scanning through the Look And Feel Tutorial and GUI design on java.sun.com and came across a few things I did not know. However, one of them seems to not be available. According to the site: The JToolBar.isRollover client property is set to true to enable mouse-over borders. This is suposed to keep the coder from having to implement a ...

32. How to design a GUI which has n number of component are changing depending on the act    coderanch.com

Hello, I have a problem in designing a GUI. The Gui contain number of components which being changing on the frame depending on the action. For example: Initial frame contain only the combobox which has few data( let we take tennis, cricket, football..) If the user select one of this then the frame should add few more component like cricket should ...

33. custom component design    coderanch.com

Hi Shyam, Are you using AWT or swing? Do you want the component to be event driven or method driven? You need to answer these and some other basic questions before you start coding. There are countless ways to do what you want to do, you just have to figure out which way you want to go. Hope this helps, Michael ...

34. Design Help    coderanch.com

35. Swing Application Design    coderanch.com

Hello, If I want to dyamically build a GUI from an XML file where the number of containers will not be known untill runtime, what is the best method for tracking them? I currently am adding the created containers to a hash map. With a key deliminated in the XML file. Is this a good solution? Are there better ways? Many ...

36. Swing App Design Question    coderanch.com

Hello, If I want to dyamically build a GUI from an XML file where the number of containers will not be known untill runtime, what is the best method for tracking them? I currently am adding the created containers to a hash map. With a key deliminated in the XML file. Is this a good solution? Are there better ways? Many ...

37. How to design ?    coderanch.com

I am new in Swing application. I want to write an application that has login screen for user login when the application launch. After the user login, it will show another screen which has several buttons. Each button when clicks will show another screen for different functions. The new screen also has another buttons to go to the new screens etc... ...

38. GUI Design Issue    coderanch.com

I have created a GUI which consists of a JFrame and a menubar. The menu bar has several menus which corresponds to different views (JPanels). Each view displays a number of JTextfield and table. The data in each view can be expressed in either metric unit or english unit. When user selects a menuitem "JRadioButtonMenuItem" (e.g. SI Unit) contained in a ...

39. How to design this part?    coderanch.com

40. How to perform this design?    coderanch.com

41. GUI application design    coderanch.com

Hi, being fairly new to this, I'd like some advice on how to go about designing a gui based application (not the gui itself), specifically how to link the gui to the application logic. I've read stuff about MVC architecture. Am I write in thinking that in this setup: the gui should not know anything about the underlying model, and vice-versa? ...

42. Design issue in swings.Help required.    coderanch.com

HI, I'am using a Frame to show MenuBar,ToolBar,LeftTree and RightWorkSpace. I have added RightWorkSpace to desktoppane.And my desktoppane extends JInternalFrames.Now I want any events generated by clicking lineitems in LeftTree or buttons in ToolBar, to appear as internalframes in my RightWorkSpace.So that I can manage these InternalFrames through my desktoppane.For that I'am returning internalFrame objects from RightWorkSpace into desktoppane. I want ...

43. General design question    coderanch.com

Might be a stupid question but... I've build a few sortable test table applets for a page that I am programming. The tables are rather long-about 500 lines of code because they are sortable. The tables seem to be doing everything I want. Now I have built the rest of the page and I am thinking that it might be best ...

44. design advice    coderanch.com

45. Swing Application Design    coderanch.com

Does anyone know a good example or open source Swing application? I've had my head in Web development the last 7 years. It looks like Card Layout might be a good approach, or perhaps changing out panels on a master frame as the user makes selections, but I would like to see a high-quality multiple screen application in action before I ...

46. Is this design smart?    coderanch.com

Here is my old login dialog ----------------------------------- logo ------------------------------------ --log info----------------------- | host________ | port________ | user________ | pwd__________ ---------------------------------- OK Cancel ------------------------------------ Now I want to switch between english and chinese.So I redisign my dialog like this: ----------------------------------- logo ------------------------------------ --log info----------------------- | host________ | port________ | user________ | pwd__________ ---------------------------------- OK Cancel Option>> ------------------------------------ When I pressed Option,the dialog ...

47. Swing application design    coderanch.com

I am planing to design a small desktop swing app'n which will help me to do some engineering calculations based on the inputs I enter in the data entry fields. I am kind of stuck as to how to organize the application code.I have a vauge idea that MVC with command pattern can be used but don't have much clear idea. ...

48. Need help on design of Swing application    coderanch.com

Hello, I'm having a problem here with the design of my Swing app. It is a typical application with a JTree for navigation on the left, and a screen on the right. Each node in the tree implements an interface with the method JPanel getScreen(), so I'm able to set the screen on the right with the correct screen when selected. ...

49. GUI Planning & Design    coderanch.com

Hi all, as being quite new to java, i was wondering if any more experienced programmers could offer some advice or tips about how they structure their GUI's in relation to the program. I am comfortable creating GUI's and interacting with data, however, as i begin to write bigger programs i want to ensure that my design is **professional**. For instance, ...

50. Swing component design question    coderanch.com

51. Swing GUI Design ideas    coderanch.com

Hi, I am building a swing GUI. I am trying to find the best approach to meet the following requirements. The GUI has a function dropdown at the top. There are about 15 functions. When a function is selected. A panel will be shown for dataentry which has about 20 fields. For each of the 15 functions, most of these 20 ...

52. Doubts regarding AWT/Swing Design    coderanch.com

The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - ...

53. Design Considerations for Save/Update    coderanch.com

Hello, I am using Swing for the UI in my module pertaining to product lifecycle management. For Saving/Updating the screen data, I need some guidance as to how I may approach the same. The screen contains everything - from table, to textfields to combo boxes. I believe the first task would be to assign listeners to all the editable fields in ...

55. Design consideration    coderanch.com

Hi guys, im currently creating an application(Alarm Clock) which can be comprise of several frame interacting with each other. I will have one main frame with a menu calling the other frames. But im also considering the use of JPanel and just past it on the contentpane of the main frame. Another thing is how would i maintain the communication between ...

56. Design issue : language switch    coderanch.com

Hello everybody, i am starting to work on a Swing GUI, and i would like to implement a dynamic behavior for the language switch (i.e. no need to restart the application to get the new language selected). Is there a well-known design to address this issue ? I have though of a notification process between a TextResourceManager responsible to maintain the ...

57. Design question    coderanch.com

Is the following OK? /*** * This is a test of a simple message dialog. * Is this thread-safe, or do we need to go to all of the rigamoral of implementing the * Runnable interface and placing this alert on a thread? */ public class VAlert { public static void showMessageDialog(String message) { JOptionPane.showMessageDialog(null,message); } public static void main(final String[] ...

58. Help with design    coderanch.com

Hi, I am currently doing a project where in I have to create a gui which reads a text document and gives options to output : 1) the number of words in that document 2) number of words with 9 or more characters 3) top 10 frequent words in the document 4)Words which occur only once or occur twice in document ...

59. UI design    coderanch.com

Hi I want to design UI in Java. Firstly I opted for Swings. Then I migrated towards the Rich Client Platform (RCP) of Eclipse. But I could not start. The reason is that I dont have sufficient information and books for that. 1. Is it required to know JFace, SWT and plugins development before going to RCP? 2. If yes, could ...

60. Swing design question    coderanch.com

Swing components are conventionally setup in a tree structure and then event listeners are attached to it to manage user interactions. E.g. A |\ B C | |\ D E F Suppose, node D listens for an event that needs to modify node C which is inaccessible from the scope. What are some approaches to wire up the listeners? I suppose ...

61. form design    coderanch.com

Dear Friends, I have made my first form using jgoodies. Kindly see the code and suggest that whether I have done it in the recommended manner. Is there any better way to build buttons. The problem I am facing is that the buttons OK and Cancel are getting leftmost aligned with no space beneath them, i.e. they touch the wall of ...

62. swing design problem    coderanch.com

i have designed the GUI as follows i have added two panels and provided border on them,i inserted two text areas into them,and then i have spilted it vertically via spilt pane,now i want following things,like adding vertical scrollbar,i tried adding scrollpane onto text area onto bootom panel(2nd panel),but it seems to be not working,also any method via which i can ...

63. Design / Development Question    coderanch.com

First off, I am 'green' to Swing, but past beginner with Java. I am working on the base design of a fairly basic GUI using Swing, which consists of a dozen or so tabs. I would like for each tab to be constructed in its own class file, so that simultaneous work may be done by developers on individual tabs.. And ...

64. GUI Design Solution    coderanch.com

Not sure which forum this should go in. I have a remote table with 50,000 plus records. On my user iterface form I have an option to lookup record by document number. There is also a link that will display list of document numbers the user can choose from. What would be a good way to display the choices without all ...

65. [answered] Question about GUI design    coderanch.com

EncryptPanel DecryptPanel I want to design GUI looks like above images.Each panel contain different label and field. have any swing or awt library to call out above looks and feel? Once mouse press on "Encryption message" or "Decryption Message" tab.related panel will be turn on. [ October 16, 2008: Message edited by: L Willie ] [ October 16, 2008: Message edited ...

66. GUI Design issue    coderanch.com

I'm new to Swing [used SWT before] and I wonder how should I design two windows communicating with each other. I have my mainframe window, which is a JFrame. I want it to open a new frame, and I want that new frame to affect the mainframe, for that I need access to the mainframe variables and stuff. I have few ...

67. correct design of table GUI + large resultset    coderanch.com

Hullo, I don't know where should I post this question, so I'll post it here first. I'm coming from VB and would like to move to Java programming, and needed some help in how to design my program correctly. Let's say I want to write a GUI with a table, filled with data from a large database (1,000,000 records). What should ...

68. Design question involving GUI and classes.    coderanch.com

For example, you have a program where you first sign in, then you have a window (errm, frame ) open, in the frame there's a drop-down menu, each item on the menu opens a new frame, similar to the "tools" menu in your web-browser, as an example. Now does the "sign-in" screen and each item on the menue get programmed in ...

69. design question: best way to update swing components with data    coderanch.com

Hi, I have an app I'm writing that does a bunch of stuff....(selecting files, processing them with xslt/perl/dom4j, printing reports, etc) A whole bunch of objects and processes are run during the course of a user running a job and I want the gui to provide status as to how the job is progressing. Right now I'm using my own little ...

70. Design help - Need help in "static" implementation with Swing application    coderanch.com

hello everyone, I am new to event based code. I am writing a Swing application from scratch. I have one main Swing class for displaying UI components and a Listner class implementing ActionListener interface. I have made all components related to ParentGUIWindow as "static" because the ParentWindow will be displayed at the start of application. There wont be any multiple instances ...

71. Proper design question    coderanch.com

Hey Guys I am trying to solve a problem and have been out of the game for a bit... question... i have created a GUI Panel that has drag and drop capability, i drag an id from the left list box and drop in the right if i want to disable something for that id.. if i drag it back out ...

72. UI Design Question    coderanch.com

Hi Guys I'm working on an application, and I'm divided on how I should approach the user interface. I have a number of tables in the database for the application. Each of these tables is represented on a form in the application, which displays data on a JTable. On some of the tables, however, there are lots of fields, and I ...

73. Need opionions: GUI table design    coderanch.com

I'm terrible at making intuitive user interfaces. I could really use some opinions here: - There is an order table which lists all recent orders - Each order has an action column listing available actions for that order ... for example: modify, cancel, print, renew, etc. - Any order can be printed, but other actions vary. Many orders are already fulfilled, ...

74. Aircraft gui design    java-forums.org

Sorry for the late respond. I just want to create a GUI design for a aircraft. The view that the pilots have on the plane. For example, some analogue display of the air pressure, digital display of landing time and maybe some flickering of lights.. I know how to use swing to create some basic design. What about some of these ...

75. design approach for multi-lingual gui    java-forums.org

i have to develop a gui in swing that supports multi-lingual feature. the requirement is that the user should be able to select his language in a panel and from then on all guis in the app apperas in the choosen language. i've already read the Internationalization pages and also implemented a small gui with ResourceBundle but what i'm looking for ...

76. GUI design    java-forums.org

Hi everyone, i need to design a GUI like a normal installation wizard to install something but im stuck at the connection between JFrame and JPanel.. these are the questions in my mind now.. 1. Is netbeans good for designing GUI? im just started to learn it now... 2. how to implement page switching method in a proper way? for example ...

77. Advanced design    java-forums.org

78. Design choices...    java-forums.org

^ For 1, the animation involves alot of Thread.sleep() calls so it needs to be in it's own thread and not on the event dispatching thread... Thanks for the answers on 2 and 3, but also about the key input method (for one thread to put the key commands in a PipedStream and the running thread to read them from there) ...

79. Netbeans 6.8 GUI design problem    java-forums.org

Hello, I am new to Java and I've been using netbeans 6.8 for a while now for GUI designs. I like the designer with auto alignment features, it helps my designs look better .. but when I run the code the things that are aligned in the design are completely scattered, some shift left, right .. even the size also changes.. ...

81. How to Design the GUI for a existing project with NetBeans?    forums.oracle.com

I am sorry about that. In my java project, there is a class file extends the JFrame class. However, after I import the project with NetBeans, I cannot design the GUI of that file. I can only edit the source code of that class. How can I tell NetBeans that file extends JFrame and let me design the GUI?

82. swing design problem    forums.oracle.com

83. Design problem with Swing    forums.oracle.com

Yes this is a common problem that many of us have when building UIs Here's the question: In this instance, are these two classes really independant? Could they stand alone? Often when building a GUI, it's not even that easy to answer that question, but these leads to the two ways you can solve this #1. Make them independent, and use ...

84. GUI design problem    forums.oracle.com

i have designed the GUI as follows i have added two panels and provided border on them,i inserted two text areas into them,and then i have spilted it vertically via spilt pane,now i want following things,like adding vertical scrollbar,i tried adding scrollpane onto text area onto bootom panel(2nd panel),but it seems to be not working,also any method via which i can ...

85. Is this swing OO Design possible?    forums.oracle.com

Hi Guys Ive come up with a design for my GUI and I was wondering if it is possible (all seems possible in UML) to actually implement as a solution in java. The idea is to have an interface that will provide a set of commands that a GUI class and its subclasses can implement individually. But as a whole implement ...

86. Question about Object-Orientated design for GUI'S    forums.oracle.com

the IconList class looks up a server to update its array of Icons[]. But when one individual Icon is clicked on myFrame, i want its mouseListener to load some of its values onto myFrame's GUI components. I hope I'm making myself clear, im sorry if this seems like a muddled incoherent question, but any advice would be great. I only need ...