How to create a class diagram in NetBeans?
Hi there.
Is is possible to create a class diagram from an already created project in netbeans (I know it's backwards)?
Cheers.
lobrien9 wrote:
I didn't know which forum to post it in and I seen a similar question posted in this forum so I posted here. Which forum will I post it in if it upsets you that much?agree w/ chuck. this is not a java question in the least. it's strictly an ide question.
Similar Messages
-
How to create static class in Netbeans ?
I want to create a static class in netbeans.
But it gives error like : static modifier not allowed here. as far as java prog concern it is syntactically correct.
for eg.
public static class Emp
-------body & methods
it looks correct syntactically, but gives error in netbeans, static modifier not allowed here. Why ? How to create static class in netbeans ?DrClap wrote:
I have occasionally seen the name "static class" used to denote a class whose members are all static.I think this is quite common.
But taking the name literally and trying to declare a class "static" is a little naive."naive" or being used to doing that in C#. -
How to create a pie diagram and display it in html code
hii frds,
happy 2 meet u all.
I want to know how to create a pie diagram that should not be devleloped by using applet, and use it in the html code to display a pie diagram in browser.
ex code:
package temp;
import java.awt.*;
import java.awt.image.BufferedImage;
import java.io.*;
import javax.imageio.ImageIO;
import javax.swing.JFrame;
public class Dummy1 extends Panel {
BufferedImage image;
int a1,a2,l,t,w,h;
public Dummy1()
try
a1=90;
a2=210;
l=10;
t=10;
w=200;
h=200;
} catch (Exception ie) { System.out.println("Error:"+ie.getMessage()); }
public void paint(Graphics g) {
// g.drawImage( image, 0, 0, null);
g.setColor(Color.green);
g.fillArc(l,t,w,h,0,a1);
g.setColor(Color.red);
g.fillArc(l,t,w,h,a1,(a2-a1));
g.setColor(Color.blue);
g.fillArc(l,t,w,h,a2,(360-a2));
System.out.println("in paint");
image=(Image)g.getGraphics();
public JFrame getMyFrame()
JFrame frame=null;
try
frame = new JFrame("Display image");
Panel panel = new Dummy1();
frame.getContentPane().add(panel);
frame.setSize(500, 500);
// frame.setVisible(true);
// frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
}catch(Exception e) { e.printStackTrace(); }
return frame;
static public void main(String args[]) throws
Exception {
JFrame frame = new JFrame("Display image");
Panel panel = new Dummy1();
frame.getContentPane().add(panel);
frame.setSize(500, 500);
frame.setVisible(true);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
- > with out using <applet> in html can't we display the awt grahics in browser.
plz clarify my doubts.
thank you.
regards
moons..If you are using MSSQL SERVER then try creating a stored procedure like this
create proc Name
select * from Table
by executing this in sql query analyzer will create a stored procedure that returns all the data from Table
here is the syntax to create SP
Syntax
CREATE PROC [ EDURE ] procedure_name [ ; number ]
[ { @parameter data_type }
[ VARYING ] [ = default ] [ OUTPUT ]
] [ ,...n ]
[ WITH
{ RECOMPILE | ENCRYPTION | RECOMPILE , ENCRYPTION } ]
[ FOR REPLICATION ]
AS sql_statement [ ...n ]
Now Create new report and create new connection to your database and select stored procedure and add it to the report that shows all the columns and you can place the required fields in the report and refresh the report.
Regards,
Raghavendra
Edited by: Raghavendra Gadhamsetty on Jun 11, 2009 1:45 AM -
How to create a class using java script..
Hi all,
Iam new to java script and I tried out the following program but its not working..I basically created a class just like a java prog' but Iam not getting any output or error.Iam attaching the code below.
If I created one function inside the script and create one object its working fine but what should I do when I have a lot of function??so I created a class and put all the function and created an object but its not working..
Do let me know what changes should I do..Iam attaching the code which I had written. or give me an example of how to create a class with couple of functions using JAVASCRIPT
Thanks
Avis_su
<html>
<head><title>JSP Page</title></head>
<body>
<SCRIPT language = "JavaScript">
<!--
//Created classes
class book
var title: String;
var author:String;
function author()
doucument.write("Author is " +this.author);
function tile()
doucument.write("Title is " +this.title);
function printall()
var counter = 0;
function author();
function title();
var chapters = Array[String];
for(chapter in this chapters)
counter++;
document.write("Chapter" counter" :"+this.chapters[chapter]+"<br>");
var thisbook = new book()
thisbook.author = "Sivagami";
thisbook.title = "MS in CS giude";
thisbook.chapters = new Array[10];
thisbook[0] = "Prepare to Excell in all ";
thisbook[1] = "Learn to be happy";
thisbook[2] = "Learn to be healthy mentally emotionally physically";
thisbook[3] = "Siva and Subbu along with kidssssss will be successful in future";
thisbook.printall();
//-->
</script>
</body>
</html>Run this program to get your answer:
public class AnswerToYourPost {
public static void main(String args[]) {
System.out.println("TRUE/FALSE: This question
ion belongs on a Java forum.\n"
+ "ANSWER: " + ("Javascript" == "Java"));
}Since when do we compare objects for equality using operator == ? -
Hi how to create a class pool when i tried to create it has shown the following error
<b>Unable to change program from or to type K
Message no. DS165
Diagnosis
You tried to assign a type to a program that cannot be assigned in the program attributes, but can only be set internally by one of the tools in the ABAP Workbench.
The following program types are reserved:
F Reserved for Function Groups
Function groups are adminstered by the Function Builder, and you can only create or delete them using the Function Builder or the Object Navigator (Transaction SE80).
K Reserved for Class Defintions
Class definitions are administered in the Class Builder. You can only create or delete them using the Clas Builder or the Object Navigator.
J Reserved for Interface Definitions
Interface definitions are administered in the Clas Builder. You can only create or delete them using the class Builder or the Object Navigator.</b>Hi,
Though you get a popup for different options for different program types like Class pools, function groups etc in SE 38 Program attributes, you can't create them from Se38 transaction.
They have to be created from different places.
Class Pools are nothing but creating CLASSes and INTERFACEs using the T Code SE24.
This needs little Java/OOPs concepts to create and use them.
Hope this helps.
Regards,
Anji -
How to create development class (package)
Hi
Can anybody help me out in creating development class (package) to store ABAP programs.
Thanks in advance
RaghavHi
go with abap dictionary->select database table->provide the table for dev classs eg. V_TDEVC-> go for display option-> select utilities->select contents option-> select create dev class,
provide the name and short text,software component->create req.no.
with this dev class will be created
or
Use the transaction SE80.
1. Select "Package" from the list box.
2. Enter "ZEST" in the below text box
3. Press "Enter".
4. It will ask you whether to create.
5. Sy "Yes".
6. Give Short Description
7. Click Save button.
check this
How to create development class
If u find it useful plz reward the points
charitha
Message was edited by:
charitha kolla -
How to create a relationship diagram by using Visio 2010
Dear
Please can you tell me that how to How to create a relationship diagram by using Visio 2010?
It should be include:
one-to-one relationship diagram
one-to-many relationship diagram
many-to-many relationship diagram
many thanks
D.luihttp://answers.microsoft.com/en-us/office/forum/office_2010-visio/how-to-create-a-relationship-diagram-by-using/2999bd63-1869-42d5-8292-74f8a777c7e0
Paul Herber, Sandrila Ltd. Engineering and software shapes for Visio
Sandrila Ltd -
I am trying to create a class diagram with jdeveloper but class is grey out
i am trying to create a class diagram with jdeveloper but class is greyed out even though I downloaded the J2EE version
I went through the following steps :
Click the project in which you want to create a new diagram, choose File New from JDeveloper's menu, then select General Diagrams in the left pane of the New dialog.
I have downloaded J2EE Edition Version 10.1.3.1.0.3984When the class diagram is disabled - does the wizard for creating a new class in the new->General also disabled?
If it is then you are not placing your cursor on the project before you choose file->new
(you are probably on the workspace that contains the project). -
How to create a UML diagram from a existing .java/.class file?
I want to create a UML diagram from a existing .java/.class file automatic in JDeveloper. Can I get it? thanks!
create a new class diagram and then simply drag the java classes from your project onto the diagram area.
-
How to create a connection pooling in Netbeans 6.0 using the oracle driver
hi all,
I am using Netbeans 6.0. Apache Tomcat 6.0.14 server, oracle 9i.
I tried to create a connection pooling using tomcat web server.
I have included the following code in context.xml and web.xml.
CONTEXT.XML:
<?xml version="1.0" encoding="UTF-8"?>
<Context path="/network1">
<Resource name="jdbc/myoracle"
auth="Container"
type="javax.sql.DataSource"
username="scott"
password="tiger"
factory="BasicDataSourceFactory"
driverClassName="oracle.jdbc.OracleDriver"
url="jdbc:odbc:thin:@127.0.0.1:1521:mydb"
maxActive="20"
maxIdle="10"
maxwait="-1"/>
</Context>
WEB.XML:
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
<session-config>
<session-timeout>
30
</session-timeout>
</session-config>
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
<resource-ref>
<description>Oracle Datasource example</description>
<res-ref-name>jdbc/myoracle</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
</web-app>
After that i have included the following JDBC driver's jar files in the $Catalina_Home/lib folder.
classes 111.jar,
classes 111_g.jar
classes12.jar
classes 12_g.jar
classes12dms.jar
classes12dms_g.jar
nls_charset11.jar
nls_charset12.jar
ocrs12.jar
ojdbc14.jar
ojdbc14_g.jar
Then i stop the tomcat web server and start it again.
In jsp page i have included the following code:
Context ctx=new InitialContext();
Context envctx=(Context)ctx.lookup("java:comp:env");
DataSource ds=(DataSource)envctx.lookup("jdbc/myoracle");
Connection con=ds.getConnection(); ----->(In this line an error occured that Connection class cannot be found.)
please help me how to create a connection pooling and rectify the error in conneciton.
Thanks in advancePlease refer
http://www.netbeans.org/kb/60/web/customer-book.html -
How to create Development Class in SAP R/3 4.7c and Netweaver?
I follow some old notes on ABAP Development Class but I could not create a new Development Class. i.e. Stuck in creatinf a type group. Please give some details on how to create a development class. Thanks.
see the following stepa:
(A) Procedure for creating a type group:
/nse80
1. Object Navigator> select Development class>(Enter your development class
yFTGxxDEV
2. Double click on development class object types.
3. Type Group: zPTAxx1.
4. Click on the Create button at the bottom (4th one from the left).
5. Enter short text: zPTAxx1 type group.
6. Save>Enter your development class> click on diskette button to save the type group
7. Select Source Code tab and enter the following:
"An example type-pool statement containing types and constants
type-pool zxx1. "zxx1 is a type pool. It is also known as a type group
types: zxx1_dollars(16) type p decimals 2,
zxx1_lira(16) type p decimals 0.
constants:
zxx1_warning_threshold type i value 5000,
zxx1_amalgamation_date like sy-datum value '19970305'.
8. Select Type Group from menubar
a) Check
b) Save
c) Activate
9. Click the back button or F3 to exit.
10, Show your type group to your teacher.
11. Go to ABAP editor and enter the following program:
"Calculations on date
report zxx_0914.
type-pools zxx1. "contains zxx1_amalgamation_date
data: d1 like sy-datum,
d2 like d1,
num_days type p.
d1 = d2 = sy-datum.
subtract 1 from d1.
write / d1. "yesterday's date
d2+06 = '01' " first day of current months
subtract 1 from d2.
write / d2. " last day of previous month
num_days = sy-datum - zxx1_amalgamation_date.
write / num_days. " number of days since amalgamation
11. Double click zxx1 from the type-pool statement to see the type group.
12. Follow lab1 procedure and run your program
(B) Run an ABAP program using field symbol ( i.e. pointer)
report zxx_lab6.
data f1(3) value 'ABC'. "Step 1 Define a variable
field-symbols <f>. "Step 2 Define a pointer variable ( it only stores address)
assign f1 to <f>. "Step3 Initialize the pointer variable with an address
write <f>. "Step4 Now you can use <f> in place of f1
write / f1. " (same as write f1 )
<f> = 'xyz'. " Assign a new value to f1
write <f>.
write / f1.This is not the way to create a new development class.
Follow this steps to create a development class:
http://sap.mis.cmich.edu/abap4/knowbase/Create-Dev-Class.pdf
Regards,
Naimesh Patel -
How to create 3 Classes from one
Hello,
I have one Databeseconnection class. But I would like creating 3 classes so that I have one connection class, one insert class and one select class.
How Can I do It? Could you help me, please?
package Test; import java.util.*; import java.sql.*; public class JavaDBTest { public static void main(String[] args){ Connection dbconn = null; Statement stmt=null; String mysqlHost = "localhost"; String mysqlDB = "dbname"; String mysqlUser = "root"; String mysqlPass = ""; int id=0; //open connection try { if(dbconn == null || dbconn.isClosed()) { // Load the JDBC driver. Class.forName("com.mysql.jdbc.Driver"); DriverManager.setLoginTimeout(10); // Establish the connection to the database. dbconn = DriverManager.getConnection("jdbc:mysql://" + mysqlHost + "/" + mysqlDB, mysqlUser, mysqlPass); stmt = dbconn.createStatement(); } } catch (Exception e) { System.out.println(e); } //Statements try { stmt.executeUpdate("INSERT INTO tabelename (RFID_Tagid,pub_type_id,Owner_id,Standort_id,user_id,year,actualyear,title,bibtex_id,report_type,survey,mark,series,volume,publisher,location,issn,isbn,firstpage,lastpage,journal,booktitle,number,institution,address,chapter,edition,howpublished,month,organization,school,note,abstract,url,doi,crossref,namekey,userfields,specialchars,cleanjournal,cleantitle,cleanauthor,read_access_level,edit_access_level,derived_read_access_level,derived_edit_access_level,pages,Signatur,roles_ids,entleihbarFuer,vormerkbarFuer,SichtbarFuer) VALUES (1,2,3,4,5,1998,2010,'ichbin titel','1','r',3,2,'s','volume','publis','location','issn','isbn','firstpage','lastpage','journal','booktitle','number','institution','address','chapter','edition','howpublished','month','organisation','school','note','abstract','url','doi','crossref','namekey','userfields',true,'cleanjournal','cleantitle','cleanautor',1,3,4,5,'pages','signatur','roles-ids','entleihbar','vorm','sichtb');"); ResultSet rs = stmt.executeQuery("SELECT LAST_INSERT_ID();"); rs.next(); id = rs.getInt(1); } catch (Exception e) { System.out.println(e); } System.out.println(id+""); try { ResultSet rs = stmt.executeQuery("SELECT * FROM tablename;"); while(rs.next()) { System.out.println(Integer.valueOf(rs.getString(1))); System.out.println(rs.getString(2)); System.out.println(rs.getString(3)); } } catch (Exception e) { System.out.println(e); } //close connection try { dbconn.close(); dbconn = null; } catch (Exception e) { System.out.println(e); } } }suneclipse wrote:
Could you please write in java code?no doubt. So can anyone with a grain of common sense.
That's not to say we're going to do your work for you. -
How to create package class ..
Dear firend,
I have created the packge file under /home/in/package/Time1.java
Time1.java:
package in.package;
public class Time1 {
public static String name="Package Testing";
public void assign_name(String val) {
name=val;
public String get_name() {
return name;
public static void main(String args[]) {
Time1 obj=new Time1();
obj.assign_name("Testing");
System.out.println(obj.get_name());
Then I have tried to access this package file from home directory.
package_test.java
import co.in.bksys.packaging.Time1;
*public class package_test {*
* public static void main(String args[]) {*
//in.package.Time1 time_test=new in.package.Time1();
Time1 time_test=new Time1();
* time_test.assign_name("Leslie Samuel");*
* String my_name=time_test.get_name();*
* System.out.println(my_name);*
I have compiled this file from the home direcory.
*$ javac -classpath in/package/ package_test.java*
It was displayed this below error:
=========================
* package_test.java:1: package in.package does not exist*
import in.package.Time1;
* ^*
package_test.java:8: cannot access Time1
bad class file: in/package/Time1.java
file does not contain class Time1
Please remove or make sure it appears in the correct subdirectory of the classpath.
* Time1 time_test=new Time1();*
* ^*
*2 errors*
but if i used this below line in the package_test.java file insted of using this Time1 time_test=new Time1(); .
It will work perfectly.
in.package.Time1 time_test=new in.package.Time1();
I know that its expecting some format of class file like , in.package.Time1.class inside the in/package/ directory.
It wasn't there so displayed this error.
How to create this knid of class file to appropriate directory ?
How to make my program execute without giving full package name like , in.package.Time1 time_test=new in.package.Time1(); ?
Thank you.Package is a reserved word in Java. Name your package something else.
- Saish -
Implementing Note 836401. How to create message class 'Z'?
Hello Experts,
I'm trying to implement SAP Note 836401 -" FBCJ: Receipt print with display not allowed " In SAP ERP 6.0. Could somebody help me please with action in this note:
"You must then adjust the error class 'Z' to your error class and replace the error number '000' with the error number of the message you created." I have some misunderstanding - What I must to do here? In SE91 i can't find message class 'Z' and I can't to create it there, because of the rule: name of message class must minimum 2 characters.
In correction of object :"R3TR REPS MFCJ0F01" of this note, in source code I'm facing strings:
ID 'BEGRU' FIELD ls_tcj_c_journals-begru.
CHECK sy-subrc NE 0.
AUTHORITY-CHECK OBJECT 'F_FBCJ'
ID 'ACTVT' FIELD '32' "Save
ID 'BEGRU' FIELD ls_tcj_c_journals-begru.
CHECK sy-subrc NE 0.
ld_no_auth = 'X'. "no authorization
MESSAGE ID 'Z' TYPE 'I' NUMBER 000.
* Sie haben keine Berechtigung, Quittungen zu drucken.
ENDIF. "begru initial?
ENDFORM.
How to create the error class'Z'?
How to adjust error class 'Z' to my error class?
Best regards,
Pavel Bogomolov.Hello Pavel
The SAP note says that you should look for an appropriate Z-message class having a message (i.e. number) with the required text.
Alternatively, you may use the following approach:
CHECK sy-subrc NE 0.
ld_no_auth = 'X'. "no authorization
MESSAGE ID '00' TYPE 'I' NUMBER 208 WITH 'Sie haben keine Berechtigung, Quittungen zu drucken'.
" MESSAGE ID 'Z' TYPE 'I' NUMBER 000.
"* Sie haben keine Berechtigung, Quittungen zu drucken.
ENDIF. "begru initial?
ENDFORM.
Regards
Uwe -
How to create a class like System.out.print
Hi,
I need to create a class like System.out.print
Say for ex: i have a class A ..
I need to call it A.b.c
cis the method..
could you tell me, how can i do this..
AMJclass A{
public static final B b=new B();
class B{
public String getXXX(){
return "Callled getXXX()";
public class C{
public static void main(String[] args)
System.out.println(A.b.getXXX());
}
Maybe you are looking for
-
My MacBook Air becomes unresponsive when logging in, and I decided to reinstall OS X Lion. When running the installer from OS X Recovery, it gave the error message "An error occurred while preparing the installation. Try running this application agai
-
Mass updation of Condition Records.
Hi All, I need to update Condition Exclusion Indicator in Condition Record for 3 Z Conditions. I have checked it is not possible using Mass Maintenance. Could you suggest either I should use LSMW or Scat to update all the records. Thanks & Regards, S
-
How to get F4 help in popup window
Hi all, I have to show a popup window after I click on SAVE button of a standard transaction CV01n. I am using BADI for this purpose. I am able to display popup for taking input as "user name". But problem is that I need to provide F4 help to the inp
-
How to use FM cp_cc_s_import_data
Hi Experts, I want to create routing for header, operation and component allocation level . For that i am using RFC FM CP_CC_S_IMPORT_DATA. is anybody having experience ? If yes pls send me the coding for the same. Thanks Ramesh Manoh
-
I cannot install Photoshop CS6 on windows 8!
Hello i cant install photoshop on windows 8 Error initiation installer what is it? is there anyone able to help me?