Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

import javax.swing.*; import javax.swing.plaf.PanelUI; import java.awt.*; import java.awt.event.*; import java.io.* import java.net.*; public abstract class Battlegrid extends JPanel f public BattleGrid) this.setLayout (new BoxLayout (this,

image text in transcribedimage text in transcribed

image text in transcribed

image text in transcribed

image text in transcribedimage text in transcribed

import javax.swing.*; import javax.swing.plaf.PanelUI; import java.awt.*; import java.awt.event.*; import java.io.* import java.net.*; public abstract class Battlegrid extends JPanel f public BattleGrid) this.setLayout (new BoxLayout (this, BoxLayout.Y_AXIS)) Panel self new 3PanelO self.setLayout (new GridLayout (e,10)) for (int i 0; i 10; i++) for( int j = 0; j 10; j++) { JPanel cell = getCell(i+)); self.add(cell); this.add(self); protected abstract JPanel getcell(int i); /TODO

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

Database Design Application And Administration

Authors: Michael Mannino, Michael V. Mannino

2nd Edition

0072880678, 9780072880670

More Books

Students also viewed these Databases questions