32,199 Topics
| |
i want to bold table data in pdf and want to start table from 0 margin from lefr and right.. how it will be done? i tried so much but its not working top and bottom margin is working. but write not | |
I've been trying to compare a string which is stored in two diffrent variables(but the content is same). I get the two same inputs from user.. package switchcasepgm; import java.util.Scanner; public class stringcomp { public static void main(String[] args) { Scanner getinp=new Scanner(System.in); System.out.println(); String sdr = getinp.nextLine(); System.out.println(); String … | |
**hi guy recently i created one AbstracttableModel and one class named Veiculo, and i created a vector to hold Veiculo's data, i copied veiculo's data to text file named "UniVeiculo.txt", now i want read and show some data from UniVeiculo.txt to AbstractTableModel. i tryed use this code: String cod="",mark="",year="",color="",model="",plate="",owner="", List<Veiculo> … | |
So I've been working on this project of mine and I want to refactor it. What I have is a couple of cases that change my JButttons' icons. These cases are in a method that is in my public GUI class that extends JFrame. What I want to do is … | |
What is the difference in: Set<Object> linksSet = new LinkedHashSet<Object>(); LinkedHashSet<Object> linksSet = new LinkedHashSet<Object>(); Actually, I want to create a Set, that would hold the objects in the same order, I insert into it. Many thanks for the help, in advance. | |
Hey guys! So I'm trying to make a simple program that prints out the attributes of "Person". I'm kinda still practicing with java so I'm not sure what the errors are about. Here's what I have: Driver: public class Driver { public static void main(String[] args) { Person a = … | |
I am trying to start up JBoss with parameters in Windows but getting some errors. If I remove parameters than JBoss startup iwht no errors. Could some one please take a look. # environment variables: # JAVA_HOME=C:\Java\jdk1.6.0_45 JBOSS_HOME=C:\bin\jboss-eap-6.1 Path=C:\Java\jdk1.6.0_45\bin;C:\WINDOWS\system32; # start up jboss with following parameters: # set "JAVA_OPTS=%JAVA_OPTS% -Djava.rmi.server.hostname=myhost … | |
Hi Dw How can I delete a registry key for other program, I just checked my registry and the virus was registered under the same registry key of my other program and now I want to use java as also part of learning java and the method of accessing and … | |
I'm using: Windows 7 Home Premium 64-bit operating system Netbeans IDE 8.0 WAMP Server 2.5 Here is my issiue. I am attempting to follow the E-commerce tutorial in the Netbeans Java EE & Java Web learning trail (Section 3 "The NetBeans E-commerce Tutorial - Setting up the Development Environment"). In … | |
I am having trouble understanding exception handling, unfortunately it just really confuses me. So, I have to implement exception codes that have been created by my teacher in another code with try and catch blocks. I understand the majority of the try and catch blocks, but I don't know how … | |
hie. can u help me to create pdf in java with textfield in which i want to add full name then i want to display that entered name on another new pdf. i tried but i have to open second pdf to see result.. it will not working automatically to … | |
I recently moved both my eclipse and Android folder into the same location. I didn't know that this would mess up eclipse. My themes are gone and eclipse can no longer locate the Android SDK. I've looked for ways to fix this online but most of the answers involve reinstalling … | |
- I have a number of player. - For each player i have to maintain 2D array how will do that in java i have no idea can you please help me. | |
try { int req_id=Integer.parseInt(request.getParameter("id")); Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); Connection con=DriverManager.getConnection("jdbc:odbc:amcdb","",""); Statement st=con.createStatement(); ResultSet rs=st.executeQuery("select email from detail where id="+req_id+""); String result; String to=rs.getString(4); } | |
i have one problem to retrive data by row vise in new page from database and it will also keep null value space when it will printing. please help me so display data without null (space) and also row vise. | |
String[] mT={"A","B"}; String[] mT2={"A","BB","C","A","B","C","C","A","D","F","B"}; for(int i=0;i<mT.length;i++) { for(int j=0;j<mT2.length;j++) { if(mT[i].equals(mT2[j])) { System.out.println("Equal Values are :"+mT2[j]); } else { System.out.println(" Not- Equal Values are :"+mT2[j]); } } } output : Equal Values are :A Not- Equal Values are :BB Not- Equal Values are :C Equal Values are :A Not- Equal … | |
hi , i have a java bean string which contains html and as well as jstl code ,, html code is rendering to jsp,, butnot the jstl code , how do i render that to jsp | |
Hi, I am looking for 2D sheet optimization software (that reads inputs for different size of sheet and required cut size) the program should give an optimum cutting plan with minimum scrap size. 'like to know if anyone has developed similar program in Java. regards, Usman | |
I was doing the class tutorial to have matrix multiplication from two dimensional arrays: X (3x2) and Y (2x3). package t7; public class Q5 { public static void main(String[] args) { int[][] matrix_X = new int [3][2]; int[][] matrix_Y = new int [2][3]; int[][] result = new int [3][3]; for … | |
- Actually i am developing music housie game and there is a condition that until 97 songs are not played housie not be completed. -And songs are played sequencly. - So i am doing is that put 97 number in ticket (every songs have a number ) but there is … | |
Hello people :) Having some difficulties regarding a simple substring. Then length of my line is 52 and I iterate it without any problems. When I use this untill the 22nd character it is working final String articleNumber = StringUtils.trimToEmpty(StringUtils.substring(lineValue, 0, 22)); If I want to pass over the 22nd … | |
How can find out this error?? please any one help me??? ghroomreservation.java:440: cannot resolve symbol symbol : class Mailercm location: class ghroomreservation Mailercm n=new Mailercm(); | |
I asked a week ago a question about this, now I tried to google around and found this toHex method. It has an empty spot about the charset. For example I want to use UTF-8 but if I enter it returns an error and if I don't specify it, the … | |
Hi everyone, I'm a computer science student and I want to make a hexagonal grid or map for use as a sort of board for making basic games and so forth. I have found some similar projects in C# and am trying to figure out how to create a 'board' … | |
Help me Subject java (Input month name output number of days) user for an input 1-12 for a month, and it outputs the number of days in that month. The modifications would make it so that the user inputs the name of the month instead of the value, and the … | |
Hello: A couple days ago I found an error log on my desktop (hs_err_pid6028.log), something about a fatal java error and a game called minecraft. I am pretty sure I never installed minecraft. That got me worried, so I browsed my java control panel and saw that there is no … | |
please help how to run a java program on start up. | |
The game starts off by distributing 4 cards for the deck such a way that the player receives the card first, then the dealer..and so on. round 1. the program will display the first two cards of the player and dealer the first card of the dealer faced down and … | |
Hello All, long time no see, I'm seeking for websites that provides practices of C++ and Java examples for programming students, the idea is to give me a programming question to solve in order to train myself. thanks. | |
Hi guys, I wrote the following code: public static boolean match(int[] a , int[] pattern) { //need to use the overloaded method, in order to work with the static method. return match(a,pattern,0,0); } /** This is an overloaded method that match between a pattern to a given string (as an … |
The End.