Comments (5)
Hello @dis0hope,
The latest version of the jar has been added by me, on my demo no problem, see you too (both disabled and enabled)
Continue to give problems you can post a screen or describe the problem in more detail? (both fantastic old things)
from material-ui-swing.
sorry for being so vague.
the problem i ran into is actually using jTables...
So a wanted to have wrap lines for each cell in the table, cause some of them contains a lot of text and can't be shown. so i google and find some code that rendered each cell as a TexArea. wrap lines did work, but the nice jTable UI from you guys was gone.
Like the programme name can't be shown
after using wrap lines with each cell being a Text Area. the UI is Just weird now.
(only String fields are changed to text Area, so the integer cell is still material design.
i think its kinda unreasonable to ask you guys to redo textArea UI so it will look like JTable...
So you can probably close this issue, this is just to clear thing up.
the wrap line code is here: https://stackoverflow.com/questions/965023/how-to-wrap-lines-in-a-jtable-cell
from material-ui-swing.
If I understand you correctly is it the color of the TextArea that isn't correct? Because that can be changed.
If it's something else, you can try creating your own TableCellRenderer
class that extends MaterialTableCellRenderer
and overrides getTableCellRendererComponent()
.
The new implementation can then call the super class's getTableCellRendererComponent()
within itself, so this way you get the behaviour of the material cell renderer in addition to whatever custom behaviour you want
from material-ui-swing.
@atarw
Yeah, basically it looks incoherent. and it loses some original jtable setting, like selecting a row will change the colour of the whole row. and im not sure how to do that with an extended text area class.
while extending MaterialTableCellRenderer doesn't support
this.setWrapStyleWord(true);
this.setLineWrap(true);
so im back where i started where i want to do wrap lines....
but its fine i'll chose good looking ui over wrap lines...
from material-ui-swing.
Oh okay I understand now. I could try to make MaterialTableCellRenderer
extend from JTextArea
instead but I'll need to do a bit more testing in the morning.
For now since MaterialTableCellRenderer
indirectly extends from JLabel
you can try wrapping words in the JLabel as a work around.
from material-ui-swing.
Related Issues (20)
- Caret Colour for dark themes HOT 3
- Problem with resizing JDialog HOT 4
- Can't load /imgs/white/minimize.png HOT 2
- Rearrange classes & packages to allow usage from modular apps (JPMS) HOT 7
- Image /imgs/white/minimize.png wasn't loaded HOT 1
- java.lang.ClassCastException: javax.swing.JTextField cannot be cast to javax.swing.JSpinner$DefaultEditor
- JOptionPane messageType parameter HOT 2
- Quickstart guide HOT 2
- JAVA SWING HOT 1
- JComboBox theme bug HOT 8
- Focusing on a table cell will insert the last value HOT 6
- Option 1 (Animated) in Demo Application is not animated HOT 1
- Background-color of a button is turned to default after hovering HOT 2
- Chinese garbled HOT 2
- Material UI Swing doesn't supports emojis HOT 3
- Mouse Cursor HOT 5
- MaterialButtonUI.java depends on JavaFX HOT 3
- δΈζδΉ±η HOT 5
- Docs needed HOT 3
- GuiBuilder ? HOT 3
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.
from material-ui-swing.