32,204 Topics
| |
how can i make the border line to the position shown in the attachment [CODE] package proj; import java.awt.BasicStroke; import java.awt.Color; import java.awt.print.PrinterJob; import java.awt.Graphics; import java.awt.Graphics2D; import java.awt.geom.Rectangle2D; import java.awt.print.Book; import java.awt.print.PageFormat; import java.awt.print.Printable; public class j extends javax.swing.JFrame { public int st,i,k1,k2;PrinterJob printJob = PrinterJob.getPrinterJob(); String str[]=new String[20]; … | |
Hi, guys! I really cannot describe my problem with a words, so I record debug process in a video. Here it is: [url]http://www.youtube.com/watch?v=5EVwNhdQ8o4&feature=player_detailpage[/url] Track changes of a IFormField<T>.this.value and object ID's in a memory and you understand what I mean. | |
can anyone tell me how here the count of [B]st[/B] is [B]incrementing[/B] like this[B] 2,4,6,8,10 and not like 1,2,3,4,5 [/B] how could i get the count of [B]st[/B] to increment as [B]1,2,3,4,5[/B] [CODE] PrinterJob printJob = PrinterJob.getPrinterJob(); Book book = new Book(); for(int i=0;i<5;i++) { book.append(new IntroPage(), printJob.defaultPage()); } [/CODE] … | |
Hello, I'm new in java and must make a dummy server client connection (webserver) that check if the client has the actual software (actual version) and send links (in .txt or something else, if any update available). I'd like to make a program as simple as possible. I am using … | |
My java application has been running smoothly for the last 2 years in one linux server. Recently, we moved it to another linux server and it's then that it started giving the error as shown below: [CODE] java.sql.SQLException: Prepared statement needs to be re-prepared at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:946) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2870) at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1573) … | |
I'm quite new to programming and I've just started Java, I'm not sure about why my program is stuck in a loop - [CODE] import java.util.Scanner; public class Tplayer { static int numplayer; static int startvalue; public static int dice1; public static int dice2; public static int bet = 20; … | |
I want java code for image aligning.Actually I want to produce image, using several same images.Can anyone give me help?????? | |
This is how I want my XML file to look: [code] <root> <data> <track src="123456"> <desc id="1" mt="audio/mp3" ra="24" dr="221" nv="10005761">Madonna - La Isla Bonita</desc> <clipdata>PD94bWwgdmVyc2lvbj0iMS4wIiBlb</clipdata> </track> </data> <completed/> </root> [/code] And this some part of my code: [code] AttributesImpl atts = new AttributesImpl(); AttributesImpl atts2 = new AttributesImpl(); AttributesImpl … | |
Can anyone show me a sample program that can turn on a computer automatically on scheduled time..please show me so that i have an idea what it look like.. thnx ^_^ | |
Can someone help me please. I am using a Scanner Class and want to count characters entered in the textfield. Unfortunately, backspace and any key (Ctr,Alt,Capslock) for that matter is counted as a character and that increments the counter by 1. Here is the code [code] String ab="^[A-Za-z0-9]+$"; public void … | |
Please Help, im trying to run the emulator on my WINDOWS VISTA I really dont know why it doest woork!, It just stays at this huge black screen which I know isnt normal, it should be smaller.. I have the ANDROID SDK 3.1 and have ECLIPSE HELIOS and I think … | |
[CODE]import javax.swing.*; import javax.swing.JButton; import java.awt.*; import java.awt.event.*; public class CreateTabbedPane extends JFrame implements ActionListener { JButton b1; JTextField txt1; public CreateTabbedPane() { JFrame frame = new JFrame("Tabbed Pane Frame"); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); JTabbedPane tab = new JTabbedPane(); tab.addTab("Jay",new abc()); tab.addTab("RD",ram a); } class abc extends JPanel { public abc() { txt1=new … | |
I need to parse a csv file, whose encoding format is in utf-16 format. Actually the csv file contains the list of directories to the file. for reading i used following code BufferedReader br = new BufferedReader(new InputStreamReader(new FileInputStream(str))); But the output i got is not in the correct format … | |
please anyone help me i take example from sphinx4-1.0beta6 but when i run it in netbeans this error appear run: Exception in thread "main" Property exception component:'dictionary' property:'fillerPath' - Can't locate resource:/WSJ_8gau_13dCep_16k_40mel_130Hz_6800Hz/dict/fillerdict edu.cmu.sphinx.util.props.InternalConfigurationException: Can't locate resource:/WSJ_8gau_13dCep_16k_40mel_130Hz_6800Hz/dict/fillerdict at edu.cmu.sphinx.util.props.ConfigurationManagerUtils.getResource(ConfigurationManagerUtils.java:483) at edu.cmu.sphinx.linguist.dictionary.FastDictionary.newProperties(FastDictionary.java:149) at edu.cmu.sphinx.util.props.PropertySheet.getOwner(PropertySheet.java:505) at edu.cmu.sphinx.util.props.PropertySheet.getComponent(PropertySheet.java:287) at edu.cmu.sphinx.linguist.language.ngram.SimpleNGramModel.newProperties(SimpleNGramModel.java:97) at edu.cmu.sphinx.util.props.PropertySheet.getOwner(PropertySheet.java:505) at edu.cmu.sphinx.util.props.PropertySheet.getComponent(PropertySheet.java:287) … | |
hi! I want to start writing a project that recognizes speech and voice. first I want to know,have you ever seen a project like this,written in java or any other languages? if no I know it is not a simple project that it can be found by requesting in a … | |
The value of address is not insert in database varchar2 pno field. tried from.tostring() but not inserted but its prints through system out perfect as email adress. any idea or suggesstion how to insert it into database.. [CODE] import java.io.*; import java.util.Properties; import javax.mail.*; import java.sql.*; public static void insertm(int … | |
Hi All, I am new to EJB and JBoss.I am trying to develop a very simple EJB 3.0 stateless calculator bean which I have done upto this.I have one remote interface "Calculator.java" a stateless bean class "CalculatorBean.java".I have successfully compiled these and packaged in a jar file and kept it … | |
I am going to create HDR Imaging tool using java for my Image Processing project.Can anyone give me a help regarding this area.......??????? | |
In my current program, the input information is hard coded. For instance [CODE]final String titleFieldName = "title1";[/CODE] If I want to change title1 to title2, I have to modify the source code and click "run Java application" in Eclipse. How can I change the program to allow the user dynamically … | |
This program is to design a gui for users to add any loan amount, term, and APR; the program then gives a monthly note amount in that field. I cannot figure out what I'm doing wrong. I also cannot get the reset button to work. Can anyone give me an … | |
I am going to make a calculator and I am having some Issues arranging the buttons. You should be able to see the layout when you run the code. Some clarification though there will be a blank spot under the "3" for a "+/-" button (switches between positive and negative). … | |
I am learning C++ and I learned that you can create your own types. I decided to try this in java. I am wondering if there is an easier way to make a bunch of variables private other then typing out private for each of the created variables. for example … | |
i've have developed a project for class students allocation for examination.........the instructions for the project is given in the form itself at the bottom......... i've also added a print option for printing the page that you sees........can anyone tell how to print all the pages........... | |
Hey there, I might not be able to accurately describe my problems, but I'll do my best. I am taking these tutorials on adobe website that walks me through building a flex web application. In order to take the tutorials, I needed to previously deploy a war file that sets … | |
Hello, I want to create a software in Java that submits same/similar data to multiple web forms (eg submit link data to link directories). What I want to do is, ask the user initially for the data that is to be submitted, and then go to the web form, open … | |
Hi. Let's say I have the following method: [CODE] void createNewObject() { MyClass myObject = new MyClass(); } [/CODE] If I call this method 1000 times, how many instances of MyClass will be left in my program's memory by the time all calls have been made? 1000, 1, or 0? … | |
| Hi all, I need a little bit help in creating a small thesaurus like application in java. The application consists of some 50-100 categories and each category have some 2-10words of similar meaning. e.g Close-{shutdown,fold,end,come together} The words are hard-coded but I don't know which data structure suits the best. … |
For these whom may be interested in new stuff about Java 7 here is web broadcast from few days back [URL="http://www.oracle.com/us/corporate/events/java7/index.html"]Java 7 Celebration Webcats[/URL] PS: Didn't watch it yet so have no idea if any good :D | |
Hai friends How can i catch [B]"There is not enough space on the disk"[/B] in IO Exception, i want to show popup when there is low disk space in my system,its throwing following exception. java.io.IOException: There is not enough space on the disk i want to catch only diskspace. please … | |
i've created a jframe with a jpanel with certain things as you can see in the attachment (page1.java) ..............can anyone tell how to print that jpanel(not the whole jframe) and all its contents ........ |
The End.