3,978 Topics

Member Avatar for
Member Avatar for Aretai

Hi, I do not know where to place non-default Java classes so that i could be able to import them with command like this: import myclass.myoperation; just like import javax.swing.JPanel; I tried to find a proper classpath but i was not able to locate it - tired echo %CLASSPATH% and …

Member Avatar for jwenting
0
91
Member Avatar for praveenmanchu

[code]import java.awt.*; import javax.swing.*; /* <applet code="JScrollPaneDemo" width=500 height=450> </applet> */ public class JScrollPaneDemo extends JApplet { /*public JScrollPaneDemo() { //repaint(); }*/ public void init() { // Get content pane Container contentPane = getContentPane(); contentPane.setLayout(new BorderLayout()); // Add 400 buttons to a panel JPanel jp = new JPanel(); jp.setSize(50,50); jp.setLayout(new …

0
106
Member Avatar for Cudmore

Sooo... I just started designing the GUI for an application that I'm writing.. And, well, I can't get either the awt.TextArea OR the swing.JTextArea to work properly. Here are snapshots of both, along with the problems I am experiencing. If anyone can resolve these problems, please let me know.. I …

Member Avatar for Cudmore
0
259
Member Avatar for aarya

hi i i am new to java and i have the thearotical knowledge of j2ee. i have experience in asp and php. but now i want to learn j2ee and persue my caree in j2ee platform. thats y i want to do som mini project based on swings and applet,jsp,xml …

Member Avatar for jwenting
0
127
Member Avatar for Sheki RDH

hello all, can anybody reply to this i'll be grateful to them.... i'm working in swing applications, now i want to insert one button in the status bar reducing the size of the status bar..... please anybody suggest me how to proceed with this..... thanks in advance shekar

Member Avatar for server_crash
0
355
Member Avatar for soso30

I am using netbeans to build this program,but it give this error java.sql.SQLException: No suitable driver at java.sql.DriverManager.getConnection(DriverManager.java:545) at java.sql.DriverManager.getConnection(DriverManager.java:193) at test.Main.<init>(Main.java:33) at test.Main.main(Main.java:72) how can fix it [code]/* * Main.java * * Created on 14 نوار, 2006, 07:39 م * * To change this template, choose Tools | Template …

Member Avatar for masijade
0
130
Member Avatar for hemanthjava

I am using FocusTraversalPolicy policy in my Swing Project for tab out functionality. In some screens some componenets(combo box , textbox etc) are disabled in between some enabled components. So when i tab out from those which are enabled it loses focus when i tab out as that component after …

0
66
Member Avatar for psodhi

Hi Friends, i made a window with a Panel and painted a text on it. Now i want to set a background color for the panel but it does not reflect in the window.. i am posting the code here.. Please let me know if anything is wrong with the …

Member Avatar for psodhi
0
281
Member Avatar for nabil1983

Ok got a new problem i've started to implement a GUI for my program but for some reason in the actionlistener metho i cannot pass the method i want to display.. I dont know what im doing wrong because i am not familiar with using GUIs... can somebody please help …

Member Avatar for jwenting
0
150
Member Avatar for nabil1983

hello. Im having problems trying to get my jframe gui to work correctly i got the window all done fine but when i tell it to display somethis in the code , it comes up with errors when compiled. Can someone please tell me where im going wrong .. apreciate …

Member Avatar for DeepZ
0
187
Member Avatar for Stewie

Hello, I am very new to java so my question might seem stupid :p anyway I am in a class where we are makeing a patron loading system for a library (every one else in the class is new to java also :) ) we have our basic form built …

Member Avatar for iamthwee
0
327
Member Avatar for crws416

HI all, I'm having trouble putting a GUI on an existing java server program i have. I have added a frame to the code but all it does so far is pop up, there is no interaction.. I've tried moving all of my functions accross but to no avail.. i …

Member Avatar for jwenting
0
110
Member Avatar for ZenaNqld

Ok heres the problem ( and no laughing at my code!! ) I need it to change the value of the strokedistance to the holedistance when the strokedistance makes the holedistance less than zero. Any suggestions, ideas, tips, and it doesnt have to be specific to my problem maybe just …

Member Avatar for ZenaNqld
0
148
Member Avatar for ben1977

How do I go about defining the average and total variables in the following script? Assistance is appreciated... Ben import javax.swing.JOptionPane; class minmax { /** Main Method */ public static void main(String[] args) { final double TOTAL_NUMBERS = 5; //Convert string to double double Average = Double.parseDouble(averageString); //Convert string to …

Member Avatar for fdrage
0
101
Member Avatar for toara

Any hint on how to start writing the following program: " a golf game that allows the user to play one hole, a 280 metre par 5. The game proceeds with the player choosing a club for each shot and then the program generates the distance hit for each shot …

Member Avatar for Salem
0
99
Member Avatar for ben1977

I'm trying to write a Java application that will read five double values and find the total, average, minimum and maximum of the values entered. For some reasons after trying to find what wrong with it it's still not building. I'd appreciate someone's expertise on the matter. import javax.swing.JOptionPane; class …

Member Avatar for ben1977
0
168
Member Avatar for Lunaticrr

This is my code: import javax.swing.*; public class Two { public static void main(String args[]) { JOptionPane.showMessageDialog(null, "Computers, computers everywhere\n As far as I can see\n I really , really like these things,\n Oh joy, oh joy form me!" JOptionPane.WARNING_MESSAGE); } } I am trying to make the text appear …

Member Avatar for Lunaticrr
0
124
Member Avatar for buggytoast

Hey guys! :D My program implements the vector class however it only shows I know how to use the Vector Class, and not how to develop a code for a linked list :( My teacher says I can just do a copy paste job, which is precisely what I did. …

Member Avatar for buggytoast
0
148
Member Avatar for buggytoast

Hi everyone! (it's been awhile XD) I've gone and done my homework. And here I am with a program that works...pretty well I think. There appears to be a problem with the saving/loading. Originally it worked without a problem, but when I attempted to make it more graphically friendly (when …

Member Avatar for buggytoast
0
147
Member Avatar for parvin1987

hello I,ve wrote a program but it doesn,t work correctly please help me i want to sort some strings based on the number that should be entered at first of each string for example the strings that you enter should be in this form: 12_hello it means you should enter …

Member Avatar for iamthwee
0
111
Member Avatar for winbatch

If I have a swing app where I have 3 JPanels inside the content pane. By default, it makes it so that all 3 panels take up 33% of the overall size of the app. I would like to make it so that the first panel takes up a smaller …

Member Avatar for jwenting
0
257
Member Avatar for ladyd33099

Hello everyone, I'm at a loss. I've been trying to add a couple of images to my mortgage loan program for class. Everything I try either doesn't work or blanks out the screen. Any help would be appreciated: /* * Author: Diana Salisbury * Week: 4 * Date: March 20, …

Member Avatar for server_crash
0
120
Member Avatar for ladyd33099

Hello everyone, I'm at a loss. I've been trying to add a couple of images to my mortgage loan program for class. Everything I try either doesn't work or blanks out the screen. Any help would be appreciated: :-| /* * Author: Diana Salisbury * Week: 4 * Date: March …

Member Avatar for iamthwee
0
149
Member Avatar for Red Baroness

Just a new member, nuttin special. Figured I'd do the intro thingy. Thanks to Daniel for the neat format to do so. Name: Red Nickname: Shorty (haha), Boobies (grrr), "The techie" Height: 5'5" Weight: *syntax error: Abort, retry, fail* Hair: Dyed cause I'm going gray Eyes: moss green Location: Shore …

Member Avatar for Red Baroness
0
152
Member Avatar for nisaa15

How can one use recursion to get the following representations of a given word e.g. 'CARE': C#ARE AC#RE RAC#E ERAC# Heres my attempt but i only manage to get the first representation, where does the recursive step need to go? import java.awt.*; import javax.swing.*; import java.util.Random; import java.awt.Color; import java.awt.event.*; …

0
48
Member Avatar for warriorone357

This time I am trying a different way to write a program that takes user input, converts euros or yen to u.s. dollars and should output the total dollars collected when the user chooses to exit the program. Can someone give me a clue about what I am doing wrong??? …

0
59
Member Avatar for KCC1982

Hi, I just want to say thank you in advance to anyone that replies to this. I'm new to JAVA & my 4th assignment has got me stumped. I have to write a program that reads 4 integers and prints the largest and smallest value that the user entered (using …

Member Avatar for morans
0
185
Member Avatar for jigvesh

Well, I have done the following coding:- [code] import java.awt.*; import java.awt.event.*; public class line extends Component { /** * */ private static final long serialVersionUID = 1L; private int len; // private int nx,ny; private int relx,rely; boolean pressed = false; boolean endp = false; boolean resized=false; ActionListener actionListener …

Member Avatar for server_crash
0
90
Member Avatar for jigvesh

Well, i searched all through google and stuff...but in vain..i want to add a functionality in my program to copy and paste buttons which are present on the screen.....I got a wonderful article to copy and paste text.but what about some swing components???????how do we copy and paste them????? [site]http://www.cafeaulait.org/course/week13/[/site]

Member Avatar for jigvesh
0
125
Member Avatar for seh1

Sorry I've asked a question about my GUI already but it's due Monday and I still having a few problems with it.... 1. When the GUIs opens it opens so that I have to change the size manually to view it i.e. the toolbar appears. Is there a way I …

Member Avatar for server_crash
0
147
Member Avatar for seh1

Hi, I wrote the following GUI. Its total crap but just need to get the basics working first. Its compiles fine and my Hello World test message comes up but no sign of the UI itself. Any ideas at all ? Much Thanks, Sean import javax.swing.JFrame; import java.awt.event.WindowEvent; import java.awt.Label; …

Member Avatar for seh1
0
123
Member Avatar for wejavalearn

:?: :?: I dont understand what jbuilder is trying to tell me .. by all right my code seims fine I spent 4 days working it up (yes I am a beginer) I know there are most likly better ways to do what I am doing. The point is compiled …

Member Avatar for wejavalearn
0
100
Member Avatar for dmgs11

I am looking to create a mortgage applet with an array for the 3 amounts. There is something I am missing here. Any help can be of use [CODE] /* GOAL Display the mortgage payment amount. Then, list the loan balance and interest paid for each payment over the term …

Member Avatar for dmgs11
0
239
Member Avatar for radixthink

The client has developed global trading, decision-support and risk management solutions for the world's premium investment banks since 1990. They have offices in London, New York, San Francisco and Tokyo. Please submit your resumes to [email]topjobs@radixthink.com[/email] The Senior Software Engineer will play a lead role in the design and development …

Member Avatar for iamthwee
0
237
Member Avatar for visual one

Hi I have a homework assignment that is due today. I've been working on it all week, but I just can't get it. My assignment is to write a program that creates a stack and tells if its a palindrome. Here's what I have: import javax.swing.JButton; import javax.swing.JFrame; import java.util.Stack; …

Member Avatar for jwenting
0
156
Member Avatar for Phaelax

I'm using JMF to transmit webcam data to another pc. I'm not using another thread yet, but I'm assuming that ServerSocket.accept() will hault the program until something attempts to connect to it? It seems to connect ok, but I dont get any video, just a black screen. So maybe the …

0
73
Member Avatar for Rajnesh

can anyone help me out. Java Swing GUI's opens really slower than C# forms...is there anything to be done in the code. and in Applets tooo is is really slower even if you just minimise n maximise the browser...in Applications the components are not seen unless u resize the form...anyone …

Member Avatar for Rajnesh
0
94
Member Avatar for infested13

im new with Swing..im having problem on gridbag layout(my classwork)... im trying to stick a header(label) and a scrollpane(with a JList attach to scrollpane) to a tabbedpane which the outcome may look like [URL=http://www.geocities.com/dogkickass/1.jpg]this[/URL] but for some reason..my scrollpane doesnt want to show up... i need some help and tips …

Member Avatar for server_crash
1
120
Member Avatar for ismedave

Hello, I want someone to comment off the following coding so that I can produce appropriate javadocs. Thanks. Here's the coding: import java.awt.*; import java.awt.event.*; import java.awt.geom.Ellipse2D; import java.util.Random; import javax.swing.*; public class ShellGame extends JPanel implements ActionListener { final int ROWS = 10; final int COLS = 10; final …

Member Avatar for jwenting
0
101
Member Avatar for Frank0051

I'm pretty new to Java and GUI programming, so I have been looking at Swing for GUI programming and I have been looking at javazoom's projects for audio references. I'm currently working on creating a progress/seek bar in Swing however I'm not really sure what I should set the max …

Member Avatar for jwenting
0
140
Member Avatar for sam1

hi, How many libraries does java has for gui part of an application? I know about 2 of them, swing and AWT, but I dont knw the difference between the two? thanks :mrgreen:

Member Avatar for sam1
0
121
Member Avatar for Ghost

Hi Everyone, I'm trying to create an instant messaging program, but for some reason the client and server won't connect. My code is below. Thanks in advanced for helping me. By the way, the client and server program are one in the same. A radio button gives you the option …

Member Avatar for jwenting
0
160
Member Avatar for Frank0051

I have an interesting question, I'm helping someone can help me out with this. I have been playing with the JavaSound API and I have come into contact with the FloatControls (pan and gain). Basically I know these controls only work if the line supports them. I have been working …

Member Avatar for jwenting
0
93
Member Avatar for anbarblue

Here is my code so far. I'm not sure what I'm doing wrong, but I cannot get it to compile. Incompatible Types (Lines 90 - 92) . Please Please Help. My ultimate task is to write an Applet Mortgage Calculator. import javax.swing.*; import java.awt.*; import java.util.*; import java.awt.event.*; import javax.swing.JOptionPane; …

Member Avatar for anbarblue
0
266
Member Avatar for OllieFalle

Hi all : ) Im messing around with the game of Nim and i want to create some strategies to make the game more interesting. I have finished all the other code and all i need to do is this. Basically i want 4 classes The first strategy will be …

0
78
Member Avatar for rockStar60608

I'm having problem loading a java gui into a html page as an applet. I believe the problem is the init method. this is the first time i've had to make one and i don't think i did it right. here is my java code: [HTML]code[/HTML] package gui; import java.awt.*; …

Member Avatar for rockStar60608
0
205
Member Avatar for bonzermahesh

Hi all, I need a code which allows me printing of JPanel. VIMP is the JPanel contains large number of Other components such as Jcheckbox, JLabel, JButton on top & Bottom also, JTabel & JTextarea is inside JScrollpane. Something like this. JLabel JLabel JLabel JCheckBox JCheckBox JCheckBox JLabel JTextPane JTabel …

0
93
Member Avatar for OllieFalle

I have changes a few things but still seem to be hitting a brick wall. I have been told that my note is drawn at the same position each time. Can anyone help with what i can do regarding this. Otherwise can anyone help with getting this thing to work. …

Member Avatar for Phaelax
0
120
Member Avatar for jasmin_java

Hi, to everyone.‎ My program to make program to write the application the input ‎a dollar amount to be printed on a cheque, and then prints the ‎amount with eleven position number are available for printing ‎the cheque. And need to run the word equivalent of the cheque ‎amount e.g.: …

Member Avatar for NPH
0
211
Member Avatar for nordmann

I've been trying to find an alternate means of achieving essentially what JSplitPanes can do, except that the hideous-looking splitter bar would be invisible, and you can resize in both x and y dimensions at the same time. My current thought is to subclass a JPanel with listeners that implement …

Member Avatar for nordmann
0
155

The End.