35,618 Topics

Member Avatar for
Member Avatar for PhiberOptik

Hey guys, I am working on my final project, and I was wondering, I am designing the GUI and if you look at the buttons I want the green and red buttons to appear 3D like the rest of them but with a colour overlay is it possible to do …

Member Avatar for PhiberOptik
0
320
Member Avatar for clueless101

[quote] My code asks a user for a password. To properly validate the user's entry, it must include the following requirements: 1)have a length of 5 2)have an uppercase character 3)have a lowercase character 4)have a digit My loop only works for the lowercase and length of 5 requirements. Can …

Member Avatar for clueless101
0
129
Member Avatar for Grub

Hi is there a way of getting a file creation Date for a file class object? I am trying to do so on a mac. Many thanks

Member Avatar for Grub
0
367
Member Avatar for mrjoli021

I have a tab delimilated txt file. how can i read only the second part of the file. ex 10.0.0.0 hostname date i want to read in the hostname only what function can i use to do this?

Member Avatar for Ezzaral
0
102
Member Avatar for VernonDozier

OK, I've been reading a lot online and I think I can't do this, but I'm really hoping someone has a clever workaround. What I have is a bunch of classes with Color attributes. I'm also storing the red, green, blue, alpha values as integer attributes in those classes because …

Member Avatar for VernonDozier
0
143
Member Avatar for kellybaz

I am working on a project. Here is some background: I am working on a page that lists people and their training info. The training info is an expansion box listed underneath each person. I am trying to have the expansion box automatically open on page load if their training …

0
60
Member Avatar for star100

Student database creating a program that will be used to manipulate a student database. This portion of the database will keep track of student data to include the students name(first, middle, last), date-of-birth, the student's id number, the student's major, and the student's GPA.Based arrays and objects,use 2 parallel arrays …

Member Avatar for VernonDozier
0
193
Member Avatar for star100

How can i code in java using Two-dimensional Arrays Method to input data from the data file Method to display the table (Please align columns, but no need to use borders, line separators, etc.) Method to compute the average of each row and display it Method to compute the average …

Member Avatar for Ezzaral
0
117
Member Avatar for leox99

we would like to build a system in java ( set of classes ) to manage and handle text files . the required software uses the predefined java streams (FileReader, FileWriter,...) and allows creating and opening of new text files as well as writing and reading.In plus, it allows the …

Member Avatar for stultuske
0
93
Member Avatar for TAboy24

I had to write a triangle code enabeling it make some functions and including constructors inside..based on using the class Point(i atached the description file of it here and the Point.class itself)..I can't write the " public static void main () " in my code cause it screams errors to …

Member Avatar for Ezzaral
0
210
Member Avatar for babusek

Hii Folks , Sorry For this Long Question, Problem: I Want to Create 5 check boxes and i want to reorder those components using a GridBagLayout , and it's have a Container called Local_Container,after reordering of those components add to panel, so Now we have a Container(Local_Container with a label …

Member Avatar for babusek
0
155
Member Avatar for Saurabhw

Hi, My problem is that I have to upload a CSV file from Client Machine (Windows) to Unix Application Server. I am using JSP method post and multipart/form-data (as in [url]http://www.roseindia.net/jsp/file_upload/Sinle_upload.xhtml.shtml)[/url]. The file is uploaded fine but the problem is it displays carraige Return (^M) a square boxes on Unix …

Member Avatar for masijade
0
70
Member Avatar for babusek

HI Folks , Any one Here Name The Java Swing Component with "Date and Time Instance"? Thankq Sekhar

Member Avatar for masijade
0
152
Member Avatar for pavanwanam

Sliding Window Mechanism The sliding window mechanism is used in many protocols at many different layers. The sliding window helps in solving a number of problems. Retransmission of lost or damaged frames (or packets) and flow control problems are just examples of that. The sliding window protocol in its simplest …

Member Avatar for verruckt24
0
117
Member Avatar for vlpkiranmayi

i am persuing my engineering.i would like to do a mini project in java.can anyone please suggest some interesting topics and guide me how to start??

Member Avatar for stultuske
0
352
Member Avatar for jbennet

Okay im reading in lines of text e.g "abcdefg" and I need to split the line into an array of characters where each character is stored in its own element so its like [a][b][c][d][e][f][g] I know how to do it with splitting words from poems etc... using something like txtLine.split(" …

Member Avatar for ~s.o.s~
0
143
Member Avatar for nyalex

Hi I am working on an incredible project, it is an GUI. I hav used a JLabel to show 10 words but it actually always shows the last one only. I think that i need a timer to make it change but i have already a timer and i cannot …

Member Avatar for nyalex
0
296
Member Avatar for BestJewSinceJC

[CODE]public void generateBits(Node root, int current, int counter){ if (root== null) return; if (root.left == null && root.right == null){ list.add(new HuffCode(root.theChar, current, counter)); } else{ current<<= 1; //move all the bits 1 spot to the left generateBits(root.left, current, counter+1); generateBits(root.right, (current | 1), counter+1); } }[/CODE] Somehow, this method …

Member Avatar for BestJewSinceJC
0
98
Member Avatar for Blackeagle

Hi, i' having a small problem with panels. i want the panel always to have the same size even when empty. in my program that i'm writting, i can see that the panel doesnt fit all the area where i put it ( i noticed that as i have different …

Member Avatar for Ezzaral
0
157
Member Avatar for Tyster

Hi Folks, I have a general question about multithreading... I have a small app that is multithreaded. I have a main() class and a separate Runnable class that implements the Runnable interface. The problem I have is that the Runnable class needs to return an integer to main(). But this …

Member Avatar for Tyster
0
143
Member Avatar for cproud21

I am to design an applet that produces a six sided polygon in which the coordinates are set according to the location of the mouse when it is clicked. I am struggling setting each of the clicks to the correct point. I have tried many things, however have not been …

Member Avatar for Ezzaral
0
170
Member Avatar for PhiberOptik

Hey guys, So I'm on the second last question of my latest homework assignment and I can not figure out what is wrong. Basically it asks you to input a date, name, amount and then prints out a check, with a word form of the name on the bottom. Well, …

Member Avatar for PhiberOptik
0
131
Member Avatar for Venks

Hai Friends, I doknow how to store a particular data in mobile using j2me, i want to retrieve stored data while opening the application next time. is it possible in J2ME. plz help me for this problem.

Member Avatar for peter_budo
0
105
Member Avatar for stuuuu

Hello, I'm creating a simple voting program. Everything works apart from that the program wont calculate the % total of votes for each candidate. It displays each candidates percentage as 0.00%. I've tried everything to see why it does this but I'm fooled :( [code] import uulib.*; public class Candidates …

Member Avatar for stultuske
0
121
Member Avatar for jemu

i am using page navigation to show the search results like in google. presently my page is looking like.... FIRST PREVIOUS [1][2][3][4][5] NEXT LAST But i want to display the link FIRST when i am not in the first page. similarly should display the link LAST when i am not …

Member Avatar for peter_budo
0
32
Member Avatar for Zelores

so heres the issue im having. i have this class that im suppose to make for a tester class. i have to declare an array of string at the class level. there is method call to read the context of a file and put into the array. the problem im …

Member Avatar for stephen84s
0
82
Member Avatar for ajithraj

haii friends.. i want to search for a file, which resides in my own system using jsp...that is, when i click a button, a search brower is to be displayed which showing all my folders in my system and from that i want to search for the needed file...Is this …

Member Avatar for javaAddict
0
65
Member Avatar for BestJewSinceJC

I had a problem w/ efficiency - The problem was that using String concatenation was inefficient for large text files, when reading the whole file into the String. I've since thought about it, and I guess this is because Strings are immutable - so every time concatenation is done, a …

Member Avatar for masijade
0
140
Member Avatar for xandres

I need to make a seating reservation system for my assignment and I have to manage .dat files. I have to store all Student objects in a file. When a student is registered, a new object is created and I need to add it to the archive. But as far …

Member Avatar for xandres
0
202
Member Avatar for PhiberOptik

Hi guys, I'm new and I'm totally stuck on a question for class! Basically we have to get the user to enter a few sentences and then change the first letter of every sentence to a capital version. I'll post my code below. (I'm not asking for the answer just …

Member Avatar for PhiberOptik
0
222

The End.