32,204 Topics

Member Avatar for
Member Avatar for hfx642

I've got a JScrollPane that I would like to scroll horizontally ONLY. I've added a Row Header with setRowHeaderView (on the Left side), but I would like to add a "Row Footer" (on the Right side). There is no setRowFooterView! Any ideas of how to do this? Will I have …

0
91
Member Avatar for winecoding

I opened the .bashrc file on a system, which includes [CODE]export JAVA_HOME=/usr/lib/jvm/java-1.6.0-sun.x86.64[/CODE] After typing [CODE]whereis java[/CODE], the system prints out [CODE]java: /usr/bin/java /etc/java /usr/lib/java /usr/share/java /usr/share/man/man1/java.1.gz [/CODE] It seems to me that none of the above path matches the JAVA_HOME set up in bashrc file. Can you let me know …

Member Avatar for stultuske
0
248
Member Avatar for tom543

please help me! Fullfill 10 philosophers eating and thinking transaction at least 5 times and make them to be full.(with java) My Best Regards...

Member Avatar for tom543
0
193
Member Avatar for vextorspace

I have an JOGL based opengl program that uses textures on flat surfaces. After a texture is put on a surface, it will eventually crash. If the textures are small, it takes a while. I managed to reproduce it with a simple program: [CODE] package org.yourorghere; import com.sun.opengl.util.Animator; import com.sun.opengl.util.texture.Texture; …

Member Avatar for vextorspace
0
197
Member Avatar for eagl09

Keep getting reached end of file while parsing error I have been told this error is from extra or missing closing brace in code..CANNOT find where it is at. any help?? [code] import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.JPanel; import javax.swing.JTextField; public class BasicCalculator { private static …

Member Avatar for rubberman
0
332
Member Avatar for Majestics

I want combo box in jtable visible from start not when i click the cell... any idea?

Member Avatar for Ezzaral
0
141
Member Avatar for ceyesuma

I went and tried to learn how to use Enum So I apologize for the lack of logical construction but I had to start somewhere I have code that I am not sure how to use it because I don't know how to call it so all the logic went …

Member Avatar for ceyesuma
0
121
Member Avatar for cemali_ys

Hello! I have many big lists of free proxies on text files. I need to write a small program which can test these proxies if they work or not. To do that i need to send ping on each proxy, but this is not a 100% solution because many proxies …

Member Avatar for JamesCherrill
0
150
Member Avatar for Chicken80

Hi there, I am very, very new to programming and need to work out how to determine if a number entered by a user is a prime number. I have coded this but it does not work. :'( Any assistance would be greatly appreciated! I also get the following error …

Member Avatar for jon.kiparsky
0
351
Member Avatar for lynnajoe

Hi, This program has the information I need it to have but instead of going down in a column it goes straight across. Can someone show me where to get the formatting for this kind of code? I tried different things to no avail. Thank you for this and all …

Member Avatar for JamesCherrill
0
158
Member Avatar for ssdeep

i need help using MAC from javax.crypto package. i am able to generate MAC codes using keys but i am getting different mac's for the same message using the same key.can anyone plz give a small foolproof code to generate mac from say a small message like "hello world" so …

0
91
Member Avatar for stevanity

Im reading Core Java (Cay Horstmann) V I And I came across this program......... [CODE]import javax.swing.*; import java.awt.event.*; import java.awt.*; class MyFrame extends JFrame { private ButtonPanel buttonPanel; public MyFrame() { setSize(300,200); setLocation(570,350); setTitle("Button Test"); buttonPanel=new ButtonPanel(); add(buttonPanel); } private class ButtonPanel extends JPanel { public void paintComponent(Graphics g) { …

Member Avatar for NormR1
0
962
Member Avatar for jazz_vill

I'm kind of confused about this. I want to create two threads that works in the same data. For example if I have an array of Strings then I want this two threads to work in each unique item say add a letter 'p' in each strings. My question is …

Member Avatar for jazz_vill
0
90
Member Avatar for Jessurider

in visual studio when we make a project in c# with backhand as sql........we can see the sql file and we have to locate it in the corresponding place and specify that location........but in netbeans when we make a project in java and backhand as mysql.....we cannot see where that …

Member Avatar for masijade
0
148
Member Avatar for marsangel

Hi there! I just want to ask if it is possible that my java program, which is done in Netbeans, can be run in a computer without netbeans? I mean, how can I compile my program where in, maybe an exe file can be created or an icon will be …

Member Avatar for marsangel
0
96
Member Avatar for monica23

Hi Programmers, please am developing an applications that requires upload image and forms to database. I have found codes on how to upload only images and it works. Now I need to upload both form parameter and image simultaneously. I have googled the internet but couldn't find any. please assist

Member Avatar for NormR1
0
35
Member Avatar for otherdummy

Hello, everybody I am working on a simple client-server program. The server side is a console program which will send (1)the list of files in home directory and (2)the contents of the selected file to the client side. And the client side is a GUI program which sends requests to …

Member Avatar for BestJewSinceJC
0
950
Member Avatar for ceyesuma

I was reading some code that encouraged the use of vectors but my IDE is saying that it is an obsolete Collection. I need to use Vector because it can does not need to be a set size. and I would like to have a Vector of Vectors. Is there …

Member Avatar for ceyesuma
0
915
Member Avatar for hinaraees

I have a project in java named java.war. where war means web archive files. i dont know where to place this project in tomcat directory or netbean IDE. can any one tell me?

Member Avatar for BestJewSinceJC
0
140
Member Avatar for FALL3N

ok, I'm sure the answer to this is very simple.. there may even be some component in the os package to do this... I want to do what the code underneath seems like it would do.. I understand it does not, and when I try to run the code, I …

Member Avatar for FALL3N
0
276
Member Avatar for newbie14

Dear All, I would like to send email using java application. So I found this article [url]http://www.javabeat.net/tips/33-sending-mail-from-java.html[/url]. The problem now my environment is linux with jdk1.6 I do know how to setup the Java Mail Api. Any guide please? Thank you.

Member Avatar for newbie14
0
547
Member Avatar for MasterBerd

Hey guys I'm looking for java contests for high school students that I could be involved in during this summer. Do you happen to know some? If so, please post a link. Thank you.

Member Avatar for harinath_2007
0
154
Member Avatar for ssdeep

if i have information like this a->b->c->d->MESSAGE,how do i tokenize it such that i get a,b->c->d->MESSAGE from the original string???????????

Member Avatar for stultuske
0
149
Member Avatar for nered

Well the title really says it all. I am using Netbeans IDE for most of my work when working whit JComponents archive but i know how to make a java frame and add things to it without using Netbeans. Anyways. I decided to write a small program for a community …

Member Avatar for JamesCherrill
0
104
Member Avatar for desert564

the following code is to print the nearest twin primes to a number.for eg if the input is 20...the output should be 17 and 19 logic to my code is that it checks for twin primes within the range of a given number and then adds the twin primes.....the twin …

Member Avatar for harinath_2007
0
1K
Member Avatar for corby

hey i am making a game and i wanted to see it as an exe file so i took the java code, creater a jar file, and then created a exe file. When the program runs on my computer it works fine, all the images load since they are on …

Member Avatar for NormR1
0
162
Member Avatar for kiel19

Dear all, I would like to design a Quiz/ Test Application like Pass 4 sure, but I am stack on how I should store; (a)The Question, (b) The Answer and explanation ,(c) the multiple choice answers, and finally the (d) the Image for some questions that will have questions relating …

Member Avatar for steelshark
0
116
Member Avatar for FALL3N

Either nobody in the world from the myriad of forums and discussion boards I have been to knows how to do this, (which seems unlikely, as this does not seem a complicated procedure) or none of those people know how to answer a question concisely and in a straightforward way. …

Member Avatar for hfx642
0
364
Member Avatar for ssdeep

i am doing a project in which i simulate symmetric encryption in routers.so hav to store secret keys for mac encryption in a symmetric matrix.how do i do it?????????should i convert them to strings and then store strings in a matrix??????? URGENT HELP NEEDED!!!!!!!!!

Member Avatar for NormR1
0
195
Member Avatar for ankit.pandey3

Hi friends I have a chat program. Client.jar is uploaded to my website and Server.jar is executed on my system. Any visistor just have to click link and my Client.jar is downloaded in his system and chatting start properly. But problem arises when visitor don't have JRE installed in his …

Member Avatar for Majestics
0
109

The End.