36,051 Topics

Member Avatar for
Member Avatar for Moirae

Hello everyone! I'm working on a project in C# and I have program already written in Java some time ago. I've worked with JToggleButton and have this setSelected method that can be set to true/false. Can someone explain me what this function does because I'm affraid that I will have …

Member Avatar for BestJewSinceJC
0
88
Member Avatar for dhriti22

I wanna make a block of jsp page as a public . I have a local ip for the server and people inside the local group can access this. All I need is I want to access some information publicly. I can give public ip to the website and do …

Member Avatar for msi_333
0
104
Member Avatar for Pro01

Hey not sure if your still active on this forum but i was wondering if you could help me out i am currently in development of my own puyo puyo game and i could use some help if you can please reply back thanks.

Member Avatar for Pro01
0
119
Member Avatar for b89smith

I tried compiling my java program and it gave me the following error: Note: DnldURL.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. What does this mean?

Member Avatar for majestic0110
0
227
Member Avatar for Majestics

I am giving this title so most of you attract towards this thread. I actually want to know is there any way to link mfc created programe with java . As all the programmers know that mfc contain a lot of files some time static linkage and some time dynamic …

Member Avatar for Majestics
0
129
Member Avatar for gunjannigam

I want to add a splash screen to my application. The problem is that whatever splashscreen I have seen on net are basically extending JWindow/JFrame and My application extends JPanel. Now Due to this I am not able to display my application after SplacshScreen is complete.

Member Avatar for BestJewSinceJC
0
43
Member Avatar for rp_prasanna

I wanted to validate some values using Javscript. My senario is like this: i have a variable something like this "$[LANGCOD] $[PHONENO] $[CARDNO] " In the text box i may give like this $[sdfssf] now i sholud check if the text box value sequence is present in the above string. …

Member Avatar for ~s.o.s~
0
94
Member Avatar for bonaviam
Member Avatar for verruckt24
0
123
Member Avatar for jrosh

How to add scrolbars to a panel... i dnt wanna use a scroll pane....jst add scrol bars to the Jpanel.....Is it possible...? IF NOT let me knw how to some text with scrol bars..

Member Avatar for masijade
0
83
Member Avatar for jrosh

i added Jcheckboxes to a jpanel. They can't be aligned vertically. They always appear horizontaly or vertically with very large spaces between them. How can i allign them as i want....(with out using netbeans)

Member Avatar for masijade
0
102
Member Avatar for aru211285

Hi everyone, I wrote the below small code to run one command line argument in my program but somehow couldnt understand how to store or retrieve the output generated by that command line.So i would be very thankful if someone helps me with this. Runtime rt = Runtime.getRuntime(); Process pr …

Member Avatar for masijade
0
103
Member Avatar for SSagar

Hi, I have a table with JButton for browse and a JTextField to display the selected file. How can I set the selected file to the text field in JTable? when one more button "Add"(not part of table) is clicked, a new row should be added to that table and …

0
62
Member Avatar for treyd

I have an assignment that I dont know where to begin. If someone could guide me along I would much appreciate it! Thanks alot. Write a method public static int[] avgRows(int[][] a) {} This method takes a 2-dimensional array as input and returns an array containing the averages of each …

Member Avatar for treyd
0
110
Member Avatar for Dave Sinkula

Many years ago I was wandering through some SNMP code trying to port it to a Rabbit 2000. I'd guess that not many are familiar with this device -- it's an 8-bitter, and I had no operating system or dynamic memory. So there were several issues in addition to the …

Member Avatar for Dave Sinkula
0
167
Member Avatar for rrspen316

What I would like to do is to add a dropdown menu instead of having the buttons for the three loans. I tried a few different things but just cannot figure out how to do this and get it to work. Please can someone help? Here is my code with …

Member Avatar for BestJewSinceJC
0
275
Member Avatar for kkcaddy

hey i just wanted to know if the available tutorials will be enough for me to improve from a beginner to maybe someday a teacher in java programming.

Member Avatar for BestJewSinceJC
0
114
Member Avatar for Chaster

Hello guys, I don't really need a solution, just answer - some Swing insight. So I have a panel, and a list on it. The list is populated with strings. The problem is the following: If I add the list elements too fast, I end up with different kinds of …

Member Avatar for quuba
0
127
Member Avatar for Ajantis

Hello people! I am working a little with JAVA programming. And I have a couple of assignments left. When they're both done, I graduate! :) However, I'm not fully familiar with threads. So I don't know how to solve these problems. I thought that perhaps someone could lead me in …

Member Avatar for TheWhite
0
157
Member Avatar for saeedException

[code] Enumeration portList=CommPortIdentifier.getPortIdentifiers(); CommPortIdentifier cpi; while( portList.hasMoreElements() ) { cpi=(CommPortIdentifier)portList.nextElement(); System.out.println( cpi.getName() ); } [/code] output : COM1 LPT1 LPT2 COM1 LPT1 LPT2 ---------------------------------------------- in line : PortList=CommPortIdentifier.getPortIdentifiers(); ports "COM1" "LPT1" "LPT2" are listed twise each. if you debug this part of code and check portlist variable you will find …

0
52
Member Avatar for osirion666

Okay very odd Error i created and admin page in jsp with add update and delete functions the add and update work perfect on both IE and FF however delete works 100% in ff and not IE when i refresh in FF the record is removed while IE seems to …

Member Avatar for osirion666
0
77
Member Avatar for osirion666

Okay so i have a delete button in my application and want to replace the button with an image i have tried using img type however when i click this the getparameter function - i need this to run jsp code sql delete query- it doesnt work - the button …

Member Avatar for osirion666
0
72
Member Avatar for scias23

i want to extract 576 to hundreds = 5 tens = 7 ones = 6 my code does this purpose, but.. [CODE=java] h=num/100; t=(num-(h*100))/10; o=((num-(h*100))-(t*10)); [/CODE] i want to rewrite my code using loop and modulus operator.. help guys. thanks btw: i'm writing a program that converts numbr to w.ord-/.

Member Avatar for scias23
0
161
Member Avatar for osirion666

Okay so i am having a major problem i am using an image button to delete a recrod from a DB when i use FF it deletes perfectly runs are you sure you want to delete JS and if clicked okay deltes the record In IE 7 however this is …

Member Avatar for osirion666
0
90
Member Avatar for rajuchacha007

Hello all, I am working on a Java project which uses mysql for database. I want to design code for a data loading module which will define database schema and consume actual data. I want to know whether there is any way to run this load data infile command dynamically? …

0
52
Member Avatar for feoperro

Hi, I'm trying to create a single instance of a regex term. i.e. [CODE] boolean rProcessEndpoint = Pattern.matches("[http://]{1,1}", processEndpointInput); System.out.println(""+processEndpointInput); [/CODE] However, with this particular instance, you can type "http://http://" and it will return true. Here is my source of information: [url]http://www.dreambank.net/regex.html[/url] Here is where I test my regex: [url]http://www.regular-expressions.info/javascriptexample.html[/url] …

Member Avatar for feoperro
0
257
Member Avatar for hansino

Hi , //In this project, you’ll create a program that calculates a salesperson’s commissions using double-precision values, and displays the results. The commission rate in the first method will be entered as a decimal value (for example, a 7.5% rate will be entered as 0.075). I read javaAddict reply here …

Member Avatar for crunchie
0
237
Member Avatar for runee1000

hi: i'm trying to make a simple java program which can determine whether a number is odd or even. I am 100% Completly new to java and just started, and so I do not understand most terms and such, so my apologies for that. The Following code is wht i …

Member Avatar for fox07
0
223
Member Avatar for jzahri

hi, how can I spawn another instance of a JVM complete with it's parameters without the need to construct OS dependent command lines? is there any class that helps me do that? thanks, johan

Member Avatar for kvprajapati
0
54
Member Avatar for fox07

How can I align it properly? got hard time. sorry i'm just new in Java [CODE] public class MultiplicationTable { public static void main(String[] args) { int[][] multtable = new int[11][11]; System.out.print("*"); for (int a=1;a<=10;a++) { System.out.print("\t"+a) ; } System.out.println(" "); for(int i=0; i<=10; i++) { // this loop is …

Member Avatar for masijade
0
81
Member Avatar for kvass

Can someone please write a piece of code for the following and comment each line (except for really simple ones like int x = 5;) explaining what it does? Objective: write a program that "spins a number wheel" in the background while waiting for you to type "stop" -- when …

Member Avatar for kvprajapati
0
94
Member Avatar for nicolek808

Output should be as show below: and files are attached. 1. Here is example output for input file electricity.txt: number of integers in file "electricity.txt" = 4 index = 0, element = 1877 index = 1, element = 1923 index = 2, element = 1879 index = 3, element = …

Member Avatar for quuba
0
162
Member Avatar for llemes4011

Hi everyone. I have a quick question: Is there anyway that you can check to see if a point lays on an Arc2D object? I'm trying to write a Physics library (or at least part of one), and I noticed that there is no method that does it. You can …

Member Avatar for llemes4011
0
173
Member Avatar for Dajer

Hi friends what's a role of index in RMS? when we use index in RMS? plz I need your help.

Member Avatar for javaAddict
0
68
Member Avatar for low1988

The program cannot display the value which had assign to properly.The output is some weird texts.Why? [CODE] import java.util.ArrayList; class Employeee { private String name,department,position; private int idNumber; public Employeee() { name = null; position = null; department = null; idNumber = 0; } public Employeee(String n,String p,String d,int i) …

Member Avatar for javaAddict
0
154
Member Avatar for harshadap

I m doing Program for sudoku. The blank grid displayed but how to pass random integer values to that grid. here is my code: [code=java]import javax.swing.BorderFactory; import javax.swing.JComponent; import javax.swing.JFrame; import javax.swing.JPanel; import java.awt.*; import javax.swing.JFormattedTextField; import javax.swing.text.DefaultFormatterFactory; import javax.swing.text.NumberFormatter; @SuppressWarnings("empty-statement") public class Board { private static final Dimension FIELD_SIZE …

Member Avatar for harshadap
0
126
Member Avatar for vishalonne

Hi All I am trying to resize the button which is placed in a cell of GridBagLayout but FAILED...:( Like I want same size of every button (Please see the attached file for what I am getting as Output of my Program which is as follow - [CODE] import java.awt.GridBagConstraints; …

Member Avatar for quuba
0
294
Member Avatar for valleymorning

Dear all, Could anyone help me on finding all magic numbers using JAVA with 1000 iterations or less? Magic numbers are 6 digit numbers that have the property that they are equal to the square of the sum of two 3-digit numbers when it's high-order and low-order digits are separated. …

Member Avatar for valleymorning
0
473
Member Avatar for Acegikmo

I'm using the drawImage(); method in Graphics2D to draw my png images. However, I'd like to be able to render them with screen blending. If it's possible, I'd really like to know how you do it, and if it's fast enough to be used real-time in games. I think I'm …

0
50
Member Avatar for Dajer

Hi friends... How can i put index on my records in RMS to increase the rate of RMS??

Member Avatar for Dajer
0
75
Member Avatar for scias23

i just can't figure out what's wrong with this. 1. suppose i enter 9-3-1991 as the birthdate, this should return 18. but it returns 17. //wrong 2. suppose i enter 2-9-1991 as the birthdate, this returns 18. //correct what's wrong with my code? [CODE=java] private static int ageCalc(int mm, int …

Member Avatar for scias23
0
151
Member Avatar for root59

Hi there all I would like some help with my client and server program that uses gui to chat with each other. The program works fine the first time but somehow when i try to send a second message nothing gets displayed and the person object is empty. I dont …

0
150
Member Avatar for kawalya

Hi folks, i need some help on how to get this code to work properly: I have not had the time to fully commit to its intrinsics but i am sure there is someone in the community who can get me some quick help. Thanx.[code]package javaapplication1; import java.io.ByteArrayOutputStream; import javax.crypto.Cipher; …

0
106
Member Avatar for Capra

Hi, I am trying to setup a tomcat server in eclipse galileo java ee to test a simple JSP page. I have problem, but no solution to it. So, if i want to see [url]http://localhost:8080/Project/WEB-INF/Hello.jsp[/url], it gives me error page HTTP Status 404 - /Project/WEB-INF/Hello.jsp I have tried to change …

Member Avatar for peter_budo
0
376
Member Avatar for timon_zed

Hello people, I want to find exactly how I would upload an image to a database from a JSP web form.The form would have to support other formats as well such as text and should cater for the image upload as well.

Member Avatar for peter_budo
0
994
Member Avatar for push

hi pls...any one replay me i wanted to update status of shoping cart item(status using dropdownlist for selecting option). And this value should depend on selected checkbox value. That is i wanted to select required item and for that item status should be updated by passing this itemid and status …

Member Avatar for javaAddict
0
475
Member Avatar for scias23

i have this code. [CODE=java] numberPlayers = 2; players = new Player[numberPlayers]; setName(); setHand(); private static void setName() { for(int i=0;i<numberPlayers;i++) { out.print("Player "+ i + " name: "); players[i].setName(in.nextLine()); out.println(); } } private static void setHand() { for(int i=0;i<numberPlayers;i++) { out.print("Player "+ i+1 + " hand: "); players[i].setName(in.nextLine()); out.println(); …

Member Avatar for masijade
0
137
Member Avatar for aparnasofte

I hav to do a project on online examination using java and j2ee concepts. I donno from where and how to start. I donno which concepts to use. Am not confident with the concepts. But am sure I can learn and do.. plz someone guide me to do the project. …

Member Avatar for aparnasofte
0
114
Member Avatar for khess

As you probably have heard, Oracle bought Sun for $7.4 billion today. I'm no Larry Ellison fan, because frankly, I think he's a few cards short of a full deck but I think in the long run, this is good for Sun. Not all of Sun but a lot of …

Member Avatar for rackserverdeals
0
282
Member Avatar for khess

Everyone from techie bloggers to technical journalists to stay-at-home moms are talking about today's big news: [URL="http://www.ibm.com"]IBM[/URL] is trying to buy [URL="http://www.sun.com"]Sun Microsystems[/URL]. Big deal. What's in it for Linux? As a matter of fact, it is a big deal. And an even bigger deal for Linux. Sun owns MySQL, …

Member Avatar for Jens Staal
0
590
Member Avatar for pranava

Make the necessary changes to the web-service project in the web.config file to make it accessible to the HTTP GET & POST calls. This is a simple Java program illustrating how you can consume the .NET web-service in Java program. import java.io.*; import java.net.*; public class WebService { public static …

0
43

The End.