biblestudy_tool's People
biblestudy_tool's Issues
Remove,Update verse
work on removing and updating verse in java and DB
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
Error Messages - utility 1
Add error message for starting App with no db content loaded
adjust DB script
alter db script to match new design. Change the <parent_verse> to <point_to> ARRAY (int)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.