Tuesday, 8 April 2014

Accessing JSpinner value from another class

I'm now scraping information from an HTML webpage, it will count and
arrangement all a occurrences of a specific add-on (e.g find all tables in
a page) for preference of one of these occurrences. we have populated a
JSpinner for all a occurrences (0->9 for 10 add-on occurrences) so that a
specific component can be extracted. Although we am carrying problem in
accessing a quarrel value specified in a spinner from a opposite class, as
we would like on a symbol click for it to tie a window and a value will be
afterwards used by a other category to name a component and scratch a
data.Here is my tide formula for a preference window (DataSelection
Class):okBtn.addActionListener(new ActionListener() { @Override open
vacant actionPerformed(ActionEvent e) { //get user preference
int quarrel = (int) model.getValue(); //Close JFrame
frame.setVisible(false); frame.dispose(); }});This is a domain
where we need to use this quarrel integer value (Model Class): private
vacant HTMLScrape(Document d) throws Exception { Elements elts =
d.getElementsByTag(tagType); // finds all component count =
elts.size();//Initialise count to series of occurrences found //No
Occurences Found in Input Source if (count == 0) { detect =
("No tables found! Please check source.");
JOptionPane.showMessageDialog(null, detect, " - ERROR - ",
JOptionPane.ERROR_MESSAGE); } else if (count > 0) {
ds.createSelection(d, tagType); //displays preference window to user
Element preference = elts.get(INPUT VALUE HERE); //create component
from user inputI can simply imitation it out in a dataselection class,
only can't seem to work out how to get it from a other class. Any ideas on
how to swell here?

Friday, 4 April 2014

Update record in EF4?

Im newbie to Asp.NetMVC3.I am perplexing to transform my record
controlling EF4.Heres my formula for updating a record.[HttpPost] open
ActionResult Edit(Movie movies) { using(var db = new
AmsecDevTestEntities1()) {
db.Movies.Attach(db.Movies.Single(m => m.Id == movies.Id));
db.Movies. (movies); //Im stranded here how can i transform a record
} }I attempted to use db.Movies.ApplyCurrentValues(movies);.But im
removing an blunder observant that context doesnot exists here.Any
assistance will be appreciated.

Tuesday, 1 April 2014

Top bar not rescalling when origination window smaller(HTML,CSS)

Hello guys i am operative on this website, though i have a problem with my
tip bar means it doesn't rescale when i make a browser window smaller. we
have attempted poison on several website for some-more solutions though
didn't find any. Your assistance would be appreciated.Here is my formula :
HTML