 |
 |
When posting your question please:- Choose the correct forum for your message. Posting a VB.NET question in the C++ forum will end in tears.
- Be specific! Don't ask "can someone send me the code to create an application that does 'X'. Pinpoint exactly what it is you need help with.
- Keep the subject line brief, but descriptive. eg "File Serialization problem"
- Keep the question as brief as possible. If you have to include code, include the smallest snippet of code you can.
- Be careful when including code that you haven't made a typo. Typing mistakes can become the focal point instead of the actual question you asked.
- Do not remove or empty a message if others have replied. Keep the thread intact and available for others to search and read. If your problem was answered then edit your message and add "[Solved]" to the subject line of the original post, and cast an approval vote to the one or several answers that really helped you.
- If you are posting source code with your question, place it inside <pre></pre> tags. We advise you also check the "Encode HTML tags when pasting" checkbox before pasting anything inside the PRE block, and make sure "Ignore HTML tags in this message" check box is unchecked.
- Be courteous and DON'T SHOUT. Everyone here helps because they enjoy helping others, not because it's their job.
- Please do not post links to your question in one forum from another, unrelated forum (such as the lounge). It will be deleted.
- Do not be abusive, offensive, inappropriate or harass anyone on the boards. Doing so will get you kicked off and banned. Play nice.
- If you have a school or university assignment, assume that your teacher or lecturer is also reading these forums.
- No advertising or soliciting.
- We reserve the right to move your posts to a more appropriate forum or to delete anything deemed inappropriate or illegal.
When answering a question please:
- Read the question carefully
- Understand that English isn't everyone's first language so be lenient of bad spelling and grammar
- If a question is poorly phrased then either ask for clarification, ignore it, or mark it down. Insults are not welcome
- If the question is inappropriate then click the 'vote to remove message' button
Insults, slap-downs and sarcasm aren't welcome. Let's work to help developers, not make them feel stupid.
cheers,
Chris Maunder
The Code Project Co-fou
|
|
|
|
 |
I am a student working on a project that requires Iris Recognition. I write java to some extent. So please I don't know if anybody can help with the Libraries in java I can use or the way I can go about with the Iris Recognition.
|
|
|
|
 |
You should at least do a search for yourself to see what libraries are available and whether they offer such a feature.
|
|
|
|
 |
how to open the value of one page on click of other form
|
|
|
|
|
 |
Hey guys....i have a menu with 3 image view that i set them as my buttons....now i want to when i click on each of them will going to another activity....by now....when i click on Enter button i move to the other activity and i havnt any problem with that....but i want when i clickng on About button the application inspiring me to the other activity that i created before....i dont know hot to do it?i dont know how to use this with if or else if command....can some one help me?these are the bunch of my codes....thanks :
package my.book.namespace;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ImageView;
public class TheLastOfUsActivity extends Activity {
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
ImageView myimg = (ImageView) findViewById(R.id.enter);
myimg.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View arg0) {
startActivity(new Intent(TheLastOfUsActivity.this, one.class));
}
});
}
}
|
|
|
|
 |
This question really belongs in the Android forum[^]. However, your question is less than clear, please try and give some more detail.
|
|
|
|
 |
Hello guys
I hava an "Order list"
I need to Delete The First Number
public void delFirst()
{
}
public void delLast()
{
if (!isEmpty())
{
size--;
}
}
|
|
|
|
 |
none of that actually tells us out here what the underlying storage type you're using is - an array or a list - its pretty ambiguous, so the answer would vary
for a list, you could do
myList.remove(0);
for an array ? hmmm.. this would copy from the element [1] onwards in the oldArray to element [0] in a newArray - you then have to think about replacing oldArray with newArray .. and, Im not sure wether this copies elements or references, or even if it will compile
somedatatype[] newArray = new somedatatype[oldArray.length-1];
System.arraycopy(oldArray,1,newArray,0,oldArray.length-1);
.. but the gist in this case is create a temp array, copy your items to it shuffling 'up' by one element index, then move the data back to the original array
have fun (ps - I try not to code in java, so there could be holes big enough to drive a truck through in my suggestions)
|
|
|
|
 |
i want to create a simple UI that displays simple files from the server.
Files like word documents, pdf files and pictures.
there is no option to delete or edit the files but just to view the files.
what programming language should i use to create such a UI.
currently i am trying to do it with java.
finally i like to replace it with the android i have on my tablet. How can i replace it?
|
|
|
|
 |
This is an impossible question to answer, please read http://www.codeproject.com/Messages/3137511/Forum-Guidelines-PLEASE-READ.aspx[^]. You need to go and research the features you are interested in, spend time studying the language and think about the design of your application. I notice also that you have posted this question in three forums; please post in one forum only, you will get just as many good replies.
|
|
|
|
 |
I am a .NET programmer with years of experience. My new job will pay for accredited online courses. I would really like to expand my knowledge by learning Java.
Already know the basic as I program in C#. Would like to find a program that maybe has an advanced course.
Can anyone make any suggestions?
Where I live has two colleges but no programming classes...what's up with that???
Looked at things like University Of Phoenix but doesn't really seem like I would learn anything there.
Would really like a course that is very hands on and has assignments that have to be completed and graded...not a course that you read a bunch of useless material and take a test.
I have already went thru a few books which are all about the same but still feel I am not getting near the level I have with .net
modified 24-Oct-14 15:43pm.
|
|
|
|
 |
Hi,
i just want to know that how to create master page and content page using java code?
Is there any tool like ASP.NET to directly make master and content page using drag and drop option.
please help me..??
|
|
|
|
|
 |
Hello I am having some trouble figuring out what is going wrong in my code here, I need to get this to display all the perfect numbers from 1 - 10 000 on the console and am unsure what exactly is going wrong as I am not getting any output, I am a newbie and here is my code I have for it so far (I am new to this board so I apologize if this is the wrong place to post this):
int num = 3;
int y = 2;
int sum = 0;
while (num < 10000) {
while (y < num) {
int x = num % y;
if (x == 0) {
sum += y;
}
y++;
}
if (sum == num) {
System.out.println(num);
}
num++;
}
|
|
|
|
 |
Your algorithm for calculating a perfect number is not correct; see http://en.wikipedia.org/wiki/Perfect_number[^]? You also need to initialise the values of y and sum at the beginning of each iteration of your major loop.
|
|
|
|
 |
Run this Code
package p1;
import java.io.IOException;
public class perfect
{
public static void main(String[] args) throws IOException
{
int stnumber = 1;
int ennumber = 10000;
System.out.println("Perfect Numbers between "+stnumber+ " and "+ennumber);
for (int i = stnumber; i <= ennumber; i++)
{
int number = i;
int sqrt = (int) Math.sqrt(number);
if (sqrt * sqrt == number)
{
System.out.println(number+ " = "+sqrt+"*"+sqrt);
}
}
}
}
|
|
|
|
 |
Is it possible to scroll JFrame if so den how?
|
|
|
|
|
 |
I m not able to add the external jar into classpath....can u plz help me....
error-Could not write file: .classpath.
|
|
|
|
 |
Classpath is not a file it is a parameter specification to the javac or java commands. What exactly are you trying to do?
|
|
|
|
 |
1) Integer currentGroupId = Integer.valueOf(-1);
2) currentGroupId = Integer.valueOf(rs.getInt("CONSUMER_GROUP_ID"));
Please explain both of it
|
|
|
|
 |
Please post your question once only. Also, you can refer to the documentation[^] for basic questions.
|
|
|
|
 |
1) Integer currentGroupId = Integer.valueOf(-1);
2) currentGroupId = Integer.valueOf(rs.getInt("CONSUMER_GROUP_ID"));
Please explain both of it
|
|
|
|
 |
private void jButton4ActionPerformed(java.awt.event.ActionEvent evt) {
filepath ="/home/GUI/Language_Independent/Output/Frame_1.txt";
file =new File(filepath);
fileContents="";
try
{
br = new BufferedReader(new FileReader(filepath));
}
catch(Exception E)
{
jLabel1.setText(E.toString());
}
try
{
while((fileContents= br.readLine())!=null)
{
System.out.println("fileContents");
jLabel1.setText(fileContents);
String str = "a";
while(br.readLine()== str) {
jLabel1.setForeground(Color.red);
}
}
br.close();
}
catch(Exception E1)
{
jLabel1.setText(E1.toString());
}
}
Frame_1 consist of generate text eg:abcdefgh..
for this generated file i want to set color for specific char eg a=red so on.
jLabel1.setForeground(Color.red);
is not working at all.Please someone suggest and thnks in advanced
|
|
|
|
 |
Your test in the sub loop probably never yields true. Have you stepped through your code with the debugger?
|
|
|
|
 |
ya i also observed it is not going inside the loop condition is not satisfied but i can solved it out is my logic wrong ?
|
|
|
|
 |
Your logic does not make much sense. You read a line from the file, then you are trying to use a while loop to read another line of text and compare it with the string a . You should read a line and then test if it contains the character you are looking for. However, note that you cannot set different characters to different colours. You can only use a single colour for the entire label.
|
|
|
|
 |
i want to display a word file into my application.
It is like extracting the text to put in JTextArea.
Help what best API can use?
an easy to understand!
|
|
|
|
|
 |
Quote: how to display panel just below input panel.?
|
|
|
|
|
 |
What does this mean, and what have you tried?
|
|
|
|
 |
Actually I have two Jpanel. One JPanel which takes input and the result is to be display in another JPanel.I just want that output Jpanel to be display just below the input JPanel.
|
|
|
|
|
 |
<blockquote class="quote"><div class="op">Quote:</div>/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package Speech.WavePanel;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Dimension;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import javax.swing.JFrame;
import javax.swing.JScrollBar;
import javax.swing.JScrollPane;
import javax.swing.SwingUtilities;
/**
*
* @author saikat
*/
public class output extends javax.swing.JFrame {
String filepath;
String fileContents;
File file;
BufferedReader br;
/**
* Creates new form output
*/
public output() {
initComponents();
// JScrollPane.setSize(new java.awt.Dimension((xSize - graphFromScreen), graphVerticalSize));
// jScrollPane1.setPreferredSize(new java.awt.Dimension((xSize - graphFromScreen), graphVerticalSize));
// jScrollPane1.setMinimumSize(new java.awt.Dimension((xSize - graphFromScreen), graphVerticalSize));
}
private void ScreenProperties()
{
jLabel1.setSize(new Dimension(800, 150));
jLabel1.setPreferredSize(new Dimension(800, 150));
JFrame frame= new JFrame();
frame.setLocation(1650, 430);
JScrollPane scrollPane = new JScrollPane(jLabel1);
add(scrollPane, BorderLayout.CENTER);
scrollPane = new JScrollPane();
scrollPane.getViewport().add( jLabel1 );
//JFrame.add( scrollPane, BorderLayout.CENTER );
//JScrollPane pane = new JScrollPane(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS, JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
//frame.setSize(500, 200);
// frame.setContentPane(pane);
}
/**
* This method is called from within the constructor to initialize the form.
* WARNING: Do NOT modify this code. The content of this method is always
* regenerated by the Form Editor.
*/
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">
private void initComponents() {
jScrollPane1 = new javax.swing.JScrollPane();
jPanel1 = new javax.swing.JPanel();
jPanel2 = new javax.swing.JPanel();
jScrollPane3 = new javax.swing.JScrollPane();
jLabel1 = new javax.swing.JLabel();
jButton4 = new javax.swing.JButton();
jButton3 = new javax.swing.JButton();
jButton2 = new javax.swing.JButton();
jButton1 = new javax.swing.JButton();
jSeparator1 = new javax.swing.JSeparator();
javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
jPanel1.setLayout(jPanel1Layout);
jPanel1Layout.setHorizontalGroup(
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGap(0, 100, Short.MAX_VALUE)
);
jPanel1Layout.setVerticalGroup(
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGap(0, 100, Short.MAX_VALUE)
);
setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
jScrollPane3.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_ALWAYS);
jScrollPane3.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER);
jScrollPane3.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
jScrollPane3.setDebugGraphicsOptions(javax.swing.DebugGraphics.NONE_OPTION);
jLabel1.setForeground(java.awt.Color.black);
jLabel1.setText("jLabel1");
jScrollPane3.setViewportView(jLabel1);
jButton4.setText("output_frame4");
jButton4.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseClicked(java.awt.event.MouseEvent evt) {
jButton4MouseClicked(evt);
}
});
jButton4.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton4ActionPerformed(evt);
}
});
jButton3.setText("output_frame3");
jButton3.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseClicked(java.awt.event.MouseEvent evt) {
jButton3MouseClicked(evt);
}
});
jButton3.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton3ActionPerformed(evt);
}
});
jButton2.setText("output_frame2");
jButton2.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseClicked(java.awt.event.MouseEvent evt) {
jButton2MouseClicked(evt);
}
});
jButton1.setText("output_frame1");
jButton1.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseClicked(java.awt.event.MouseEvent evt) {
jButton1MouseClicked(evt);
}
});
javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
jPanel2.setLayout(jPanel2Layout);
jPanel2Layout.setHorizontalGroup(
jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel2Layout.createSequentialGroup()
.addContainerGap()
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jSeparator1, javax.swing.GroupLayout.Alignment.TRAILING)
.addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, 670, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGroup(jPanel2Layout.createSequentialGroup()
.addComponent(jButton1)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jButton2)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jButton3)
.addGap(18, 18, 18)
.addComponent(jButton4)))
.addContainerGap())
);
jPanel2Layout.setVerticalGroup(
jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel2Layout.createSequentialGroup()
.addContainerGap()
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jButton1)
.addComponent(jButton2)
.addComponent(jButton3)
.addComponent(jButton4))
.addGap(9, 9, 9)
.addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, 83, javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap())
);
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jPanel2, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(0, 12, Short.MAX_VALUE))
);
pack();
}// </editor-fold>
private void jButton1MouseClicked(java.awt.event.MouseEvent evt) {
// TODO add your handling code here:
setTitle(" OUTPUT PANEL ");
setBackground(Color.white);
setVisible(true);
// setSize(450,40);
filepath ="/home/GUI/Language_Independent/Output/Frame_1.txt";
file = new File(filepath);
fileContents="";
// System.out.println ("hello");
try{
br = new BufferedReader ( new FileReader ( filepath ) ) ;
}
catch(Exception E){
jLabel1.setText(E.toString());
}
try{
while ((fileContents = br.readLine()) != null) {
System.out.println (fileContents) ;
jLabel1.setText(fileContents);
}
br.close();
}
catch(Exception E2){
jLabel1.setText(E2.toString());
}
}
private void jButton2MouseClicked(java.awt.event.MouseEvent evt) {
//setTitle("OUTPUT PANEL 2");
setBackground(Color.WHITE);
setVisible(true);
//setSize(450, 40);
filepath="/home/GUI/Language_Independent/Output/Frame_2.txt";
file=new File(filepath);
fileContents="";
try
{
br = new BufferedReader(new FileReader(filepath));
}
catch(Exception E)
{
jLabel1.setText(E.toString());
}
try
{
while((fileContents= br.readLine())!=null)
{
System.out.println("fileContents");
jLabel1.setText(fileContents);
}
br.close();
}
catch(Exception E1)
{
jLabel1.setText(E1.toString());
}
// TODO add your handling code here:
}
private void jButton3MouseClicked(java.awt.event.MouseEvent evt) {
// TODO add your handling code here:
}
private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) {
filepath ="/home/GUI/Language_Independent/Output/Frame_4.txt";
file =new File(filepath);
fileContents="";
try
{
br = new BufferedReader(new FileReader(filepath));
}
catch(Exception E)
{
jLabel1.setText(E.toString());
}
try
{
while((fileContents= br.readLine())!=null)
{
System.out.println("fileContents");
jLabel1.setText(fileContents);
}
br.close();
}
catch(Exception E1)
{
jLabel1.setText(E1.toString());
}
// TODO add your handling code here:
}
private void jButton4MouseClicked(java.awt.event.MouseEvent evt) {
filepath="";
file= new File(filepath);
fileContents="";
try
{
br= new BufferedReader(new FileReader(filepath));
}
catch(Exception E)
{
jLabel1.setText(E.toString());
}
try
{
while((fileContents= br.readLine())!=null)
{
System.out.println("fileContents");
jLabel1.setText(fileContents);
}
br.close();
}
catch(Exception E1)
{
jLabel1.setText(E1.toString());
}
// TODO add your handling code here:
}
private void jButton4ActionPerformed(java.awt.event.ActionEvent evt) {
filepath="";
file = new File(filepath);
fileContents ="";
// TODO add your handling code here:
}
/**
* @param args the command line arguments
*/
public static void main(String args[]) {
/* Set the Nimbus look and feel */
//<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
/* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
* For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html
*/
try {
for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
if ("Nimbus".equals(info.getName())) {
javax.swing.UIManager.setLookAndFeel(info.getClassName());
break;
}
}
} catch (ClassNotFoundException ex) {
java.util.logging.Logger.getLogger(output.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
} catch (InstantiationException ex) {
java.util.logging.Logger.getLogger(output.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
} catch (IllegalAccessException ex) {
java.util.logging.Logger.getLogger(output.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
} catch (javax.swing.UnsupportedLookAndFeelException ex) {
java.util.logging.Logger.getLogger(output.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
}
//</editor-fold>
/* Create and display the form */
SwingUtilities.invokeLater(new Runnable(){
// java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
new output().setVisible(true);
JScrollPane pn= new JScrollPane();
pn.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
pn.getVerticalScrollBar().setUnitIncrement(10);
pn.setVisible(true);
// frame.setVisible(true);
}
});
}
// Variables declaration - do not modify
private javax.swing.JButton jButton1;
private javax.swing.JButton jButton2;
private javax.swing.JButton jButton3;
private javax.swing.JButton jButton4;
private javax.swing.JLabel jLabel1;
private javax.swing.JPanel jPanel1;
private javax.swing.JPanel jPanel2;
private javax.swing.JScrollPane jScrollPane1;
private javax.swing.JScrollPane jScrollPane3;
private javax.swing.JSeparator jSeparator1;
// End of variables declaration
}
</blockquote>
This is the output file which I want it to display just below my input panel when actionlistener is performed at input panel .actually to make it do i need to create the output panel inside the frame which contained input panel itself? thanks in advance..
|
|
|
|
 |
0 down vote favorite
on my ubuntu terminal i was trying to compile and run the program like this
javac -cp "/usr/lib/jvm/jdk1.8.0_20/lib/gs-core-1.2.jar" GraphExplore.java
successfully compiled.now to run
java -cp "/usr/lib/jvm/jdk1.8.0_20/lib/gs-core-1.2.jar" GraphExplore
I got error saying
Error: Could not find or load main class GraphExplore
I am newbee in java.please someone help me to resovle this issue.thanks in advance.what i tried to resolve this error.i kept .class file in one folder and run i mean i kept in one path and tried to execute in that path only but it didnt work.please help me
|
|
|
|
 |
You need to show us where, in your program, the main method is.
|
|
|
|
 |
import org.graphstream.graph.*;
import org.graphstream.graph.implementations.*;
import java.util.Iterator;
public class GraphExplore {
public static void main(String args[]) {
new GraphExplore();
}
public GraphExplore() {
Graph graph = new SingleGraph("tutorial 1");
graph.addAttribute("ui.stylesheet", styleSheet);
graph.setAutoCreate(true);
graph.setStrict(false);
graph.display();
graph.addEdge("AB", "A", "B");
graph.addEdge("BC", "B", "C");
graph.addEdge("CA", "C", "A");
graph.addEdge("AD", "A", "D");
graph.addEdge("DE", "D", "E");
graph.addEdge("DF", "D", "F");
graph.addEdge("EF", "E", "F");
for (Node node : graph) {
node.addAttribute("ui.label", node.getId());
}
explore(graph.getNode("A"));
}
public void explore(Node source) {
Iterator<? extends Node> k = source.getBreadthFirstIterator();
while (k.hasNext()) {
Node next = k.next();
next.setAttribute("ui.class", "marked");
sleep();
}
}
protected void sleep() {
try { Thread.sleep(1000); } catch (Exception e) {}
}
protected String styleSheet =
"node {" +
" fill-color: black;" +
"}" +
"node.marked {" +
" fill-color: red;" +
"}";
}
|
|
|
|
 |
Strange, I cannot see anything wrong with your code. Are you sure that the compilation worked successfully and the class file exists in the directory where you are calling the java command from?
|
|
|
|
 |
Since your main declaration looks correct, it most likely the compile was not successful.
Look in the directory where you are compiling. See if the file GraphExplore.class was created.
You will get that message if it is not being created as a result of an error. As a further experiment, try misspelling the name when you run it, you will see that it is the exact same error.
|
|
|
|
|
 |
in your buildpath,it need load jar ,so u upload this jar in your project, and then server will building it,
|
|
|
|
 |
Hello all,
I'm a .net developer.
I have a project that I might get into.
The thing is, the servers are WebLogic.
I don't know a lot on this subject so I wanted to know if I can deploy my asp.NET application on that server (or what I have to do for that)
Thanks for any help
|
|
|
|
|
 |
I know it's an ASP.NET application question but since it's also related to Java, I thought that here is also a relevant place to ask. But I'll try there.
|
|
|
|
 |
There is nothing Java related in your question.
|
|
|
|
 |
WebLogic is an Oracle server for running Java apps.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
 |
OP's question still has nothing to do with Java programming.
|
|
|
|
 |
True. But I don't see a better place to put it on CP.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|