32,204 Topics

Member Avatar for
Member Avatar for robertmacedonia

Hi again. I just wrote here to ask for a little help yesterday, so I got the help and worked that out, and I'm just curious about something I am going to do in the following couple of days, as soon as I work the network part of this project. …

Member Avatar for JamesCherrill
0
116
Member Avatar for alyyn

Hy...My name in Alin , and I'm new using Java language/code . I'm trying make a little / simple JAva desktop aplication . Sometthing like phone book , but very very simple . I using Neatbeans 6.8 and mysql-essential-5.1 .I maked interface of that project using Java swing , I …

Member Avatar for alyyn
0
203
Member Avatar for comandor

Hi all this my first thread to me here ,and i wish u help me I wanna start learning java ee and i don't know from where could i start. i am waiting your advise . thanx in advance.

Member Avatar for comandor
0
78
Member Avatar for LianaN

Hi guys! I have a problem with adding a row filter to the JTable component. Below is a code that I'm using: [CODE] public class FilterClass extends JPanel { TableRowSorter rowSorter; private DefaultTableModel tableModel; public FilterClass() { //super(new GridLayout(1,0)); initComponents(); rowSorter=new TableRowSorter(); tableModel = (DefaultTableModel) tableDetails.getModel(); rowSorter.setModel(tableModel); tableDetails.setRowSorter(rowSorter); } private …

0
69
Member Avatar for TahoeSands

I would like to write some Java code that will make the mouse "click" somewhere within a 25 by 50 pixel region on the screen. Additionally, I would like the majority of this "clicking" to occur nearer the center of that region (and less around the outside edges of the …

Member Avatar for Ezzaral
0
124
Member Avatar for TahoeSands

Normally, I post all the information and code snippets that I can muster when asking a question, but this time I will throw "caution to the wind" and just pose the scenario/question... Right now there is an application running and displayed on my screen, the Firefox Web Browser. I want …

Member Avatar for TahoeSands
0
137
Member Avatar for i2icharcl

Hello everyone, I'm currently working on a java GUI that enables a user to search words from a file. It also needs to use two binary searches. Kind of like how Google and Facebook has their searches displaying recommendations after every prefix is typed. I need help on how to …

0
165
Member Avatar for Heba Emara

Hello I'm developing a website using Google Web Toolkit GWT and I want to use the Model View Presenter design pattern. I've read that the relation between view and presenter is a one to one relation.. My main page of the website consists of three main parts, or maybe 3 …

0
44
Member Avatar for itishri dash

can you please tell me how a video file can be shown in a table on a frame using java(using netbean software).please reply soon.

0
35
Member Avatar for P00dle

Hi all, I'm not sure if this is the right place to post this, please let me know if I should put it somewhere else. From my program, I call the following command: [CODE]cmd.exe /C "C:\jboss\server\default\deploy\xPression.ear\BatchRunner.bat" -j "FC" -q "C:\MultiThreader\override\FC Investment.XML.xml"[/CODE] However, I get the following error: [CODE]The filename, directory …

Member Avatar for peter_budo
0
77
Member Avatar for c++noobie

I have a simple class called DateTime because I'm doing some interface with a C# web service. I wanted to override the Date class' toString method as shown below in order to serialize it in a way C# understands, so I wrote a simple little wrapper class. The problem comes …

Member Avatar for JamesCherrill
0
83
Member Avatar for Katana24

Quick query here guys - I have a program that reads from a file and counts the number of lines in the code. This works fine but when I go to print the contents of the file to the screen or to a Dialog box the number of lines that …

Member Avatar for ~s.o.s~
0
104
Member Avatar for jemimaloh

hi, this is my hash function, could anyone explain to me why the lines in red are experiencing an "int cannot be deferenced"? Thank you. [CODE]public static int hashFunc3(int key) { int hashVal = 0; [COLOR="Red"]for (int j=0; j<key.length(); j++)[/COLOR] //left to right { [COLOR="Red"]int letter = key.charAt(j) - 96;[/COLOR] …

Member Avatar for jemimaloh
0
155
Member Avatar for miraj0072004

hello friends, how do I simulate an "enter" key press in java? this is to avoid the continuous key pressing during runtime whereas there are so many popups which require an "enter" key press to continue execution

Member Avatar for NormR1
0
432
Member Avatar for robertmacedonia

Hi, I'd like to ask for a little help. I have this program that handles basic voting,but it should be done client-server,i.e. the server offers questions and multiple clients connect to vote,the server stores the answers etc... I haven't even come to that point of storing etc.,cause I'm stuck here …

Member Avatar for robertmacedonia
0
150
Member Avatar for afreen khan

when i am executing cmd commands through java ,even though we are having tns name its throwing the following error [COLOR="Red"]ERROR: ORA-12154: TNS:could not resolve service name Plz help!!!

Member Avatar for nohup
0
123
Member Avatar for Neosmithk

Hi guys, im new, just joined. i have a serious problem with Java3D... I have just recently completed a large project i have been working on for a long time, a NVE. The problem i am having is when i run in through NetBeans 6.8 i have no issues, but …

Member Avatar for gyuvaraj
0
325
Member Avatar for mahdi68

Hi how can i get lis of phone JSR support on application ? is it possible ? for example it`s support JSR-82 or not ? thanks

Member Avatar for peter_budo
0
94
Member Avatar for gsenthil25

Hello, I'm trying to call a Python module in Java application using JEPP. I'm able to invoke the python modules from java Appl, but i'm not able to call the modules in python class from java appl. Python Code Code: [code] class SampleClass: def [b]callPythonModule[/b](self): print 'The Python Class module …

0
28
Member Avatar for Premsathishbe
Member Avatar for datta.saru@gmai
Member Avatar for yasuodancez
0
317
Member Avatar for Szeth

Hello Daniweb, I have a program due this evening and am ready to give up. I can't figure out my compile problems: C:\Users\Chris\Desktop\My Java Programs\Chris_Y_Week_5_IA.java:85: call to super must be first statement in constructor super("mortgagecalcsr7"); ^ C:\Users\Chris\Desktop\My Java Programs\Chris_Y_Week_5_IA.java:573: inner classes cannot have static declarations public static void main(String[] args) …

Member Avatar for Szeth
0
229
Member Avatar for hazeeel

How do I calculate my RMSD(root mean square deviation) score for my PDB protein structures, atom by atom. I wish to calculate it line by line. But I do not know how to go about it? I was thinking of using a for loop but as you can see, I've …

Member Avatar for hazeeel
0
258
Member Avatar for gopi17

Help me.....i'm tryin to figure out how to link to another java class using a button but i falied to do so...kindly assist me....thanks [CODE] public Login() { setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); setSize(400,400); java.awt.Container contents = getContentPane(); contents.setLayout(null); setTitle("Air-Malaysia"); contents.setLayout(null ); contents.setBackground(Color.black); contents.setForeground(Color.orange); am.setFont(f1); usrnm.setFont(f2); clk.setFont(f2); clk.setBackground(Color.black); clk.setForeground(Color.orange); btnOk.setBackground(Color.black); btnOk.setForeground(Color.orange); btnCancel.setBackground(Color.black); btnCancel.setForeground(Color.orange); usrnm.setForeground(Color.orange); …

Member Avatar for NormR1
0
11K
Member Avatar for samuel17

Hi All. Wondering if someone can assist me with this code im trying to write. I have to make a small calculation with random variables but the problem i run into is that i have to pass the calculated variable back to the main method and display it that way. …

Member Avatar for samuel17
0
182
Member Avatar for gopi17

[CODE] package testt; import java.awt.*; import java.lang.*; import java.applet.*; import java.awt.event.*; import javax.swing.*; public class Login extends JFrame implements ActionListener { //JFrame logframe = new JFrame(); JLabel am=new JLabel("Air-Malaysia...."); JLabel usrnm=new JLabel("Username : "); JLabel nwm=new JLabel("Not yet a member? "); JButton clk=new JButton("Click Here"); JLabel pswrd=new JLabel("Password : "); …

Member Avatar for NormR1
-1
213
Member Avatar for gudads

I am learning java, in i know in C, when we use: float and double ... the format is : %f for float %lf for double. in java i don't understand why we use double rather than float?? and the format for double is %f !!! [LIST=1] [*]Can some1 explain …

Member Avatar for gudads
0
483
Member Avatar for gudads
Member Avatar for churva_churva

[CODE] import java.util.*; public class PhoneDirec{ private int MAX=10; private String [] validNames={"Gary","Sam","John","Jude","Alyssa","Matt","Eric","Susie","Alics","Sara"}; PhoneDirec(){ //allocate memory to names validNames=new String[MAX]; }// accept 10 names //I suppose to enter 10 names public void accept(){ Scanner console = new Scanner(System.in); for(int n = 0;n< names.length;n++) names[n] = console.nextLine(); } /*I also to …

Member Avatar for Akill10
0
163
Member Avatar for mhopper

All, I'm having issues running a simple java program on the linux command line. When I run: java -server -cp ./mysql-connector-java-5.1.12/mysql-connector-java-5.1.12-bin.jar -jar PaymentProcessor.jar I get `"java.sql.SQLException: No suitable driver found for jdbc:mysql://localhost/pmtdb"` When I run this command (which works on the windows command line) java -server -classpath ./classes;./mysql-connector-java-5.1.12/mysql-connector-java-5.1.12-bin.jar paymentprocessor.PaymentProcessorServer I …

Member Avatar for NormR1
0
154

The End.