35,618 Topics

Member Avatar for
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
120
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
316
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
75
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
214
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
58
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
102
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
103
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
92
Member Avatar for konradhoppe

Hi, I am absolutely new to jsp and in general to webdesign and I designed the indexpage of my homepage. For all subsequent pages I want to use the same design, with the same frames and so on. The only thing that should change for the other page is in …

Member Avatar for konradhoppe
0
92
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
95
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
147
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
136
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
274
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
75
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
100
Member Avatar for manish250

hello everyone I want to implement the data grid control in my jsp page.I hv searchd a lot in google but still yet i m not clear.can anybody give me some idea or suggestion how to implement it

Member Avatar for manish250
0
361
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
202
Member Avatar for TransKim

Hi members,I would like to share knowlege in Java with you. I have a problem which i request a solution for. I want to design a GUI in java that displays four roads each having traffic lights and these traffic lights have four colours(green, orange, and Red). So I want …

Member Avatar for masijade
-2
221
Member Avatar for denmarkstan

Please can any body give me tutorial source on java using netbeans. i want to learn java programming with netbean

Member Avatar for masijade
0
70
Member Avatar for eikal

Hi, one of my labs were doing is a data gatherer, the user enters their first middle and last name all at once with a space between each. then enters there birth month day and year all at once with space between each. Then it outputs them in in a …

Member Avatar for privinpt
0
116
Member Avatar for amitbhanot

Hi. I am trying to run an EJB through bea weblogic 8.1 server. I am trying to create a Stateless Session bean. I have created two jars and when I try to do a hot deployment, I get a server error. please see the error description below: [COLOR="Red"]Exception:weblogic.management.ApplicationException: prepare failed …

0
69
Member Avatar for oppie204

I am doing a program for my computer programming class and it starts out as. I use Bluej for programs too import TerminalIO.KeyboardReader; when i compile it, it says package TerminalIo does not exisat. Does anybody know what is wrong with this i need it fixed soon. Below is a …

Member Avatar for pbl
0
746
Member Avatar for avirooge

Hi, everyone. Plz. Answer. this is very urgent Write a Client/Server Program using DatagramPacket and DatagramSocket which finds the square of a number sent by the client. Avinash Rooge

Member Avatar for pbl
0
63
Member Avatar for ZozOQ

I have see other language to work like that! What i mean is there is a class or something inside the code with the copyrights. When the copyrights change to program stop working. I would like to know how i can do that?

Member Avatar for pbl
0
73
Member Avatar for dheepakpm

How to find the wifi network interface name in Java.NetworkInterface class does not specify any method to find this. Thanks

Member Avatar for dheepakpm
0
96
Member Avatar for summey

I am not understanding the question below at all can someone please guide me in the right direction. I do understand what a Boolean is but i am unclear on how to change the code as directed below. Thank you for your time. [CODE] Change the java code below so …

Member Avatar for summey
0
193
Member Avatar for SeanC

Hi all, ive got a bit of an annoying problem regarding JUnit 4.5. I've created a bunch of unit tests which work properly when I right click the class and press 'Test' (in Netbeans). However, when I right click the whole project and press 'Test', i get a ClassNotFoundException. I …

0
117
Member Avatar for kay19

Well, started my new Computer Science class, and already having trouble. Well, firstly I needed JDK, so Installed the JDK-6u23-windowsx64.exe. After that, I needed to install Textpad, which my teacher said all students will use for assignments. Here's the problem, after installing textpad, I had to go - Configure - …

Member Avatar for kay19
0
129
Member Avatar for OjeeTa

Hi 4 all.. i'm new in this fourm,and i need help plllllz to do this program in java,i realy be sooo confused!! i was absent in this lecture for (Arrays),i'm trying 2 do it but still i'm not get tha idea!! pllllllllllllz can eny ony explain 4 me the Q?? …

Member Avatar for Ezzaral
0
391

The End.