35,617 Topics
![]() | |
how can i create a weblink in my java program. I tried adding a weblink in JLabel usign the html tags: [code] JLabel wwwLink = new JLabel("<html><a href=\"http://www.domain.com\">my link</a></html>"); panel.add(wwwLink); [/code] But the text came out blue as if it were a link, but nothing happens when you click on … | |
I can't seem to remember how you create subitems in the menu's. Does anyone know how? Like this: Format --> Color(then like a drop down) *red *blue *green | |
OK, here's the reason I'm ready to shoot myself. I access a .jsp page with no problem on a number of computers. On another computer, I can access the page once, and then get an error message (page not available with IE, timeout with Firefox and Netscape). I have uninstalled … | |
Hello everyone, I want to use indexing technology to speed up searching operation of my application. I have found that Java built-in type Hashtable can only have one key for each object. But my requirement is that an object can have multiple keys for an object. For example, the objects … | |
I got this method that encrypts and decrypts text. All of it works fine, except when it comes to spaces. It doesn't convert the spaces correct. If you take a look at it, you might understand. [Code] import java.util.*; public class CustomCypher { public String encryptText(String key, String text) { … | |
I would like to know if Java API has a built in shopping cart class which is readymade and ready to use. Thanks rational611 | |
i have a jsp program which use to download some files from the internet. i try to make it into multi-threading download. but at the end it still run in single thread.Do i need to use java bean? please help me. Thanks. <%@ page import="java.io.*"%> <%@ page import="java.net.URL"%> <%@ page … | |
this is my first Java course and i am having troubles doing one of the assignments... well i am suppose to read a file containing grades of students...here is an example 034-23-8901 45 78 85 34 342-67-1231 98 45 67 45 452-57-2351 49 78 61 52 the first 9 digits … | |
I'm trying to write this method that takes some parameters from my text editor, and encrypt the text. I got part of it written, but I'm stuck on the next bit. I got the part where you convert the "key", but I just can't figure out what to do next. … | |
I need some help in trying to find out how to cast a method that is within an object which is inside a LinkedList. Let me try to explain: I already know that I have to use a wrapper to convert an object back into another state. The think I … | |
Hi; Does anyone know how 2 use jni??? I want to figure out the CPU temperature. Can somebody teach me how? Thanx in advanced, C++ | |
Hi, I am beginner in programming with java .. I have a silly question and I hope you help me! how to print an integer array contents without leaving new line after each digit because this happens when I use System.out.println.. I am sorry for disturbing you.. | |
Alright, so i just restarted my computer yesterday and when it opened to the welcome screen (XP PRO w/ SP2) it was all written in a different font (marlett i later figured out) and so it's all symbols and squares and quite the mess. So, naturally, i logged into my … | |
Hi Everybody, I was wondering if anybody could help me. I want to find the most frequent lettter, and replace it with another letter. It hen want to find the second most common letter and replace it with another letter. It's not working. Could anybody please help?? [CODE]import javax.swing.*; import … | |
I have this system which I only want to try and borrow books from a library. I have data already in arrays. I need to check that nobody else has a book then add it to the data. I have commented where i think the problem is. i have tried … | |
If anyone can tell me where I am going wrong with this method, that would be reaallly awesome, because I have no idea how to make hte method work properly. It consists of two methods actually, a driver method for the recursive method, and the recursive method itself: [code] public … | |
Hi, I'm working on a simulation that uses a fish in a 1x5 "fish tube" matrix. The fish (this symbol: ">=)" ) moves randomly around the tube and the number of "bumps" against the top, bottom, right, and left sides are counted. What I want to do is this: Turn … | |
Yeah for some reason - on my main prog i click a button brings up a little display window to show a few details. But when i move this window. it goes black :S Any ideas? | |
Hi everybody, I was wondering if it is possible (and if it is, how to do it) to put a JPasswordField into a JOptionPane. Thanks in advanced, C++ | |
Can someone help me create a rounding routine? I have some mathematical calculations being done in a program that the final result is a double. The only trouble is, is when I want to display it, there are too many digits appearing. I have searched the Sun web site and … | |
Hi everyone,i really hope you can assist with the following problem that i have been having,how do i add components to JApplets,what are the methods tha i should use for the task? | |
Hi, I am supposed to write a program for a school assignment that asks the user to enter the amount of coins, and then output the amount in quarters, dimes, nickels, and pennies. That was easy enough, but I found out that I need to use a constuctor to initialize … | |
My applet is not showing up in a web page, and all of the code is correct... I'll post it and the html code: [Code] // import all need packages import java.awt.*; import javax.swing.*; import java.awt.event.*; import java.applet.*; //extend JFrame for the user interface and actionlistener for events public class … | |
I am doing a visual traffic simulation project and i have the named problem in my main class.How do you solve it.the problem occurs in the following segment of the program:The roadDesigner,roadNetwork andsimPanel symbols cannot be resolve.(The problem starts at the bolded part of the program) [code] import java.awt.BorderLayout; import … | |
Hi everyone, I have an easy question but i can't seem to get it right. Bear with me. I have a buffered image where i would like to draw a rectangle around that buffered image. The thing is i need the thickness of the rectangle to be of a certain … | |
Hey guys, I need your help. I need to write a Java program for a simulation for a lottery. I got so far as I got numbers and everything. But how can i make sure that there is no number going to be there twice? Thanks for your help Julie | |
HI, I have problem cant open some pop up window as in links. Here's my system: AMD XP 2600 1.94GHz 514 Mb ram window XP professional 2002 SP2 IE ver 6 Some website that I've allowed pop up but not getting all pop ups to be opened. I've tried hold … | |
Hi: I made a java app. (with 3 windows) and I was wondering if there was a way to close two of the three forms (except one window) without closing the entire application (All 3 windows). Thanx in advanced, C++ | |
1. Problem Descriptions: People living in a Pacific island like to play four games. These games are similar to our lottery games. One of the games is play 6 that is to randomly pick 6 different numbers between 1 and 56 including both numbers. The second game is play 5 … | |
Does anyone know a good tutorial on parsing math equations? I would use google, but I don't know what to search. |
The End.