Questions tagged [jgrasp]

jGRASP is a lightweight development environment, created specifically to provide automatic generation of software visualizations to improve the comprehensibility of software.

jGRASP is a lightweight development environment, created specifically to provide automatic generation of software visualizations to improve the comprehensibility of software.

jGRASP is implemented in Java, and runs on all platforms with a Java Virtual Machine (Java version 1.5 or higher). jGRASP produces Control Structure Diagrams (CSDs) for Java, C, C++, Objective-C, Ada, and VHDL; Complexity Profile Graphs (CPGs) for Java and Ada; UML class diagrams for Java; and has dynamic object viewers that work in conjunction with an integrated debugger and workbench for Java. The viewers include a data structure identifier mechanism which recognizes objects that represent traditional data structures such as stacks, queues, linked lists, binary trees, and hash tables, and then displays them in an intuitive textbook-like presentation view.

Related Tags

313 questions
2
votes
3 answers

I need help creating an instance variable and constructors

Sorry, I know this answer is obvious but I suppose I'm just slow. Can anyone give me clear definitions of an instance variable and a constructor? Instance variables: Your class will need an instance variable named numbers that is a one-dimensional…
user1804737
  • 65
  • 1
  • 3
  • 9
2
votes
1 answer

How to uncheck -Xlint when using JGrasp?

In my textbook it has us creating abstract data type classes, in this case a Stack. It is based off an array, thus bounded. Here is the part of the code generating the message: package ch03.stacks; public class ArrayStack implements…
ChrisWilson4
  • 195
  • 4
  • 23
1
vote
0 answers

Program wont access database outside of JGrasp

I've written a Java program that accesses an SQL database. In JGrasp the program works perfectly. No bugs at all. But when I create the jar file of the program and start it up outside of JGrasp it wont access the database for some reason. I…
user939287
  • 109
  • 1
  • 2
  • 11
1
vote
1 answer

How to set a relative classpath in jGRASP project file?

I have a small Java project built with the jGRASP IDE on Windows, with all the files in a single flat directory. Among them is an external jar file: pdfbox-app.jar. Compilation and access to that library succeeds if I add the file to the project…
Daniel R. Collins
  • 893
  • 1
  • 8
  • 22
1
vote
2 answers

Says "variable pg1 may not have not been initialized", but it clearly is and I do not see any possible outcomes where it can't be?

I am trying to write a choose your own adventure code outline for my class but it says that my variable pg1 has not been initialized but it clearly has and I do not see an outcome where it wouldn't be? Can someone take a look for me and help…
Shnoodle
  • 11
  • 1
1
vote
0 answers

Flappy bird Pipes how to randomize in java the program I am using for school is JGrasp

In the paint component.graphics g I was creating pipes for my flappy bird game but I don't know how to approach making multiple pipes that are randomized. I've made the first one randomize but I don't know how to make more and have those new ones be…
1
vote
1 answer

Lost my toolbar in Jgrasp how to get it back?

lost my toolbar buttons in Jgrasp I accidentally clicked the "X" button on the thought it was the exit button checked settings but too afraid to click a button that will change the environment again, here's the result, Thanks!
Angry birds
  • 73
  • 1
  • 5
1
vote
0 answers

dim trying to write a reversing line with jgrasp and continue to receive errors, anyone see what im doing wrong?

my assignment involves using recursive method. Write a program that reverses a LinkedList. This is the code i have done below, can anyone see what i am doing wrong, thank you very much! PS: this is done in jGRASP // Java program for reversing the…
1
vote
1 answer

Is it possible to open Jgrasp files across multiple displays?

I am using a 3 monitor set up for my computer, and none of the view options let me open and edit files across multiple monitors. Is there an option to set something like that up?
Leon Hogan
  • 11
  • 1
1
vote
0 answers

How do I prevent JFrame from always being on top of all other applications?

Before anyone asks, I have tried using setAlwaysOnTop(false). Here is a repeatable example. import javax.swing.JFrame; public class SOQ_20200913 { public SOQ_20200913() { JFrame frame = new JFrame("SOQ_20200913"); …
davidalayachew
  • 1,279
  • 1
  • 11
  • 22
1
vote
0 answers

Can I create a custom object in an interface and define it in an implementing class?

I have an interface source code which I must create a class for. The interface includes a user-defined object which is only declared in the interface, and must be overridden and defined in my own class. My class is later used in a separate file with…
nolanish
  • 11
  • 1
1
vote
1 answer

I try to make the merge sort go from bigger to little but it keep going from little to big

Trying to get it from big to little I'm trying to use the Sort & Search Merge Sort: import java.util.*; class MergeSorter { public static void sort(int[] a) { if (a.length <= 1) { return; } int[] first = new int[a.length / 2]; …
1
vote
1 answer

When creating a jar file how do I retain the existing classpaths to other jar files?

I recently completed a college Java assignment. The assignment utilised various other jar files, e.g. mysql connector. When I created a jar file from the Java programs in the project the connections to these other jar files were lost. I tried…
patantdoh
  • 21
  • 2
1
vote
0 answers

Path error when trying to use appletviewer jGRASP

Whenever I attempt to run my code I am met with an error saying my path is wrong. This is the message I receive. ----jGRASP exec: appletviewer jgrasphta.html ----jGRASP wedge error: command "appletviewer" not found. ---- This command must be…
CarsonEddy
  • 11
  • 1
1
vote
1 answer

How do you use the replace command with an Array?

I am trying to take an int Array, and move all the integers to the right by one place, the last number in the array will go to array[0]. Like this: public static void main(String[] OOOF) { Scanner in = new Scanner(System.in); …
Snare_Dragon
  • 59
  • 1
  • 11
1 2
3
20 21