165 Topics

Member Avatar for
Member Avatar for gordsmash

Hi! Basically what im trying to do is to add a JPanel onto another JPanel that has painted graphics on it using the paintComponent() method. But the JPanel I am trying to add is not shown because it is covered up by the JPanel w/ Graphics on it. How can …

Member Avatar for Ezzaral
0
92
Member Avatar for mhariharasudan

Hi all, I am new to java swing programming.I want to develop an application which has a panel with an array of grid points(not grid cells). The number of columns and rows of the grid points must be user specific. Once such an environment is created, the user's mouse click …

0
89
Member Avatar for MrHardRock

Hey, this is the first program I've tried writing using any GUI and I have gotten everything so far, except every time I click my button to try and run my program it just freezes and does not do anything. import javax.swing.*; import BreezySwing.*; public class piGUI extends GBFrame{ private …

Member Avatar for JamesCherrill
0
220
Member Avatar for Geowil

'Lo everyone, I am having some pretty frustrating issues that I can not seem to get rid of. The main goal of my program is to make a GUI with buttons that trigger custom events. [quote] C:\Java Tests>javac JGUITest.java JGUITest.java:13: cannot find symbol symbol : class ButtonHandler location: class LabelFrame …

Member Avatar for Geowil
0
277
Member Avatar for jamesblunt

Hi! I try the following with a [B]javax.swing.JTable[/B]: - a custom TableModel (extending from DefaultTableModel) that allows adding/deleting rows by activating a checkbox in a [B]javax.swing.JTree[/B] - a [B]javax.swing.table.TableRowSorter[/B] (since JDK 1.6) that allows sorting the rows Initially, there is no checkbox marked within the JTree. So, the table model …

0
89
Member Avatar for pankajagar2002

Hi, i have a desktop application that is developed using swing. We have created jnlp to access it from client side. But when jnlp opens, mouse not work properly. After some time it go on the top left corner. Could you give us some suggestion. Thanks in advance

0
110
Member Avatar for mbouster

Dear all I need your guidlines with this project because I dodnt done nothin yet an i am terrified to admit that I am going to deliver this on Wednesday and in the midtime I have a final in another course. What I didn till now is the UML for …

Member Avatar for artche20
0
209
Member Avatar for alvalany

Im using jcombobox in a simple database application . I want add the resultset of a particular query as element in jcombobox. Im using netbeans and i found an option called binding but im confused how to use it!! Please help.

Member Avatar for pbl
0
104
Member Avatar for ajst

Hi, I'm trying to use JAVA GUI for first time. I've got a Jframe that when loaded adds a jpanel. the problem is it will not show any swing controls that get added to the jPanel. I'm using netbeans 6.9.1. any idea to why is happerning would be greatful [CODE] …

Member Avatar for JamesCherrill
0
3K
Member Avatar for alvalany

Hi friends, I am doing Bachelor's Course In Computer Science Engineering. Recently I recently completed my course on Application Development and Database Management. Coincidentally a few days ago I was asked by my friend to do a simple software for managing his store. So, i thought I got an opportunity …

Member Avatar for alvalany
0
130
Member Avatar for DARK_BYTE

HI I am working on a project to animate user-defined algos. I am still at the very beginning but I am practicing code in swing and here is an Array class that the user can use in his user defined algo: [CODE] import java.awt.*; import javax.swing.*; public class Array1 extends …

Member Avatar for DARK_BYTE
0
226
Member Avatar for Andy_Parr

Hi, I'm writing code for a graphical map of a shopping center. Whilst writing the code I realised it would be simpler to be able to draw objects using "names" instead of values. E.g. g.drawRect(Asda); instead of g.drawRect(100,100,40,40);. Is this possible? I have tried writing various classes but I can't …

Member Avatar for JamesCherrill
0
616
Member Avatar for aMOEBa

I really need help(ideas) with a project I want to work on. I want to build a software that will be used for Financial Management in a bank with java. What I need is help with where to start and also pointers to resources that might help me get this …

Member Avatar for Ezzaral
0
191
Member Avatar for mukulnimker

pls help............ hello frnds i ma mukul i am working on a java project in netbeans i am using swing application there is a use of JTabbedPane for which i have to give the object of other class as a Parameter but when i create another class outside the previous …

Member Avatar for sidhu2204083
0
210
Member Avatar for Chaster

Hi all, I have a JTree (JXTreeTable actually, but anyway, it should be similar). I use setShowsRootHandles(true), but the handles are not displayed. Do you know what may cause the problem? My current look and feel settings support these kinds of things. Thanks in advance.

0
67
Member Avatar for rayden150

I was wondering if i could incorporate swing, into the code to create a GUI?: [CODE]public class ComputerMerchandise { public static void main(String[] args) { java.util.Hashtable<Integer, Product> htProducts = new java.util.Hashtable<Integer, Product>(); for(Product product:Products.GetAllAvailableProduct()) { htProducts.put(product.getProductId(),product); System.out.println(product.toString()); } Hashtable<Integer,Integer> orders = new Hashtable<Integer,Integer>(); java.util.Scanner scanner = new Scanner(System.in); while(true) { …

Member Avatar for tong1
0
189
Member Avatar for abbyo

Is this possible? I'd like to add a java file in each tab of this JFrame. I've already created the files, I'd just like to show both files in one. The files I'd like to add are commented out: storageSP and calculatorEDL [CODE] import javax.swing.*; import java.awt.event.*; public class TabbedPane …

Member Avatar for NormR1
0
126
Member Avatar for Chaster

Hi all, I've been struggling with a Swing issue for days now, maybe someone can help me :) I would like to see several icons at the left hand side of a JTree element. Is that possible? I mean i know that I have to create some tricky cell renderer …

Member Avatar for Ezzaral
0
88
Member Avatar for mukulnimker

hello frnds....i am mukul working on a java project using mysql database and swings in netbeans ide can anyone tell me how to retrieve data from mysql and show tha data in JTable......in netbeans....... i know how resultset and statements commanda.......but dont know how to show that data in JTable

Member Avatar for mukulnimker
0
151
Member Avatar for abbyo

I'm having problems figuring where I need to go next in this project to create an applet from this application... any suggestions where I should start (in layman's terms)? [CODE] import javax.swing.*; public class storageSP { public static void main(String[] args) { //declare variables float res; String kfilm; String sfps; …

Member Avatar for NormR1
0
216
Member Avatar for amit.hak50

When i clicked on JMenuitem ..it opens a new window ..but when i close this window the parent window also closes... is there any method to resolve ..i don't want to close the parent window only the new window..

Member Avatar for amit.hak50
0
271
Member Avatar for amit.hak50

Hi My problem is that , The Jframe window does not remember it's position after minimizing ....suppose I minimize at co'ordiates (45,89)..but after maximizing it again open at (37,28)..means at different co-ordinates ..i want that jframe should open at the same position...after maximizing..like remeber it's position.. please help

Member Avatar for NormR1
0
768
Member Avatar for dani_member

Hello Daniweb users, I am developing a small client for messaging, the messaging part is okay! :) Now the problem is with the GUI. I want to implement a "tabbed chat interface", similar to that of MSN or iChat. I am implementing a JTabbedPane for each "window". My problem is, …

Member Avatar for dani_member
0
410
Member Avatar for pi_lord12

Hey, so I'm trying to make a text-based game using mostly Swing GUI; the code I have so far is below. When I use JOptionPanes I modify the icon, title, and suchlike on them, so I have about two lines of code for every JOptionPane. I created methods for them …

Member Avatar for pi_lord12
0
171
Member Avatar for adity

Hi, I have a Jtable created in swing of which one column contains check boxes. What i want is a few check boxes on specific rows.And now in the entire column Any help! :) Also i donot know the row number at which i want the check boxes.That needs to …

Member Avatar for leiger
0
115
Member Avatar for adity

I have a JTable as a leaf node of a Jtree. But though I can select each row in the table I cannot select each cell element. Please HELP! Adity

Member Avatar for javaAddict
0
85
Member Avatar for kvass

Hey guys~! I am working on a code and I am having some difficulties with it -- Basically I have a 3x3 grid of JButtons that represent the squares on a TicTacToe grid. The code seems to run fine but then after it determines a victor it crashes and says …

Member Avatar for BestJewSinceJC
0
471
Member Avatar for Hodson

I have created a very simple Tic Tac Toe game using NetBeans 6.8. Swing is used in order to create the grid. I can build and run the game with no problem. What I now want to do, is have this uploaded onto a website (along with other applications I …

Member Avatar for Hodson
0
263
Member Avatar for vextorspace

I have a JFrame that I call from another JFrame like so: [CODE] Viewer2D v = new Viewer2D(this); v.setVisible(true); v.DrawAssembly(glNameList.get(hitRecs.get(0).getNames()[0])); [/CODE] I set the exit action to an action listener and call dispose() and both of my JFrames disappear! How do I get only the one I'm working on to …

Member Avatar for BestJewSinceJC
0
84
Member Avatar for alisonchan30

Dear All, I would like to change the content pane of frame after pressing a button by the method: frame.setContentFrame(newContentFrame); However, after press the button, the Frame is frozen~~ How can I make it work? THANKS A LOT~~ [CODE]import javax.swing.*; import java.awt.event.*; public class Test{ JFrame main; JPanel panel1; JPanel …

Member Avatar for smoothe19
0
171

The End.