Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

i have this error and i dont know how to fix it please help this is the code: import javax.swing.*; public class GanttChart extends JFrame

i have this error and i dont know how to fix it please help
this is the code:
import javax.swing.*;
public class GanttChart extends JFrame {
private JTextArea ganttChartTextArea;
public GanttChart() {
initComponents();
}
private void initComponents() {
ganttChartTextArea = new JTextArea();
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
setTitle("Gantt Chart");
ganttChartTextArea.setEditable(false);
jScrollPane1.setViewportView(ganttChartTextArea);
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addContainerGap()
.addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 380, Short.MAX_VALUE)
.addContainerGap())
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addContainerGap()
.addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 278, Short.MAX_VALUE)
.addContainerGap())
);
pack();
}
public void updateGanttChart(String chart) {
ganttChartTextArea.setText(chart);
}
public static void main(String args[]) {
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
new GanttChart().setVisible(true);
}
});
}
}
image text in transcribed
image text in transcribed
Alie elass Gantchart extends JErame I private JTexthrea ganttchartiextArea: publife Gantchart () I initccmobente (): ] private void initcomponents () ( gantcChartTextArea - new JTextArea 0 : setTitie ("Gantt Chart"): gantcChartTextArea, secEdtable (false): Javax, swing, GroupLayout layout - nw javax, swing. GroupLayout fqetcontent| getcontentpane (), settayout (1ayout); layoat, setHorizontalGroup! . addGroup (1ayout. createsequentialGroup ) ,addcontainergap () adicomponent (3sctol1pane1, Javax, swing,Gsoupta! -addConta inergap ()) ). layoat, setverticalGroupt layout, createPara1lelGroupijavax. swing,GroupLayout. Allgnnent, Ix , addatoup (1oyout, createseguentialGroup () adocontailergap () -addocmponent ijscre11pane1, javax, siling, Groupta! -addcontalnerGap()) ): packt): ] publie vold ipdateganttchartistring chart) ssie : 3. Debug shell if Problems Enecutable: Fle edit source Refactor Nwwigate Search Project strice fun Window Help Project Euplorer X - Bs Banker-Algo-masterzip_expanded ini iRE System tibrary [re] - Barker-Algo-master/sic is Barker-Algo-master * Eledive-downlosd-202312131109232-001zip_expanded in re/mar/jara a. Maven Dependencies bin ? 2 rources is mon ? a clastes er javs A. AongiuteConotaintsywa Al Absolutelayoutjave in Caksiminationform D. Caksimustienjava a. Computationtiveadjava a couschesierja o carrabstact2;og dek-abstract-tech-bechground 53976 -90630jpy in rersendicyjaws b) GantrCiat.jovs al hojava Di MouPronityCueuejowa an Nodejaw If Pagefiegiacement.javs O plamingico al PrianityPolicy.java a Scheduler.java 18 Schedulingoutorm If SchedulingGUljava III Sackjava a Tietreadjavs ow-Variabl. x Breakp. Expres. - jserellisanel cannot be sesolved jlcrulipanel cannot be resolved to a variable jacrolilianed eannot be tenolved to a variabin at GanstChart. initConpanentsiGanstChart. java: 17 ) At Banstehart, Cinit> (Ganttchert, Java:? at javi. desktop/ java.aut. Iventqueued4. tun (tiventqueue. java:720) target

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Machine Learning And Knowledge Discovery In Databases European Conference Ecml Pkdd 2016 Riva Del Garda Italy September 19 23 2016 Proceedings Part 3 Lnai 9853

Authors: Bettina Berendt ,Bjorn Bringmann ,Elisa Fromont ,Gemma Garriga ,Pauli Miettinen ,Nikolaj Tatti ,Volker Tresp

1st Edition

3319461303, 978-3319461304

More Books

Students also viewed these Databases questions