36,051 Topics
![]() | |
![]() | 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 … |
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 … | |
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. | |
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? | |
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 … | |
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. | |
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. … | |
ask the user for a year and a month in numbers. Output the number of days in a month. Be careful of leap years | |
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.. | |
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) | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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. | |
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 … | |
![]() | 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 … |
[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 … | |
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 … | |
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 … | |
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-/. | |
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 … | |
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? … | |
![]() | 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] … ![]() |
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 … | |
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 … | |
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 | |
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 … | |
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 … | |
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 = … | |
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 … | |
Hi friends what's a role of index in RMS? when we use index in RMS? plz I need your help. | |
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) … | |
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 … | |
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; … | |
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. … | |
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 … | |
Hi friends... How can i put index on my records in RMS to increase the rate of RMS?? | |
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 … | |
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 … | |
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; … | |
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 … | |
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. | |
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 … | |
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(); … | |
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. … | |
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 … | |
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, … | |
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 … |
The End.