35,618 Topics

Member Avatar for
Member Avatar for manish250

hello all i hv a jsp code in which there is a link to another file successLogs.jsp as follows <td align=center><a href="successLogs.jsp?strHour=<%=strDate+strHour%>&strcli=<%=strcli%>"><u><%=totSuccCount%></u></td> in successLogs.jsp there is call to a linux script which is fetching a file from the logs. The problem is that when i click on the link in …

Member Avatar for manish250
0
263
Member Avatar for keanoppy

[CODE]image = new JLabel(new ImageIcon("C:\\Users\\user\\AutoTextSum\\src\\autotextsum\\newImage.JPG"));[/CODE] As you can see from the instantiation on the label above, I've used a static file referencing whereby I explicitly indicates the physical location. Let say this coding file name is autotextsum.java. How do I put the image without the need to explicitly indicates the …

Member Avatar for JamesCherrill
0
176
Member Avatar for fender422

I completed a homework given by my instructor, but it is not doing what it's suppose to do completely. I was able to add a message in the pixel, but if I run it, some wierd characters were added after the message here's my work. I was only assigned to …

Member Avatar for quuba
0
177
Member Avatar for ladylove

Develop a car loan payment calculator. Design a GUI, using NetBeans GUI Builder, to enter price of car, down payment, interest rate, and length of loan in years. Your bank only offers 3 interest rates 5%, 10%, and 12% based on credit rating. Use grouped radio buttons to select between …

Member Avatar for javaAddict
0
862
Member Avatar for SolidSora

I'm trying to make cars of a certain color go from one array to another. For example if I want all red cars to go to be displayed, I throw the red cars into another temporary array and they get displayed on the screen. How would I make this work? …

Member Avatar for ~s.o.s~
0
122
Member Avatar for j_cart007

Hello! Does anyone have any idea about Futoshiki Puzzle Solver. I'm new to programming and i want to make a puzzle solver in java. Any helpful reply would be regarded. Thanks

Member Avatar for jon.kiparsky
0
2K
Member Avatar for haxtor21

Hello. I am running a program form my book and i get this warning from eclipse that says: "The serializable class ColorWindow does not declare a static final serialVersionUID field of type long" [CODE]import javax.swing.*; //Needed for Swing classes import java.awt.*; //Needed for COlor class import java.awt.event.*;//Needed for event listener …

Member Avatar for ~s.o.s~
0
420
Member Avatar for madhavipoudala

I have a doubt in refresh the page in a jsp page to date and from date are there when i am giving the data for from date and for the next time i want to give the date only for the to date not the from date but when …

Member Avatar for madhavipoudala
0
313
Member Avatar for Swetha Kota

hi frnds i want some small basic java projcts samples and some tips to develop a projct plzz help me..

Member Avatar for Andrew Davis 64
-3
99
Member Avatar for dennisme

Environment: eclipse I have reached a snag with finding the perfect numbers from 0 - 1000 while using methods with multiple perimeters, one project, tow classes. There is an example on this site from quite a while ago within one single class. That is in a later chapter in my …

Member Avatar for jon.kiparsky
0
354
Member Avatar for dfin19

I need help with this hw problem. Generate a 2-D array of 25 integers and initialize them all to 0. Assign the value 9 to five random locations in the array to represent your mines. Fill the remaining array locations by counting the number of mines in any adjacent squares. …

Member Avatar for hanvyj
0
2K
Member Avatar for peterwalter

THis is what I need to do...I need help with the third point [INDENT]1. Write a class OrderedList. The implementation of OrderedList must be as a linked list of Comparable elements. The list items are maintained in ascending order at all times. On this assignment, no indexing methods are allowed. …

Member Avatar for helpmehelpme
0
253
Member Avatar for printmatic

Hi again everyone. I am trying to change around this program I wrote to meet some new requirements, but getting stuck on how to do it. *Write a program that reads a file consisting of students' test scores in the range of 0-200. The students scores should be stored into …

Member Avatar for printmatic
0
2K
Member Avatar for DallasFan3

Ok, well I am now working on a new program where a program that counts the number of times a digit appears in a telephone number. And I have no idea how to even start this. Can anyone please help? Atleast try to give me a outline or something. Heres …

Member Avatar for naief
0
2K
Member Avatar for hazeeel

How do I overwrite the 7th, 8th and 9th column of the text file with new values? What can I use? [CODE] ATOM 1 N ASN A 1 12.844 -5.008 -17.071 1.00 0.00 N ATOM 2 CA ASN A 1 12.377 -4.399 -15.793 1.00 0.00 C ATOM 3 C ASN …

Member Avatar for ~s.o.s~
0
86
Member Avatar for daudiam

FileInputStream inherits from InputStream which has a mark() method which does nothing. FileInputStream itself doesn't define any mark() method. Even then, if I wrap a FileInputStream object inside a BufferedInputStream object and call markSupported() on it, it returns true. In the docs, it says that the mark() method of any …

Member Avatar for daudiam
0
632
Member Avatar for spades0001

Is there any program that can help me customize my GUI? Like add some color and pictures? Adding color into my Jpanel, JBotton, etc?

Member Avatar for JamesCherrill
0
90
Member Avatar for BDev338

Hi there developers! I'm trying to develop my own online multiplayer game, using the DarkGDK. But I don't want everyone to have access to the media of the game, so I'm working on my own cache archive format. This is how it works: .idx0 = textures .idx1 = sprites .idx2 …

Member Avatar for BDev338
0
120
Member Avatar for vehement66

Here's my problem. I need to add only the first and last elements of each row, and display them separately. Ex. Row 0=11 Row 1=11 Row 2=8 [CODE]int arr[][]={{5,9,6},{3,2,8},{7,0,1}}; int sum=0; for(int row=0;row<arr.length;row++){ for(int col=0;col<arr[row].length;col++) sum=arr[row][col]+ arr[row][col]; System.out.println(sum+" ");[/CODE] this is my code, and i think i just need some …

Member Avatar for quuba
0
167
Member Avatar for LianaN

How could I empty my JTable (AbstractTableModel)? If I run [ICODE]tableModel.deleteData();[/ICODE], then the message "0 >= 0" appears. Thanks! [CODE]class QueryTableModel extends AbstractTableModel { Vector cache; // will hold String[] objects int colCount; String[] headers; String url; String databasename; String login; String pass; Connection db; static Statement statement; public QueryTableModel(String …

Member Avatar for LianaN
0
1K
Member Avatar for blknmld69

[B]Any ideas on how I would could this to add the selection in each box and put it in the total charges label? [/B] [CODE] import java.awt.BorderLayout; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.JButton; import javax.swing.JComboBox; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JPanel; import javax.swing.JTextField; /** The Main class creates the GUI …

0
85
Member Avatar for LianaN

Hi! How could I open a file saved on FTP Server? I'm using org.apache.commons.net.ftp.FTPClient to save/delete files. There are only 5 types of files: doc, docx, xls, xlsx, pdf. If I select a pdf file, then it must be opened in Adobe Acrobat, etc. So, what is the best approach …

Member Avatar for LianaN
0
1K
Member Avatar for Mkaveli

Hello im trying to create a character with pre devined animations. The characters parts must be changeable. I was wondering if there is a way in JAVA to create some sort of skeleton animations and add graphics to the skeleton. P.S. I was wondering if someone knows a good book …

Member Avatar for quuba
0
161
Member Avatar for damardjati

Hi, i'm a newbie here, I was confused when i try to create multisession Socket Server which can provide logged based system, please somebody who knows the solution, help me to solve my problem... thanks for all...:$

0
42
Member Avatar for pramodsajwan07

/* Calculator program*/import import java.awt.*; import java.awt.event.*; import javax.swing.*; public class JCalculate extends JFrame implements ActionListener { JLabel lblnum1=new JLabel("Enter first number"); JTextField txtnum1=new JTextField(20); JLabel lblnum2=new JLabel("Enter second number"); JTextField txtnum2=new JTextField(20); JLabel lblresult=new JLabel("Result"); JTextField txtresult=new JTextField(20); JButton btnadd=new JButton("Add"); JButton btnsub=new JButton("Sub"); JButton btnmul=new JButton("Multiply"); JButton btndiv=new …

Member Avatar for apines
-1
219
Member Avatar for musikluver4

How do I allow the display to show numbers with the commas, but then when it does the calculations, have the commas go away for the math since obviously java can't read commas in calculations? example [CODE] DecimalFormat df0 = new DecimalFormat("###,###.00"); JFormattedTextField loanText = new JFormattedTextField(df0);[/CODE] the user puts …

Member Avatar for JamesCherrill
0
174
Member Avatar for intes77

below is my code about a method regarding arrays. The purpose of my program is to let the user input the length of the array. and then insert numbers into the array, sort the numbers, and let the user search the contents of the array. my problem is i dont …

Member Avatar for intes77
0
109
Member Avatar for deviliq

Hi, ^^ I'll be competing for a java programming contest next week and one of the instructions is to "Receive input from the console window (of JCreator)." Thus, programs shouldn't involve any GUI. I've found this very useful tool called Scanner in the java.util package. My self-training was going smoothly …

Member Avatar for deviliq
0
499
Member Avatar for DallasFan3

Ok, well Iam just about done with one of my assignments, but Iam having a problem at the end of it. Iam suppose to find a maximum income of the families income that the user inputs and I have to find the families that make less than 10% of the …

Member Avatar for jon.kiparsky
0
648
Member Avatar for Jay-10

Hey Guys i was wondering if i could get a bit of help I'm creating a program that contains a number of different sorting methods (insertion, quick, merge) that sort an array of bikes. [CODE] Bike[] bikes = new Bike[13]; bikes[0] = new Bike("Mountain", 160, "Diamond", 6, 18, "Standard", "Hardtail", …

Member Avatar for troothHertz
0
531

The End.