32,205 Topics

Member Avatar for
Member Avatar for java_help

Firstly, I am a beginner in Java, and I have never been into any programming before, so it seems like I need a little help to solve a task. The task is "I've a text file with the size of more than 5 MB, & I need to clear the …

Member Avatar for JamesCherrill
-2
544
Member Avatar for mc.sQr

i'm newbie ,i just started learning the basics of java. how much time-give or take- would it take to have working knowledge of java? how much ican learn on my own studying 4h a day?

Member Avatar for JamesCherrill
0
275
Member Avatar for Wolfenstien

Hi! Im new to Java and iv been studying GUI's in it. Just started with swing and tried to make this giu for a calcularot. but it doesnt execute and gives me "java.lang.NoClassDefFoundError" error. im a total noob so i cant figure it out. i'd really appreciate it someone could …

Member Avatar for Wolfenstien
0
271
Member Avatar for akashtripathi8

Introduction of iText Itext is often a library that permits you to create and manipulate PDF documents. It enables developers seeking to enhance web- and also other applications with dynamic PDF document generation and/or manipulation. javaaster.com

0
77
Member Avatar for RazaAjmi

public void cosUpdate(String sr,String name,String fname,String adress,String phone,String refernce,String tailor) { try{ String QUERY1 = "UPDATE Info1 SET FatherName = '"+fname+"' WHERE Sr = '"+sr+"'"; JOptionPane.showMessageDialog(null,QUERY1); Class.forName(JDBC_DRIVER); connection=DriverManager.getConnection(DATABASE_URL); statement=connection.createStatement(); result =statement.executeUpdate(QUERY1); if(result >0) JOptionPane.showMessageDialog(null,"Successfull"); else JOptionPane.showMessageDialog(null,"UnSuccessfull"); } catch(Exception ex) { JOptionPane.showMessageDialog(null,"Error in cosUpdate() Method","Error",JOptionPane.ERROR_MESSAGE); } finally{ try{ resultset.close(); statement.close(); connection.close(); …

Member Avatar for stultuske
0
150
Member Avatar for skliz

I have been seeing alot of adverts on c sharp on xamarin. Please for does of you who are experienced on c sharp on xamarin. Can it do every thing that android on xamarin would do.

-1
82
Member Avatar for emanhossnycs

Hello All, I have an open source maven java project. I downloaded it to Eclipse using Git. when I made "maven install" to this open source, it is converted into 4 other projects, where each project has a war archive. I tried to test these projects by adding thier war …

Member Avatar for masijade
0
67
Member Avatar for emanhossnycs

Hello All, I have an open source java project in Eclipse & have a folder contains the javadoc of this project & I need to associate the java doc to this project. can any one tell me how I do this?

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

Hello, I am storing an image in the database. I would like to know how can I resize the image before actually saving the image. I have a form with a label, a button and a text field to store the image path.Here is my code public void SaveImage() { …

Member Avatar for JamesCherrill
0
290
Member Avatar for vedmack

Hi, I'm looking for an java api which can convert .doc file into .pdf file... i need this solution to work without any intervention of MS Office/Windows. If anyone have any idea about such api , please reply. Thanks ahead Daniel

Member Avatar for stultuske
0
3K
Member Avatar for Phrren

I can't figure out why I'm getting this error, i've checked all the posts I can find here and they are all a method inside another method, which i'm pretty sure I don't have. This is the error message it gave me: Exception in thread "main" java.lang.RuntimeException: Uncompilable source code …

Member Avatar for stultuske
0
1K
Member Avatar for kdar

What can I use to write application for Windows Mobile 6.1 and 6.5? Application was written before (not by me) using VB.Net 2008, but I really would like to move away from it to plain C/C++ or possibly Java. Where can I start and what are my options? I don't …

0
114
Member Avatar for mbahny

I would love if someone had a few minutes to help me in my programming, I usually am alone doing this trying to learn and all, which entails a bunch of guess and checking with no real pin point of where I went wrong. http://pastebin.com/pE0giYq1 This is a script/program done …

Member Avatar for sirlink99
0
200
Member Avatar for abra_ka_dabra

Just curious to know if we can download youtube videos using downloader using HTTpClient? import java.io.*; import java.net.*; public class trial { public static void main(String[] args){ setAndAuthenticateProxy(); try { URL url = new URL("http://www.youtube.com/watch?v=tQC7rO8cjLs"); HttpURLConnection connection = (HttpURLConnection) url.openConnection(); connection.setRequestMethod("GET"); InputStream in = connection.getInputStream(); FileOutputStream out = new FileOutputStream("C://Temp/fo.flv"); …

Member Avatar for pbj.codez
0
205
Member Avatar for NaikTharki

Hello Everybody Its has been a very long time since I started some programming project for my own curiosity. And now that curiosity has reached a level of desparation. I want to make a talking program. You know like Text-to-Speech. I searched google, but all I found was theory. I …

Member Avatar for JamesCherrill
0
271
Member Avatar for gagun

ok i was working on simon says app...here is the codes ...something is giving me nullpointerexception...i have trying to think for hours and cant seem to find anything to correct on...please help Here is the Main.java package com.gagan.simonsaysreplica; import android.os.Bundle; import android.app.Activity; import android.content.Intent; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button; …

Member Avatar for cool_zephyr
0
877
Member Avatar for ross.clare.5

You are interested in keeping track of the team members and competition infor- mation for your school’s annual entries in computer science programming com- petitions. Each team consists of exactly four team members. Every year your team competes in two competitions. As an initial start for your database, create a …

Member Avatar for jwenting
0
1K
Member Avatar for PratikM

Sup guys, Its been a while since I've been on this but I have a question regarding If statements and strings. I am trying to create a program and I need the user input (yes/no) so i am using strings for that. The problem that I'm having is that whenever …

Member Avatar for JeffGrigg
0
128
Member Avatar for DavidKroukamp

I have recently been interested in Java Swing and Game development, so naturally I began creating many different 2D games. During them I found myself having to rewrite much code, but eventually I decided to write some classes that would help me whenever I wanted to make a game. Here …

Member Avatar for JamesCherrill
3
2K
Member Avatar for rnana

What attributes and behaviors would an object representing a bank account have?

Member Avatar for JamesCherrill
-2
265
Member Avatar for christine.dunne.963

ok Here is where I am now. I had the code written and it displayed correctly as long as salesPerson1 was the highest earner. I added the additional code if total2 > total1 and so on and now I do not get the calculations just display total commission of 1,2, …

Member Avatar for pbj.codez
0
187
Member Avatar for emanhossnycs

Hello, I want to create java application which can run .cmd file. I already write the code which run .cmd file, but my problem is the following: this .cmd file prompts the user to enter his mail and password & I want my program to give these values to the …

Member Avatar for emanhossnycs
0
298
Member Avatar for murali2489

Hi All, I have created a Class named Stock and have declared three Constructor . First constructor with no parameter, second constructor with three parameter, third with Two parameter. When I call my constructor inside a System.out.println(constructor); , it should display the variable Values right ? . but instead it …

Member Avatar for murali2489
0
197
Member Avatar for joma.tioquin

the program should be able to display array (11 22 33 44 55 66 77 88 99 00). then will ask user to input a number that is (only) in the array displayed. then display the new array. sample: input = 44, new array should be 11 22 33 55 …

Member Avatar for joma.tioquin
0
406
Member Avatar for somjit{}

[this](http://docs.oracle.com/javase/tutorial/uiswing/examples/components/TextComponentDemoProject/src/components/TextComponentDemo.java) is the code i was looking at.Its about how to use JTextPane and related swing text Components along with actions and keymaps. my question is that in this part textPane = new JTextPane(); textPane.setCaretPosition(0); textPane.setMargin(new Insets(5, 5, 5, 5)); StyledDocument styledDoc = textPane.getStyledDocument(); if (styledDoc instanceof AbstractDocument) { doc …

Member Avatar for somjit{}
0
219
Member Avatar for Szabi Zsoldos

Hi guys, I want to create a crawler to extract some infomation from a page. The problem is that it is written with the Java Wicket Framework and I don't know how to scrape informations from it because I don't know how to submit some post parameters. Is this possible …

Member Avatar for Szabi Zsoldos
0
391
Member Avatar for abra_ka_dabra

Can somebody explain me the use of "Delegate" and its equivalent in java... I am learning java programming and has encountered a C# program which use "Delegate" and pass on functions as arguments to another function.... I am trying to modify the C# program for use in java...

Member Avatar for sepp2k
0
625
Member Avatar for bhanu1607

Hi All, This is Bhanu Teja M. I have a problem with an object. Actually i have to convert an object into another object. Here in my Category object contains a list of categories (subcategories). The main issues in this code is we have to convert the all subcategories (Category …

Member Avatar for JamesCherrill
0
333
Member Avatar for shockwave4uonly

does java have the good scope in future or there is any other language which is having gr8 demand in coming time

Member Avatar for jwenting
-1
148
Member Avatar for kilermage

[Click Here](http://www.upload.ee/image/3396246/newerror1.jpg) This is what I get when I run the code. Please help me fix this. EDIT: A lot has changed since 2008 so idk how to upload the image so I just made a link for it.

Member Avatar for kilermage
0
202

The End.