Giter Club home page Giter Club logo

biblestudy_tool's People

Contributors

stevenyouhana avatar

Watchers

 avatar

biblestudy_tool's Issues

Props

Seperate Props from Home.java into Props classes

Not passing correct data

Trying to pass int[] (generatedVerseCode static variable) from Home class to RefedVerses (extends Props abstract class) but getting NullPointerException thrown for the passed parameter.
This happens also when referring to generatedVerseCode as a static variable (Home.generatedVerseCode). Passing different variable results in the same issue. So I assume the problem is with the class structure listed below for RefedVerses.

`
package UI;

import java.util.Arrays;

import javax.swing.DefaultListModel;
import javax.swing.JFrame;
import javax.swing.JList;
import Study.Bible;
import Study.Verse;
import Utility.Log;

public abstract class Props {
JFrame frame;
JList list;
DefaultListModel model;
public Log p;

Props(JFrame frame, JList<String> list, DefaultListModel<String> model) {
	this(frame);
	this.list = list;
	this.model = model;
	this.list.setModel(this.model);
}

Props(JFrame frame) {
	this.frame = frame;
}

abstract void update(int[] verseData);
abstract JList<String> getListing(); 

}

class RefedVerses extends Props {

public RefedVerses(JFrame frame, JList<String> list, DefaultListModel<String> model) {
	super(frame,list,model);
}

// METHOD THROWING ERROR
@OverRide
public void update(int[] verseData) {
model.clear();
p.p("verseData: "+verseData[0]); //NullPointerException
Home.generateVerseCode[0]; //NullPointerException

}

private String verseBlock(int id) {
	int[] data = Bible.Book_Verses.getData(id);
	return Bible.Book_Verses.MAP.get(data[0])+" "+data[1]+": "+data[2];
}

@Override
public JList<String> getListing() {
	return list;
}

}

class Home implements Runnable {

Props refedVerses;

public void run() {
refedVerses = new RefedVerses(this, lstRef, model);

}
protected class LoadedVerses implements ListSelectionListener {
public void valueChanged(ListSelectionEvent arg0) {
refedVerses.update(generateVerseCode); //calling method
//generatedVerseCode is definitely not null here! *****************************
}
}
}
`

Translations

build architecture for having different translations for each verse. '

  • modify database
    -edit Java code

matching verseCode

generateVerseCode to match existing verses at addCommentary action event.
Using Book.findVerse(int[] verseCode)

Reference verses

have a JList showing updated references verses for the selected verse

adjust DB script

alter db script to match new design. Change the <parent_verse> to <point_to> ARRAY (int)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.