32,204 Topics

Member Avatar for
Member Avatar for salmanrauf
Member Avatar for JamesCherrill
0
133
Member Avatar for mani_1991

hai, is it possible to loading of tabs in jtabedpane dyanamically in java.. that means i have frame that consinting of one tabbedpane.. in that i have 10 tabs and in each tab consting of another tabbedpane and in that each tabbedpane has 4 tabs and each tab consisting buttons …

Member Avatar for vjcagay
0
164
Member Avatar for WolfShield

Hey everyone, I'm using the NetBeans WYSIWYG, the part where you drag and drop to create the windows and buttons ect. What I am trying to do is open a tutorial for my program from a menu item in the 'Help' menu. My problem is HOW to open a window …

Member Avatar for roxin_phoenix
0
146
Member Avatar for brynFlew

Hello, and thank you for youre time, I have a problem with my jsp application, when i try to get the values from the html form on the jsp page process.jsp, it sets the values of each element but then does not return them to the java page. It keeps …

Member Avatar for peter_budo
0
240
Member Avatar for death_oclock

I just wrote a program that plays various drum sounds when certain keys are pressed. It works for the most part but, when two keys are pressed at the same time, only one sound plays. Both key presses are received, however. I am using the Clip class which allegedly supports …

0
52
Member Avatar for musikluver4

Quick question. I have text in a JFormattedTextField, I clear it with a clear button to make it setText(""); and heres the problem: When I go back in the field, and just to test it, I just tab out or mouse click out of it without typing anything in it, …

Member Avatar for musikluver4
0
60
Member Avatar for skitband

anyone can give me a code for this java applets program TY [url]http://tinypic.com/r/33nd9ox/7[/url]

Member Avatar for pbl
0
66
Member Avatar for Neversleepin

Hi, i'm trying to understand how actionPerformed is working. I'd like to know how to add more than one action in actionPerformed method. Here is an example of my code. I have two button b and c and the button b must open the gmail.com page. // this first action …

Member Avatar for Neversleepin
0
228
Member Avatar for hauda67

I am creating a desktop application that will also include a calculator, similar in function to the calculator of the Microsoft Windows OS. I require some assistance in implementing the memory capability such that the user can store a number, recall the number to be used in a calculation or …

Member Avatar for Ezzaral
0
205
Member Avatar for Statoeo

Hello, I have a program that displays a frame that uses a canvas to display few rectangles and some images. While executing the program with Eclipse IDE everything seems to work appropriately, when I compile and execute the program using windows command line the images are not displayed. With eclipse, …

Member Avatar for Statoeo
0
277
Member Avatar for sumeetdesaeee

I want to retrieve the autogenerated primary key after inserting a record in database.I am using IBatis for my database connectivity. Please review my xml code and tell whether it is correct or not. Also, please tell me how can I retrive that value in my java code.. [code=xml] <insert …

0
51
Member Avatar for Rona25
Member Avatar for VichuTheWizard
-1
121
Member Avatar for emint

Hi how can i execute a statement if only radio button is checked and Jbutton is click? i know how to use them Individually. i try to use like this [code] public void actionPerformed(ActionEvent event) { Object src = event.getSource(); if (src==radio1 && src == buttonclick) JOptionPane.showMessageDialog(null,"Raido1 is checked"); }[/code] …

Member Avatar for jsaddam709
0
207
Member Avatar for almefab

Hi guys, I am fairly new to JAVA and currently I am trying to do a couple of pre-set graphs. My first task is to create a graph of y=x^2. The code below is what i have come up till now. I am sure that i need help in the …

Member Avatar for almefab
0
163
Member Avatar for WolfShield

Let's say that I have a file: 'mainGUI.java' and I want to, from a menu item, open another GUI file: 'tutorialGUI.java'. What would the code be to preform this? Thanks everyone! -[b][i]WolfShield[/i][/b]

Member Avatar for WolfShield
0
119
Member Avatar for rayden150

This program is supposed to print out prime numbers from 1 to 50: [CODE]public class Break{ public static void main(String[] args){ int i,j; System.out.println("Prime numbers between 1 to 50 : "); for (i = 1;i < 50;i++ ){ for (j = 2;j < i;j++ ){ if(i % j == 0) …

Member Avatar for jon.kiparsky
0
282
Member Avatar for ella_xhin

Guys i need to do the same the same thing like this code... for dispalying the advisable loptops for the buyers to see the prices ang the models og every brand of loptop..but i'm still not quite familiar with the GUI...so, please help me, it'a a project and i need …

Member Avatar for javaAddict
0
73
Member Avatar for miney

I hava exams in java and when I study I saw this excercise and I try to solve it but I found somne difficulity so please help me Consider the following comment, header and partial code for a method in a utility encryption class called Atbash. [CODE] /** * Prompts …

Member Avatar for bibiki
0
212
Member Avatar for ahmedbhatti

hi i try to implement random linear coding in java. how i will encode and decode packets. the sender send packet is linear combination of all previous packet received so far and also random number generated.

0
57
Member Avatar for denmarkstan

let someone help me here: [CODE]int k; k = Convert.ToInt32(System.out.println)[/CODE] thanks.

Member Avatar for hanvyj
0
160
Member Avatar for Janu Sam

Hi, I have a GUI with a JTabbedPane. In the tabbedpane I used a JScrollPane to hold a JTextPane. How can I get the object name of JTextPane that I have created in my class or something which is unique for a jcomponent with which I can identify that the …

Member Avatar for Janu Sam
0
99
Member Avatar for rohit2

I am new to java Swing. I am trying to develop a tool, in which I used a Jtextpane as an editor. Jtextpane is enclosed in a Jtabbedpane to meet my requirement. But I have inserted the JTextpane in a Jscrollpane and then to the Jtabbedpane. Now, when I select …

Member Avatar for pbl
0
100
Member Avatar for f_atencia

Say I have an XML file as such: <contacts> <contact id="1"> <name>Steven</name> <address>Here</address> <phone>11111111</phone> </contact> <contact id="2"> <name>John</name> <address>There</address> <phone>22222222</phone> </contact> </contacts> ...etc. How can I transform that to HTML with XSLT so that it can be a collapsable/expandable tree? For example, If I click a button that shows contact{@id="1"] …

0
90
Member Avatar for cocoll

hello!. i need help with import in java. i want for example when i click a button in java to open a exe file,so i imported the exe into java,and i make the program everything is okay. so i export my classes into a jar file,so when i click the …

Member Avatar for cocoll
0
94
Member Avatar for rushhour2

Hi all, I am having a little problem with my relay buffer which uses flow design patterns. The problem is that when the consumer should output the value of the Element, it is printing out "The item is: null". My code is a little bit long, but hopefully you can …

Member Avatar for quuba
0
146
Member Avatar for kvass

Hey guys! So I was wondering -- what's the syntax for updating a JTable that is being displayed on the screen? I know how to allow cells to be edited, but what if I want to like add in entirely new rows while it's being displayed? I tried repaint() and …

Member Avatar for Ezzaral
0
133
Member Avatar for DarkLightning7

I cant seem to find the problem with this program I am building as a learning exercise. I am getting errors referenced to extremely simple pieces of code. In the output the first thing that should be printed is the random double number that the program selects then it should …

Member Avatar for DarkLightning7
0
272
Member Avatar for sirlink99

My bullet animation does not work. Can anyone help. Thanks [code]// The "SpaceShoot" class. import java.applet.*; import java.awt.*; import java.awt.event.*; public class SpaceShoot extends Applet implements KeyListener { int x = 10, dx, y = 10, dy, a = 0, by = 47, bx = 95; char m; private Image …

0
73
Member Avatar for rohit2

I am using JtabbedPane which contains several jTextPanes like jTextPane1,lTextPane2...etc. NOw I want to perform some actions during the selection of a partiular tab. eg: I want to enable a button if I select jTextPane 2.. Now I am able to identify selected Component of Tab.ie: jTextPane. But I am …

Member Avatar for ajst
0
99
Member Avatar for Urelsor

Hello guys, First of all I'm not really good with Java. To be honest I'd rather call my Java skills bad. But here comes my problem. I want to download a CSV file from a specific URL and save it at the TEMP directory. Then i want to read this …

Member Avatar for Urelsor
0
199

The End.