32,199 Topics

Member Avatar for
Member Avatar for shrutisoni

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

Member Avatar for peter_budo
0
69
Member Avatar for krnaveen14

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 …

Member Avatar for krnaveen14
0
148
Member Avatar for TonSingle

**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> …

Member Avatar for mKorbel
0
105
Member Avatar for Netherblood

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 …

Member Avatar for mKorbel
0
308
Member Avatar for guideseeq

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.

Member Avatar for guideseeq
1
239
Member Avatar for laguardian

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 = …

Member Avatar for stultuske
0
129
Member Avatar for hwoarang69

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 …

Member Avatar for hwoarang69
0
668
Member Avatar for Mr.M

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 …

Member Avatar for Mr.M
0
2K
Member Avatar for henryz_box

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 …

Member Avatar for henryz_box
0
5K
Member Avatar for brittney_2

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 …

Member Avatar for brittney_2
0
222
Member Avatar for shrutisoni

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 …

Member Avatar for shrutisoni
0
68
Member Avatar for Pyler

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 …

Member Avatar for peter_budo
0
316
Member Avatar for anita_2

- 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.

Member Avatar for anita_2
0
182
Member Avatar for Pavithra_1

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); }

Member Avatar for jwenting
0
152
Member Avatar for shrutisoni

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.

Member Avatar for pyaythu
0
112
Member Avatar for karthick_pmk

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 …

Member Avatar for karthick_pmk
0
340
Member Avatar for shwetha.marigowda

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

Member Avatar for shwetha.marigowda
0
519
Member Avatar for Usman_7

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

Member Avatar for Usman_7
0
274
Member Avatar for SpottyBlue

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 …

Member Avatar for Taywin
0
347
Member Avatar for anita_2

- 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 …

Member Avatar for jwenting
0
195
Member Avatar for Szabi Zsoldos

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 …

Member Avatar for Lucaci Andrew
0
271
Member Avatar for kannathasan.12

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();

Member Avatar for JamesCherrill
0
43
Member Avatar for Slavi

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 …

Member Avatar for JamesCherrill
0
379
Member Avatar for Mrewan79

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' …

Member Avatar for jwenting
0
469
Member Avatar for phuttawat

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 …

Member Avatar for jwenting
0
343
Member Avatar for shamagantu

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 …

Member Avatar for Ummn
0
477
Member Avatar for dj4388
Member Avatar for rowen_1

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 …

Member Avatar for rowen_1
0
300
Member Avatar for beeho

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.

Member Avatar for Hiroshe
0
364
Member Avatar for Adami

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 …

Member Avatar for Adami
0
3K

The End.