32,199 Topics

Member Avatar for
Member Avatar for srikanth2321

Hi, I have a problem of modifying Jtree font. No matter what I do or make changes in code I'm unable to change the default font. I got the TreeCellRenderer code from some website. Any suggesion on font change would be really helpful class MyCellRenderer extends JEditorPane implements TreeCellRenderer { …

Member Avatar for mKorbel
0
860
Member Avatar for Fatima_110

I'm just a beginner please help! BlueJ accepts my code - there are no compilation errors. But when i want to run the program it doesnt do what i wanted it to. It allows the user to answer the questions about the product and price but the skips to the …

Member Avatar for Fatima_110
0
114
Member Avatar for server_crash

I know that you can call this method to delete a row from a JTable: [Code] DefaultTableModel.deleteRow(index); [/Code] I need to delete all of the rows at some point, and this is not working: [Code] for (int i=0; i<dtm.getRowCount(); i++) { dtm.removeRow(i); mortgageTable.revalidate(); } [/Code] I tried revalidating, but that …

Member Avatar for Layki
0
6K
Member Avatar for fmasroor

import gpdraw.*; public class chemical { public static void main(String args[]) { DrawingTool pencil=new DrawingTool(new SketchPad(700, 700)); double points[][]=new double[4][3]; double theta=0; double vx=0, vy=0, vz=2; while(true) { points[0][0]=0;//x points[0][1]=1;//y points[0][2]=0;//z points[1][0]=.94281*Math.cos(theta); points[1][1]=-1/3; points[1][2]=.94281*Math.sin(theta); points[2][0]=.94281*Math.cos(theta+2.09439); points[2][1]=-1/3; points[2][2]=.94281*Math.sin(theta+2.09439); points[3][0]=.94281*Math.cos(theta+4.18879); points[3][1]=-1/3; points[3][2]=.94281*Math.sin(theta+4.18879); double screenx, screeny; for(int i=0; i<4; i++) { double x, …

Member Avatar for fmasroor
0
200
Member Avatar for MasterHacker110

I am trying to read user input from console using Scanner but it only reads my first input, and then on my second input it closes my program. Here is my code: import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; import java.io.ObjectInputStream; import java.io.ObjectOutputStream; import java.security.KeyPair; import java.security.KeyPairGenerator; …

Member Avatar for IIM
0
591
Member Avatar for Stuugie

Hi All, I'm attempting to install Jre7 on my newly installed Ubunto OS. I've been looking [here](http://askubuntu.com/questions/56104/how-can-i-install-sun-oracles-proprietary-java-6-7-jre-or-jdk) and it is telling me to move the unzipped folder to /usr/lib but where is that? In the Terminal I tried finding it by changing directories but to no avail and I'm getting …

Member Avatar for mike_2000_17
0
270
Member Avatar for Pradipnikam
Member Avatar for Gerryne

Hi. Our homework is to use try...catch block in our calculator applet. I don't understand why the "catch" does not work. It will always go straight to the "finally". Here's the code: import java.applet.*; import java.awt.*; import java.awt.event.*; import java.awt.Label; import javax.swing.*; public class clsCalculator extends Applet implements ActionListener { …

Member Avatar for stultuske
0
432
Member Avatar for xxmp

i have this class theclass{ int totalavailable; other informations; } and i made a list LinkedList<theclass> where all available rooms The user want to see if two rooms of any of the available rooms that are at the list are availables and produce a result with the available options. for …

Member Avatar for JeffGrigg
0
139
Member Avatar for sam1

hi everyone does anybody know a good java free ebook. if anybody has it plz send it to me or give me the link. or any sort of programming ebook would do. thanx :cheesy:

Member Avatar for Rahul_25
0
159
Member Avatar for evan.winstead.7

Hey! I am learning a bit of jframe, and I was wondering if anyone knew how to make a JScrollPane display an RSS Feed? I have the feed already, I just need to know how to have the JScrollPane display it, thank you!

Member Avatar for JamesCherrill
0
125
Member Avatar for PratikM

Hi there, so I have a project idea for Java but I have no idea how to start it and was hoping that some of you could point me in the right direction. So I got this idea based on a need that my mom had in her business. I …

Member Avatar for somjit{}
0
181
Member Avatar for RinzLove

Hi all, I would like to create .fxml file for my java project. How do we get javafx .fxml into java Eclipse? e.g. From Eclipse, when I click File -> New -> Other, then the Wizard window pop out. There should have Javafx folder, which will expand and I can …

Member Avatar for IIM
0
350
Member Avatar for PratikM

Hi there, I'm back again and this time I have another question: So I figured out that I have to use Array Lists for my last question, but now, I have another problem: How do I get all the user inputs separated into different strings so that the user may …

Member Avatar for JamesCherrill
0
482
Member Avatar for Naushad9045

hello everyone...hope all of u might understand the problem..i tried my best...Im trying to make a program in java..but i don't know the logic to solve my problem..the problem is "Make a program in java language and take C program as input no need to input body of C program …

Member Avatar for JamesCherrill
0
149
Member Avatar for durgesh1

hello all i have table in which there is one column with checkbox i want to it should hide in one frame and i am calling this frame in another frame method at this time this hidden column should be visible please tell me how this will happen

Member Avatar for JamesCherrill
0
69
Member Avatar for durgesh1

hello friends i like to make screen like windows my computer in which when we click in local disk and then any folder we don't see any new screen it just open all windows in one screen. is it possible to do in java so that we don't call any …

Member Avatar for JamesCherrill
0
260
Member Avatar for DarkLightning7

I need to get the value of the primarykey for the most reciently created entry in an h2 database only problem is i cant figure out how to call scope_identity() which is supposed to return a resultSet with the most reciently created key. Here is the function i am using: …

Member Avatar for ~s.o.s~
0
686
Member Avatar for murali2489

Hi All, I am having a tablespace named Incident which has eight columns . The first column is index which i kept as auto increment. The columns are 1.index(auto_increment) 2.ticket_no (String) 3.date(String) 4.description (String) 5.priority (int) 6.state (String) 7.follow_up (String) 8.status (String) Now i tried to insert test row in …

Member Avatar for murali2489
0
424
Member Avatar for PratikM

Hi there, So I am trying to make a program that will allow me to input multiple users and be able to store data under their names. My problem is that I don't know how to make it so that the user can input as many names as he/she wants …

Member Avatar for PratikM
0
112
Member Avatar for lena1990

hi all, first i searched the internet and did not find something help me or i did not understand what they say. i have server client program the client send data to the server and the server reply i want if the client did not send data for 2 hours …

Member Avatar for JamesCherrill
0
206
Member Avatar for cool_zephyr

I got a string `\x3Cb\x3EHello, World\x3C\x2Fb\x3E` as a webresponse..i think it means `<b>Hello, World</b>` but i don't know how to unescape that sequence into java string..could anyone please help me with this?? Thank you.

Member Avatar for cool_zephyr
0
654
Member Avatar for AndrewSD

Well I am trying to write a simple "polynomial engine" that has two functions: [LIST] [*]simplifyPolynomial [*]solvePolynomial [/LIST] I just don't know where to start:( I can't think of a method to use. I don't think there are any polynomial libraries in java? My question is: do any of you …

Member Avatar for George_1
0
1K
Member Avatar for akhilchandranms

how can i make the system (execution process )wait for some periode of time

Member Avatar for JamesCherrill
0
304
Member Avatar for nira9

hiee friends i wanted to make one apllication i java which ca include maximum java syntax so i can learn it deeply please suggest some ideas and links for it.............thnkss in advance

Member Avatar for JamesCherrill
0
52
Member Avatar for saeef007

Write a Java program that prompts for an individual’s age and prompts him/her to pay the price of a train ticket based on the following conditions: If age is greater or equal to 12 but less than 65, Rs 375.75 is charged. If age is less than 12 but greater …

Member Avatar for nira9
-2
107
Member Avatar for noel9

hiee friends i want to do a web application in java for that i wnat some good creative ideas i havent make any web application but i do have knowledge about java so for dng this project where shld i start what shld i refere......plzzz give ur valuable suggestions... thanku:)

Member Avatar for JamesCherrill
0
101
Member Avatar for jagvllead

import java.io.Console; public class ConsoleDemo { public static void main(String[] args) { Console cnsl = null; String name = null; try{ // creates a console object cnsl = System.console(); // if console is not null if (cnsl != null) { // read line from the user input name = cnsl.readLine("Name: …

Member Avatar for JamesCherrill
0
1K
Member Avatar for techyworld

value="jdbc:mysql://localhost:8080/mkyongjava" i need to change this path so that it works at my place. where will I get this? <bean id="dataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource"> <property name="driverClassName" value="com.mysql.jdbc.Driver" /> <property name="url" value="jdbc:mysql://localhost:8080/mkyongjava" /> <property name="username" value="root" /> <property name="password" value="password" /> </bean>

Member Avatar for cool_zephyr
0
181
Member Avatar for techyworld

how to do a unit testing on this method? anyone can help plzz? public boolean saveOrUpdateUser(User user) { boolean res = false; try { this.getHibernateTemplate().saveOrUpdate(user); res = true; } catch (DataAccessException e) { res = false; this.logger.error("DataAccessException", e); } return res; }

Member Avatar for techyworld
0
137

The End.