35,618 Topics

Member Avatar for
Member Avatar for sash_kp

While copying a code snippet from some sites and pdf,docs line numbers are also getting copied.I have to omit those line numbers in my text editor manually always. Any better way so that line numbers won't be copied?

Member Avatar for ddanbe
-1
297
Member Avatar for eddiesaliba

Hi! I am testing the "session" object and I don't know why it is losing data when I change the web page. I created a simple software to show the problem: See the code: Page index.jsp: ============== <%@page contentType="text/html" pageEncoding="UTF-8"%> <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Login</title> </head> …

Member Avatar for eddiesaliba
0
872
Member Avatar for DrEinstein

Hi everyone, Does anyone have an idea of how to skip a line in a JTextField? In System.out.println, I would normally type n but it didn't work for me when I used it in a textfield: text1.setText(**"n"**+coloumn[counter]); where the output displays well as desired excpet that it doesn't skip a …

Member Avatar for DrEinstein
1
675
Member Avatar for tdoggrme

i wanted to know if u know how to get the length of digits, like if the user enters 12345 the computer will return 5 because the length is 5

Member Avatar for JamesCherrill
0
7K
Member Avatar for m1051f

Do you know how to convert PDF to PPT|PPS documents in Java? I generated a PDF document with IText and now I want to put an option for users to save as ppt|pps

Member Avatar for sheraz786
0
104
Member Avatar for callen91

I'm taking my first Java class. I need to create a rock paper scissors game. I can't seem to figure out how to fix it. Please help! Thanks (: I'm using NetBeans IDE 7.3 btw /* * To change this template, choose Tools | Templates * and open the template …

Member Avatar for stultuske
0
522
Member Avatar for abra_ka_dabra

I want to create a .csv file. I am using the following code: FileWriter fWriter = null; BufferedWriter writer = null; try { fWriter = new FileWriter("fileName.csv"); writer = new BufferedWriter(fWriter); writer.write("This,line,is,written"); writer.newLine(); writer.close(); } catch (Exception e) { } Does it create a new file if it does not …

Member Avatar for stultuske
0
167
Member Avatar for trini_flava
Member Avatar for stultuske
-1
67
Member Avatar for intes77

im having problems with my input. i want the output to look like this [CODE] Enter first string: first <- user input Enter second string: second <- user input The contents are first and second[/CODE] but the output doesnt look like that and the input is messed up. what seems …

Member Avatar for mr_bit
0
174
Member Avatar for anglaissam

Hi, i'm trying to write a small script for the website "www.fanfiction.net." This small perl script is part of a much larger script, which is why it has to be in Perl. When you are logged in and go to any of the stories on the site there is a …

Member Avatar for doubi
0
207
Member Avatar for abra_ka_dabra

Can somebody explain me how to use Comparator class for sorting using Arrays.sort? I have a 2d array.. supoose i want to sort the array 4 by 4 (let us say) using column 1 of array(let us say)...

Member Avatar for JamesCherrill
-1
332
Member Avatar for khairullah.kazimi.1
Member Avatar for ganges

hi have a nice time, I want to be an expert in Hibernate and decided to do certification in hibernate if there is any good books and links for hibernate projects kindly sugggest me, thanks in advance

Member Avatar for stultuske
0
124
Member Avatar for angelivanov

I have been trying to implement a parallel Depth First Search in Java for undirected graph. The approach I decided to implement uses one global stack which is shared by all the threads and n local stacks where n is the number of threads. Each thread stores the nodes of …

Member Avatar for JamesCherrill
0
1K
Member Avatar for pooh1234qwerty

this is my code to get an image named "hkkl.jpg" from documents and show it on applet. but it gives error saying: illegal unicode escape at /user and /documents.... import java.applet.*; import java.awt.*; public class Test extends Applet{ Image i; public void init(){ i=getImage("C:\users\both\documents","hkkl.jpg"); } public void paint(Graphics g){ g.drawImage(i,10,10,this); …

Member Avatar for JamesCherrill
0
162
Member Avatar for vinnitro

class test { public static void main(String []vinnitro) { int n=5; for(int i=1;i<=n;i++) { if(i<=n/2+1) { for(int j=1;j<=i;j++) { System.out.print("*"); } } else { for(int k=n/2+2;k>=i-1;k--) { System.out.print("*"); } } System.out.println(); } } } It works as i expected but it is still very difficult to understand for me even …

Member Avatar for vinnitro
0
150
Member Avatar for london-G

Hello, I don't know if I am posting this in the right section, I have a Java Database application(mysql). I have used netbeans to develop it. I have one table product_tbl which stores the stock level. I want to send an email notification to a specific email when the stock …

Member Avatar for london-G
0
164
Member Avatar for moeketsi.mathe_1

Using GUI (graphical user interface, i.e. Text-Fields, Buttons, Check-boxes, Lists, Labels) you are to create a car-shop or a restaurant-menu program that guides the buyer/customer. If it’s a car-shop to select a car they want, their desired specifications for that car, and finally displays an invoice as per car and …

Member Avatar for JamesCherrill
0
95
Member Avatar for Pobunjenik

Hi everyone! So, I hereby hope to show that I've made progress in coding java (largely due to the help of this great community). I want to thank everyone for dealing with me (especially James). :) The goal: The code below is supposed to seed a layout of boats into …

Member Avatar for JamesCherrill
0
2K
Member Avatar for Anas Shahid

I Am relatively new to java database accessing.. I need to access an SQL Server database..basically i need to use it in Android but I am trying to create web service in java. can i have a sample code for it?? **Please Help**

Member Avatar for JamesCherrill
0
221
Member Avatar for Jorox03

I am try to populate a JComboBox with the days of a particular month and year. I researched the problem and came up with this: public void actionPerformed(ActionEvent e) { //code to respond to the buttons goes here if ( e.getSource() == cmbMonth || e.getSource() == cmbYear ) { cmbDay.removeAllItems(); …

Member Avatar for Jorox03
0
220
Member Avatar for xxmp

Hello I made a site and i would like to update it at a server. I am from greece. Do you know which is the cost per year and a good and not very expensive server? Thank you

Member Avatar for peter_budo
0
173
Member Avatar for Violet_82

Chps still having big problems uploading java files onto the forum, I keep getting the below error ![a7770cd5e7699bf618ad96734e519ad8](/attachments/small/2/a7770cd5e7699bf618ad96734e519ad8.png "align-left")

Member Avatar for Violet_82
0
271
Member Avatar for sushants
Member Avatar for JamesCherrill
-4
225
Member Avatar for abra_ka_dabra

I am trying to read a CSV file having no. of rows=row and no. of columns=col by the following method: public static String[][] FileIntoArray(int row, int col, String FileName){ int Filerow=0; int Filecol=0; String line; String[][] FileArray= new String[row][col]; File file = new File(FileName); try{ BufferedReader bf = new BufferedReader(new …

Member Avatar for JamesCherrill
0
256
Member Avatar for london-G

Hello Daniwebers, I have my login form inwhich I read the value in mysql table to identify whether the password match with the role. I have on combobox with different roles(director, assistant...) which I have filled in manually. It does the work but I would like to do something else …

Member Avatar for JamesCherrill
0
160
Member Avatar for game06

i can some one help me with jframe and panel. i want to create button using jpanel. i look online but they seem to have different ways to do it and i have no idea which is the best way to do this. ex some people extends jframe at top. …

Member Avatar for pbj.codez
0
255
Member Avatar for Start4me

I've wrote a game. But when I compile, and run the main method, there is an error, saying: No main methods found or something like that. I have one class called Game.java, which is supposed to be the main one, and gameLoop.java. For unknown reasons, gameLoop doesnt want to compile. …

Member Avatar for Start4me
0
356
Member Avatar for xxmp

Hello I have a site. For not i just check the size of the image and if it is bigger than a size i just do not upload it. Is there a way to reduce the size and upload it later? Thank you DiskFileUpload fu = new DiskFileUpload(); FileItem fi4=null; …

Member Avatar for xxmp
0
299
Member Avatar for karan.rks

hey everybody im new to java i have a book and im learning the language from it but i want to know a compiler where i can run the programs i have "IDEA" but it is really confusing can anybidy help me please???

Member Avatar for stultuske
0
198

The End.