FAQ Database Discussion Community


App crashes when I delete from table view and core data

swift,tableview,ios9
I have a table view set up to pull from coredata. When I delete from the table view it crashes the app with the following error message fatal error: unexpectedly found nil while unwrapping an Optional value I have figured out the line of code this happens on. The two...

How I can bind my List to a TableView in JavaFX?

java,table,javafx,tableview,observablecollection
i want to use TableView with a List in javaFX. It work to 90%. My Problem is that if I load my data to TableView the second row i the same how the first...I think I have a Problem in my foreach :/ Here My Code: @FXML private TableView<Ticket> tblTicket...

updateItem is not called when scrolling

javafx-2,tableview,tablecell
I am loading a table from a database to a tableview. I am using custom CellFactory at specific columns based on their type/value. Basically I need to highlight cells, in columns that are type Float, which are above a threshold. I see that this works when the tableview is populated...

How to sort column in TableView JavaFx?

sorting,tableview,javafx-8
I'm trying to sort the columns by clicking the column head. The problem is that he does not sort the column defined as Integer. I wrote comparator for Integer but I think that this is not the way to sort column. The code below belongs the client: public class Client4...

Having trouble retreiving value from tableview

javafx,tableview
I'm having having trouble getting a correct output from tableview. I'm using a button to set one item from tableview to a label. However, it prints "StringProperty [Value pineapples]" where I would like it to be just "pineapples". The tableview gives them correctly. Can anyone enlighten me on this one?...

JavaFX - TableView successfully populated but NPE still occurs

javafx,nullpointerexception,tableview
I am populating my TableView with data from the database. When I select a row in the TableView(Tableview has listener) and then re-populate again the TableView, the data population is successful but a NPE occurs. I hope I expressed myself clearly. Sorry for the long post. ActionEvent @FXML private void...

How to Add a badge to my ImageView in ios?

ios,swift,tableview,badge
I am recently working on a chat app. I have a trouble here about handling the incoming messages. I have a tableview which shows all the dialog that i have. Once i receive the new messages i want to add some numbers (which is similar to the badges on the...

In TableView, the whole table can't click anymore after the sentence “ cell.selected = true ”

ios,swift,tableview
cell.selected = true After this line, I can't select rows any more. Is there anybody who can help me? Thanks @IBAction func SelectAll(sender: AnyObject) { if(selectAll == true) { var i = 0 as Int while(i < indexArray.count){ //indexArray[i] = true let rowToSelect:NSIndexPath = NSIndexPath(forRow: i, inSection: 0); //slecting 0th...

TextCell in InerfaceBuilder for NSTableView

xcode,cocoa,interface-builder,tableview
I am quite new to NSTableView but as I tried to get things straight, I took a look at InterfaceBuilder!! TableView hierarchy I understand that objects are responsible for scrolling and clipping. TableView is the real NSTableView instance. The object titled function list ist the NSTableColumn below that is my...

JavaFX table- how to add components and relate them to other scene?

javafx,tableview
Is there any way --by clicking on the embedded button -- to open a new scene that is related to the tableview raw selected : for example : public class TestClass extends Application { private TableView<Person> table = new TableView<Person>(); private final ObservableList<Person> data = FXCollections.observableArrayList( new Person("A", "B", "[email protected]","info"),...

Get value of a ComboBoxTableCell

combobox,javafx,tableview
I used this code to put a ComboBoxCell into my Table named "ComboTable". The data of the first two colums is given by a database-connection below this code. ComboTable.setEditable(true); col1.setCellValueFactory(new PropertyValueFactory<model, String>("rCol1")); col2.setCellValueFactory(new PropertyValueFactory<model, String>("rCol2")); col3.setCellValueFactory(new PropertyValueFactory<model, String>("rCol3")); col3.setCellFactory(ComboBoxTableCell.forTableColumn(cbValues)); // ChangeListener...

TableView (javaFX) is showing only blank lines

java,javafx,javafx-2,tableview
my TableView Is showing blank lines, what am I missing? project link -> https://github.com/raphaelbgr/SwingSocketClient/tree/database I am trying to gather information from the database and show it on this list view, the jdbc connection is perfect and working, however the tableView is not displaying the items, I've read 3 times the...

JavaFX TableView scrollTo() causing wrong row to start editing

tableview,javafx-8,scrollto
I have an editable TableView with a button that adds a new row then calls table.edit() on the first column in that row. When a user wants to add a row that will be out of the viewport, what should happen is the table scrolls the new row within the...

UITableView selection issue in iOS

ios,uitableview,swift,uiviewcontroller,tableview
I found several questions similar to mine but maybe not related to the same problem. I'm using swift for my code and I noticed a problem using tableView. I want to implement cell selection using didSelectRowAtIndexPath. That method works perfectly if you create a UITableViewController class from scratch. On the...

Subtitle TableView Cell

ios,tableview,cell,subtitle
I am trying to get two texts in the title of the cell using the subtitle style. I tried "cell.textLabel!.text = data.valueForKeyPath("divelocation, divenumber") as? String" with no luck. can anyone help? thanks override func tableView(tableView: UITableView?, cellForRowAtIndexPath indexPath: NSIndexPath?) -> UITableViewCell { // Configure the cell... let CellID: NSString =...

Set ComboBoxCell in TableView JavaFX

combobox,javafx,tableview
i followed the instructions from this question to set a ComboBoxCell in the TableView of my application. (How to put ComboBoxTableCell in a TableView?) The declaration of the Cell works fine, but the comboBox doesn't appear in the table. I think it's like this, because only col1 and col2 are...

Do not add an existing item in the cellForRowAtIndexPath

ios,uiscrollview,tableview,custom-cell
In my TableViewController I use custom cell, this cell has a scrollView. My cellForRowAtIndexPath method looks like: - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { CustomCell *cell = (CustomCell *)[tableView dequeueReusableCellWithIdentifier:@"cell"]; if (!cell) { cell = [[CustomCell alloc] initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:@"cell"]; // iOS 7 separator if ([cell respondsToSelector:@selector(setSeparatorInset:)]) { cell.separatorInset = UIEdgeInsetsZero;...

Custom cell segue with data pass error - Swift

swift,tableview,cell,segue
I am creating a quiz app and the table view presents the user with the questions they got right / wrong. When the user taps on a question it takes them to a new page that displys the explanation of the question. For clarification: I have correctly labeled my segue...

Getting UITableView header titles from NSDate

ios,uitableview,tableview,nsfetchedresultscontrolle
I’m populating a tableview with data from Core Data via MagicalRecord. I want the tableview to be displayed in chronological order, sectioned by date, also in chronological order. First, I obtain the sortDate from the transDate, from modified code I found on the web: // Gives beginning of this day...

Edited UITableViewController in storyboard and after defining the VC class

uitableview,swift,xcode6,storyboard,tableview
I am using swift and XCode 6.3.1. I edited a table view controller in storyboard with static cells. Wanting to program a label and a outlet, I created a new UITableViewController Cocoa Touch File and defined the view controllers class the Cocoa Touch File that I just made. However once...

how to use Query.limit and Query.skip?

ios,swift,uitableview,parsing,tableview
I've spent about 13hrs/day for the past week but I can't seem to figure it out. I've scrolled to the ends of the web but I can't seem to implement 'query.skip' and 'query.limit' to my table correctly. The 'user' is following people and each person has a lot of posts....

TableView Header Section Covers The Rows

xamarin,tableview,xamarin.forms
I have two questions: 1- I'm trying to do a simple table view with Xamarin forms, but i have found that the header sections cover the below cells (rows in table). I just wants that the header section disappears like the cells when move the page and just maintain de...

iOS - How to present different scenes from UITableViewCell

ios,objective-c,uiviewcontroller,tableview,tableviewcell
I have a UIViewController with a TableView. The TableView is populated with an image and a text for each cell. Now I need to present others Scenes when the user taps a cell. For example: - tap on first row --> present ViewController1 - tap on second row --> present...

What happens when you call UItableview's reload twice

ios,objective-c,uitableview,tableview
Imagine I have 200 rows in a tableView, what will happen if I call reload twice - meaning I have called reload on my tableview, while reloading the 100th row, I again call a reload, what happens now?

UI freezing while application making some calculations [closed]

java,multithreading,javafx,tableview
I have java fx application with many tableviews. How we knows in javafx tableview there is databinding, which working in two directions. So when my application making a calculcations with my data from tableviws UI is freezing, because my application constantly updates data from tableviews(ObservableList). I did tried to use...

Implemented RWBlurPopover cant select value from tableview

ios,objective-c,xcode,uitableview,tableview
I have integrated RWBlurPopover. I have added tableview inside Popover. Data is showing fine in tableview but when i am selecting any row didSelectRowAtIndexPath method is not calling. I have implemented delegate and data source methods I guess i can find code inside RWBlurpopover that is disabling touch on tableview....

How to remove extra empty cells in TableViewController, iOS - Swift

ios,swift,tableview
Hi I have a TableViewController with two static cells, however when displayed, it shows the two static cells, and then all the other empty cells for the tableview. However I don't want to display those cells as they are useless. How do I hide the rest of the cells apart...

iOS - Having multiple Table View Cells

ios,objective-c,uitableview,tableview
I'm having a bit of trouble with my xcode project. Basically, I'm trying to use two View Controllers, each one having it's own Table View. Let's say the first one would have a list of articles and the second would have a list of videos. In my ViewController.m file I...

WatchKit Table is Blank

ios,objective-c,tableview,watchkit
I'm trying to create a table on WatchKit. For some reason the app is just blank when launched in WatchKit. I've confirmed that it's a table problem (I added a static label and was able to see it). I believe I have all IBOutlets hooked up properly as well. What...

Swift and Parse nil on prepareforsegue

ios,swift,parse.com,tableview
Im writing a table view controller using an array from Parse. I need to send data through the segue but I dont know why its always returning nil. I will have to send images and text, but for now im just taking the text from the label title1 to insert...

JAVAFX - The hidden column's mysterious solution

javafx,tableview,hidden
I have a TableView which shows all the data from a Derby table, except the "ID" of the items (I don't want the user to see it.) The method is simple, I made an SQL statement to select all the attributes but I did not ask for the ID column....

ios 8 swift - how to add footer for tableview using separate datasource

ios,uitableview,swift,tableview,tableviewcell
For 2 days I'm trying to solve this. I just want to add a footer (custom cell) to my tableview. I have a view with some stuff on it (labels, buttons) and I've added a tableview. To have a clean controller, for the datasource I'm using a separate file: class...

PyQT4: Adding combobox in Qtableview

combobox,pyqt,qt4,tableview
I am new to PyQT. I am interested to add a combobox to the each row of tableView. Is it possible in PyQT 4? I know, it is possible in QT5, but not sure about PyQT. Thank you in advance for help....

Getting tableView without its empty cell

ios,objective-c,uitableview,tableview
I need to get tableView like VC.view I create TVC in nib. And instantiate it with CustomTableViewController *customTableViewController = [[CustomTableViewController alloc] initWithNibName:@"CustomTableViewController" bundle:nil]; Then I want to add it to my custom alert with code alertView.contentView = customTableViewController.view; And it works. But.... Difficulties is here. I have 5 rows in...

JavaFX Derby TableView

dynamic,javafx,tableview
I found several solutions for writing data to tableView. My question is: Is there any solution for writing data to a TableView in JavaFX from local Derby where we don't know how many columns and records will be and what will be the name of the attributes? I need somekind...

Send data from TableView to DetailView Swift

swift,tableview,detailview
I'm trying to do maybe one of the simplest and more confusing things for me until now I wanna develop my own App , and in order to do it I need to be able to passing some information depending of which row user click (it's Swift lenguage) We have...

How to get a value of selected row in Swift?

ios,swift,tableview
I have a Table View Controller in my swift application. How to I get a value of selected row (cell)? For example, I want to show a value of selected row with alert when the user clicked on row....

Xcode 6 fixed View in Table View Controller

swift,view,ios8,xcode6,tableview
Good day, everyone. I've got a Table View Controller with an View on top as a header. My problem is, that if I scroll in the Table View, the View scrolls with it. How can I fix the header (View), so it stops scrolling with the table view? I was...

Day for sectionIdentifier for Custom Section Titles

objective-c,tableview,sections
On Apple developer docs, there is Custom Section Titles (https://developer.apple.com/library/ios/samplecode/DateSectionTitles/Introduction/Intro.html) where it obtains the year and month. I would like to grab the day so I can build a section title that has the day, month and year. How would I grab the day from this code? code: /* Section...

TableColumn not populating Integer values

java,tableview,tablecolumn
I'm making a program that uses a tableview. Everything is going smoothly, except for some reason I can't get the Integer values to populate in the table. Below is my code in the main program, the String and Double populate when I run the program, but the Integer doesn't. In...

TableView reloadData() not showing all data, even though the array with values is filled (swift)

ios,uitableview,swift,tableview,reloaddata
I have a tableview that I fill with results from an http call. The data is passed on into the array called tripTimes. triptimes contains information about certain trips made during a given day. The starting time of every trip of that day is passed into self.tableData and is inserted...

javafx tableview how to get the row I clicked?

javafx,tableview,tablecell
here is my code // this event is attached to TableCell public EventHandler dblclickDescription = new EventHandler<MouseEvent>(){ @Override public void handle(MouseEvent event) { if(event.getButton().equals(MouseButton.PRIMARY)){ if(event.getClickCount() == 2){ printRow(event.getTarget()); } } event.consume(); } }; // print row public void printRow(Object o){ Text text = (Text) o; // ??? don't know what...

Trouble with ScrollView in Swift

ios,xcode,uitableview,swift,tableview
I have a trouble with scrollViewWillEndDragging. In my TableView I put at the end the code: extension FeedTableViewController: RefreshViewDelegate { func refreshViewDidRefresh(refreshView: RefreshView) { delayBySeconds(3) { self.refreshView.endRefreshing() } } } but the problem is that the animation doesn't stop... My github repository is this if someone very kind can help...

UITableview delegate and datasource called twice

ios,objective-c,delegates,tableview,datasource
I struggle with tableview datasource and delegate methods. I've a tableview if user navigate to that table view controller I'm calling web service method which is block based service after the request finished successfully reloaded tableview sections but tableView:cellForRowAtIndexPath:indexPath called twice. Here's my code. viewDidLoad [[NetworkManager sharedInstance].webService getValues:self.currentId completion:^(NSArray *result,...

Update TableView without refreshing the window?

javafx,tableview
I have this window with a few TextFields and a TableView. I have made a search engine which every time I write in the TextFields, will display a new array of the given objects which fit what ever I write in the TextFields. Now, I have tested it, and I...

Drill-down tableview in Swift [closed]

ios,swift,tableview
So basically i want to achieve this form of tableview as shown in the sketch. I have a MasterTableViewController with an array of people's names. When a user selects Person 2, it then presents a detail of that Person 2's details such as Name, Age, Location, and Status. If so...

How to Add Pull-To-Refresh to a Tableview “Query from Parse.com”

xcode,parse.com,tableview,pull-to-refresh
I have an app that query data from a class in Parse.com. I'm able to populate the table correctly. How can i add a Pull to Refresh to refresh the tableview ? Thanks! ...

How to determine if record exist in tableview in javafx

javafx,tableview
I have a table view that I add row manually and I want to know before to add a row if that record that will be add it is already in the table.

Method for moving rows with NSFetchedResultsController and its delegate not working

ios,swift,core-data,tableview,nsfetchedresultscontrolle
I've been trying to follow this tutorial for rearranging rows in a table view while using NSFetchedResultsController and NSFetchedResultsController delegate, but my project is extremely buggy. What happens is that when I try rearranging a row and drop it, the rows are randomised (probably not randomised, but I can't see...

swift: send value back to UITableViewController from dynamic cell with UIDatePicker

swift,datepicker,tableview,tableviewcell
I've got a dynamic table with a cell for a UIDatePicker. There's a function in the UITableViewCell class that updates a variable when the picker changes. I'm just having trouble getting that value back to the UITableViewController class. I can print the correct variable while spinning the picker, but when...

indexPath variable not inheriting value

ios,swift,tableview,segue
I'm trying to perform a segue and pass the tapped 'audioNSURL' to my next viewController. The issue that I have is that, in my segue, 'indexPath' is null (not inheriting the tapped value from tableView). Can anyone point me in the right direction? // Function for when cell is tapped...

UITableViewCell textLabel changing position on selection

ios,uitableview,swift,tableview
I have created a UITableView and a subclass of UITableViewCell using code and it displays perfectly fine untill I select the cell. The textLabel of the cell would shift rightwards or not shift sometimes Image Representation of the problem before selection Image representation of the problem after selection Relevant Code...

Content of the UIViewController doesn't show up even though the UINavigation bar is there

ios,objective-c,iphone,uiviewcontroller,tableview
So I'm trying to switch from one UIViewController to another using the navigation controller. I know for sure that the new controller goes successfully through the custom init method and creates two UIBarButtons. However, the content of the screen (4 labels, 3 textfields, 1 UIImageView) doesn't show up. Instead, I...

How to add constraints to a Custom UITableViewCell

swift,constraints,tableview,cell
I have created a custom cell for my table view and it works fine except that my Image View will not align correctly. Is there a way to add constraints to a custom cell view? Programmatically or otherwise? This is what my cell looks like in the storyboard - which...

Detail text label of UITableViewCell is invisible till user touches it

ios,objective-c,uitableview,tableview
I've got a UITableViewCell setup in a static & grouped tableView. The cell's style is subtitle and I'm setting it's initial value either like this (problem stays the same regardless of which I'm using): self.myCell.detailTextLabel.text = [NSString stringWithFormat:@"%f test", testFloat]]; or like this: self.myCell.detailTextLabel.text = @"not set"; the detailTextLabel of...

Array data from table view to label

ios,sqlite,nsmutablearray,tableview
I've got a tableview setup to display data from an sqlite database, now what I am trying to do is setup a view to display further information from said database when the user clicks on a table cell. From what I've read so far my understanding that this is done...

Custom TableViewCell with Subview whose height changes

xcode,uitableview,swift,xcode6,tableview
I'm using a TableView and have a custom TableViewCell that I've added a subview to. The problem is that I need the subview's height to change sometimes and therefore, the table's contentView would have to be updated as well as the row's height. The subview of the custom TableViewCell is...

Swift: Cannot invoke 'reloadData' with no arguments

ios,swift,uitableview,tableview
I'm currently building my first app in Swift. I use Parse as database and want to show all the titles in table Recipes. I created an array for all the titles and add every time a title. But my tableView function doesn't update it (count = 0) I think that's...

Populating Custom TableViewCell from Twitter using JSON Serialization

objective-c,uitableview,nsdictionary,tableview,nsjsonserialization
I am new to Objective-C. I spent countless hours being stuck on getting a blank tableview, I am desperate at this point. I am loading twitter data through a JSON call, using their API. I store everything in a NSDictionary, run a for loop to select only "text" values. I...

dismissViewControllerAnimated freeze the App

uitableview,swift,tableview,didselectrowatindexpath
I've a tableView which appear modally from another controller, in this table user select a row then, clicking the row, tableView closes and user get back to previous controller with self.dismissViewControllerAnimated(true, completion: nil) in UITableView's didSelectRowAtIndexPath. Strange thing is that, after user's tap, self.dismissViewControllerAnimated locks app for some seconds or...

How get images in Parse, Cell name works but images don't load

image,swift,parsing,get,tableview
I can load images from parse, but they have a code name, I want to show the images at the cell, don't load the images! // import UIKit import Parse import Bolts class LojasViewController: UIViewController, UITableViewDelegate { var ParseData = [PFObject]() var ParseImages = [PFFile]() @IBOutlet weak var saloesTableView: UITableView!...

How to select multiple items from a List view - JavaFX 8

java,javafx,tableview
I'm new at using JavaFX and I'm trying to add an ObservableList to a table view. The list contains only String. My goals is to show list of connected devices and let the user choose on which to perform the action (1 or more), is there any better way to...

Qt - Move a table column to beginning first column index on the table

qt,tableview
I am using Qt 5.2.1, I have a tableview in which I have enabled sorting of columns by the user, i.e. they can drag and drop columns by the headers to rearrange them. I want to add a right-click option "Move to front", where the user can right click a...

How to populate data in table view with user input on button click in javaFX

java,javafx-2,tableview,fxml,netbeans-8
i have given right id in my fxml file but code does't work and no error too.i want to get input all in text and at add button pressed have to fill that data into tableview.Input is text,radio button and checkbox that convetred into string.and at selection of row have...

JavaFX TableView change selected cell colour

css,javafx,tableview,selection,tablecell
I have a JavaFX TableView and a ListView and they both use custom cell factories. In particular I have overridden updateItem method in order to bind a particular CSS class based on cell value. This is part of my CSS file: .tissueCell { -fx-text-fill: #F5AD11; } .tissueCell:selected { -fx-background-color: #F5AD11;...

Possible to have two prototype cells from two different arrays, without sections?

ios,swift,tableview
I'm having a heck of a time trying to achieve this, so any help is greatly appreciated: The first table is user posts, and when an item is selected, the 2nd tableview shows the selected user post, and below this, are any comments for that post, if there are any...

Separator lines for UITableViewCellStyleSubtitle cells not taking the full width

ios,xcode,uitableview,tableview
I have prepared a simple test project for my question at GitHub. When using UITableViewCellStyleSubtitle type of cells (called Subtitle in Xcode Interface Builder) - for some reason the horizontal lines are not reaching the left side of the screen: At the above screenshot you can see that the separator...

How To Show Each Element of a ArrayList in a Tablecolumn in JavaFX

javafx,tableview,tablecolumn
I have a TableView<DataModelClass> table which has only one TableColumn name in my DataModelClass there is a ArrayList<String> nameList that can contain one or multiple names. Now, when I run my code, the Name column looks like this, [name1,name2,name3..]but I want to show each of name1 name2 name3 in a...

checkbox button in tableview in Swift

swift,checkbox,tableview,tableviewcell
I'm trying to create a checkbox functionality in a tableview . It's a to-do list where if the checkbox is pressed the cell hides and appears as completed in a different section. Coming from C# this was very straightforward to do but in swift there isn't even a checkbox button...

iOS tableView.backgroundView with no cell

ios,objective-c,background,tableview
I've checked how to make background with UITableView with this code in cellForRowAtIndexPath : UIImageView *tempImageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"background.JPG"]]; [tempImageView setFrame:tableView.frame]; tableView.backgroundView = tempImageView; It works fine, but when there is no cell, the background doesn't display because cellForRowAtIndexPath isn't call when there is no cell. Alright, I...

TableView in QT5 doesn't show MYSQL Data, just empty rows are shown

c++,mysql,qt,tableview,qt5
I am showing you my problem by showing a screen shot. This seems easier to me. My Table is empty in my program, but it has the right amount of columns and if I add more columns in my sql workbench it will get more rows, but nothing is displayed...

How to get a record (item) number column in javafx table view?

javafx,tableview,javafx-8
I have populated a JavaFX TableView with columns of a table from a MySQL database. In my TableView, the first column I have created is "Number" which is not linked to any column in MySql database table. In this column, I want to see the number of row against each...

Swift - displaying data for each row in tableview after row is clicked

swift,tableview,cell,didselectrowatindexpath
Having problems with displaying data for each row in tableview after row is clicked, and i want to use didselectRowAtIndexPath, not without it! :) ViewController.swift import UIKit class ViewController: UIViewController, UITableViewDelegate, UITableViewDataSource { @IBOutlet weak var tableView: UITableView! let textToDisplayInCell:[String] = ["item 1", "item 2", "item 3", "item 4"] let...

UITableView viewForFooterInSection only shows after scrolling

ios,objective-c,uitableview,tableview,footer
I've got a UITableView with one section and enough rows that the tableView needs to be scrolled to get to the bottom. I want to add a footer view which will stick to the bottom of the tableView and always be visible, so I have implemented viewForFooterInSection. Here's my code:...

Select next row programmatically

ios,tableview
How can I select the next row programmatically in iOS? I have a nextButton on my view, and I want myTable to select the next row after clicking my nextButton. [myTable selectRowAtIndexPath: ?????? animated:YES scrollPosition:UITableViewScrollPositionMiddle]; is my code is correct?...

UI Buttons with tableview

ios,swift,button,uibutton,tableview
I am trying to code a tableview with words on the left and buttons on the right for each row. Is that possible to do? I have got the words coded for each row however I am struggling with putting the buttons on the right side and spaced evenly as...

Neither startEdit or setOnEditCommit getting called

javafx,tableview,editing
I followed this example mentioned on this link - TableView - Better Editing through Binding? I changed it a bit accordingly Model class - public static class TableData { private String firstName, lastName; private TableData(String first, String last) { this.firstName = first; this.lastName = last; } public String getFirstName() {...

TableView - Attempting to make it behave like Excel

java,javafx,tableview,keyboard-events,javafx-1
I'm attempting to make TableView behave like Excel. I am having trouble selected the correct cells. In Excel, if you select a column(say 5 adjacent cells in the column) and then you click SHIFT + LEFT, excel will automatically select all corresponding left most cell. e.g. Say in Excel I...

Error when segueing to view controller with Table View from Textfield in Swift

ios,uitableview,swift,tableview,sigabrt
Okay let me explain the issue I had. In main.storyboard, I created a new tableView controller and added a navigation bar to the top. I created the segue to the new tableView controller, and everything worked fine. The problem was the navigation bar does not stay at the top when...

PFQueryTableView Breaking at loadView

ios,objective-c,parse.com,tableview,pfquery
I'm implementing a PFQueryTableView controller via storyboard. I've followed the right methods in actually implementing the code (using initWithCoder:). But whenever I try to run the app it breaks at the PFQueryTableViewController.m file; specifically at the loadView method. It breaks at [super loadView]. Anyone else encounter this problem? Edit: When...

Add gesture for the imageView in tableView's Section Header

ios,swift,header,tableview,gesture
I want to implement a tableview with a header look like this. I want to implement a function that it segue to another view controller when i press the icon in this header. But it seems the gesture recognizer doesn't work. The recognizer would give no response at all The...

JavaFX requires multiple ImageView nodes rather than a reference to one?

java,image,javafx,imageview,tableview
Note: Some of the code in here is not how I would do it in practice, but is just for demonstration. We'll assume resources are always present and no errors are thrown. In a quest to get images to display in a TableView, I got a prototype working from a...

TableVew - Edit cell when KeyEvent is thrown

java,javafx,focus,tableview,javafx-1
I have an event listener on a TableView that listens for keyboard event. // Add event listener to table table.setOnKeyTyped(event -> { TablePosition<SimpleStringProperty, String> focusedCell = table.getFocusModel().getFocusedCell(); if (focusedCell != null) { table.getItems().get(focusedCell.getRow()).set(event.getCharacter()); table.edit(focusedCell.getRow(), focusedCell.getTableColumn()); } }); I am having problems with updating the cell with the new data when...

JavaFX: CheckBoxTableCell get ActionEvent when user check a checkBox

java,checkbox,javafx,tableview
I want to trigger a method or action when the user check or uncheck a checkbox in the tableView. the coursData.addListener(...) doesn't get triggered when the user use the checkBox . Here is my code it compiles and the windows appears with the tableView with checkbox. package testCheckBox2; import javafx.application.Application;...

Swift - passing data between two tableviews (2 viewcontrollers)

swift,tableview
Have problem with table views, it's just tableviews on viewcontrollers, i have italian food, mexican food, english food in first tableview, and whatever i click i got italian food everywhere "bolognese, milagnese, pizza" in mexican and in english food. And why when i click italian food, i can't see first...

How to make cell clickable also the buttons on cell will be clickable in swift

ios,swift,tableview
I have used tableview in storyboard. in this tableview I have added cell. each row cell contains labels and some buttons. Now: I want to make row as clickable as well buttons on cell that will be clickable. I have tried using storyboard but it is not working....

How to create new records directly in javafx TableView?

mysql,javafx,tableview
I am using JDBC and MySQL. I can create Text Fields and have their contents entered as records in a MySQL table (and then populate the corresponding javafx TableView). I would like to know if it is possible for the user to directly add new records to the TableView by...

UITableView over the top

uitableview,swift,tableview
I have an UITableViewController with an iAD banner on top, under the top bar. When banned is loaded and device is in portrait it looks good but, when there's no banners or device turn in landscape, between top bar and the first tableView's row there's an ugly empty space. The...

Javafx dynamic Table

table,dynamic,javafx,tableview
I want create dynamic table with TableView class. I send to contractor the number of columns (int), columns name (String[]) and rows (Student), but i can't deal with that. How i need to define the TableColumn for each one of columns? public class DynamicTable extends TableView<Student>{ private ObservableList<Student> data; private...

swift tableview displays json data very slow

json,performance,swift,tableview,loading
I have a page that loops JSON data and show in a tableview. I get the correct correctly but when it shows on the page, it is very slow. I tried to println the json to see how fast it retrieves the json data and it was very fast. One...

Swift: Problems with PrototypeCells in UITableViewController

ios,swift,tableview,uiswitch
I have a problem with my iOS Application. I'm using Swift and XCode 6.3. I have a UITableViewController in my application and in this TableView I've created a prototype cell (Custom). In the design it looks like this: This is how I want the cells (left the title and on...

UITableView: automatically set height for the row and fix it with max height constant

swift,height,row,tableview,cell
I need automatically set the height for the row. I use theTable.estimatedRowHeight = 60 theTable.rowHeight = UITableViewAutomaticDimension but the height is not fixed. I need fixed height something like MAX 60 height, by default height is 40. With estimatedRowHeight the height is not fixed and when the string is long...

how to create xib subview at the center of tableview swift

swift,tableview,xib,subview,centralized
I have tableview and I created the custom xib uiview as "detailview" for it. I want to show this detailview at the center of scrolled area when tapped to tableview cell. I can show this view but cannot centralized it. when I set value to frame manually, subview will be...

Populate tableView with events from iOS (swift)

swift,ios8,tableview,eventkit
I've been following "iOS8 Swift Programming Cookbook"'s section on EventKit and calendars, and I've learned a lot (especially since I'm new to programming). But the next step that I want to take is populating a tableview that I have an outlet to in my ViewController with the event data so...

update the label text when clicking tableviewrow item in titanium

javascript,titanium,tableview,addeventlistener,uitableviewrowaction
I have created a tableview row.here the tableview each row having the one lebel and 2 image view.if am clicking the image, the selected row of label value need to change something. But from my code if am clicking the image, the label value is changed of last item. What's...

I am trying to use Core Data and load a table view with its contents in order and in sections

ios,swift,core-data,tableview
I get it to load, I get the sections to load, but I cant get the cells in each section to load correctly. It restarts from the beginning in each section effectively duplicating each cell. My entity name is Customer and it holds the following attributes. firstName, lastName, phoneNumber,email, notes,...

titanium tableview font color

android,android-layout,titanium,tableview
How to change the font-color in a TableView. Other elements can be changend with the color attribute. When i run the app on my Android Phone the table is displayed, but the font-color is still grey/white. There are also no table borders. I want to set the color to black....

UITableView not reloading while reload from UIView subview in iOS

ios,uiview,tableview,subview,reloaddata
Im sub viewing uiview in view controller now i have called web service in - (id)initWithFrame:(CGRect)frame method also response came while reloading with web service data tableView is not reloading. any idea thanks in advance.

Passing object through segue

ios,objective-c,json,tableview,segue
Long story short I have a project that I am working on with my gf. Its a vegan recipe book for vegans that dat meat eaters or vice versus or just vegan on vegan action. Any who, I have a problem passing the data from my view table to my...

JavaFX: Content from ObservableArrayList gets loaded (probably) but not shown

java,javafx,tableview
I have created a little program that is supposed to load data from a database and display it in a TableView element in a JavaFX application. The problem is that when I start the application all I see is empty rows. The data of the different rows doesn't get displayed....